Feat(Project Hub): Apply for Founding Partner Program page created with database structure and methods.
This commit is contained in:
@@ -33,15 +33,19 @@ class Form_Base(FlaskForm, metaclass=Form_Base_Meta):
|
||||
def get_default(cls):
|
||||
return cls()
|
||||
@classmethod
|
||||
def get_select_option_blank(cls):
|
||||
return (cls.get_select_option_default_value(), 'Select')
|
||||
def get_select_option_blank(cls, is_valid = True):
|
||||
value = cls.get_select_valid_option_default_value() if is_valid else cls.get_select_invalid_option_default_value()
|
||||
return (value, 'Select')
|
||||
@classmethod
|
||||
def get_select_option_all(cls):
|
||||
return (cls.get_select_option_default_value(), 'All')
|
||||
return (cls.get_select_valid_option_default_value(), 'All')
|
||||
|
||||
@staticmethod
|
||||
def get_select_option_default_value():
|
||||
def get_select_valid_option_default_value():
|
||||
return '0'
|
||||
@staticmethod
|
||||
def get_select_invalid_option_default_value():
|
||||
return ''
|
||||
|
||||
def __repr__(self):
|
||||
fields = ', '.join(
|
||||
|
||||
Reference in New Issue
Block a user