You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
1.5 KiB
32 lines
1.5 KiB
from flask_wtf import FlaskForm
|
|
from wtforms import StringField, SubmitField
|
|
from wtforms.validators import DataRequired
|
|
|
|
|
|
class compIndustryForm(FlaskForm): # Defines the form class to be used for the user registretion
|
|
# Decalarion of the fields for the form and it's propereties
|
|
name = StringField('Name', validators=[DataRequired()])
|
|
description = StringField('Description', validators=[DataRequired()])
|
|
submit = SubmitField('Register Industry')
|
|
|
|
|
|
class compRelationForm(FlaskForm): # Defines the form class to be used for the user registretion
|
|
# Decalarion of the fields for the form and it's propereties
|
|
name = StringField('Name', validators=[DataRequired()])
|
|
description = StringField('Description', validators=[DataRequired()])
|
|
submit = SubmitField('Register Relation')
|
|
|
|
|
|
class compLegalEntityForm(FlaskForm): # Defines the form class to be used for the user registretion
|
|
# Decalarion of the fields for the form and it's propereties
|
|
name = StringField('Name', validators=[DataRequired()])
|
|
description = StringField('Description', validators=[DataRequired()])
|
|
submit = SubmitField('Register Legal Entity')
|
|
|
|
|
|
class personRole(FlaskForm): # Defines the form class to be used for the user registretion
|
|
# Decalarion of the fields for the form and it's propereties
|
|
name = StringField('Name', validators=[DataRequired()])
|
|
description = StringField('Description', validators=[DataRequired()])
|
|
submit = SubmitField('Register Role')
|