class riskForm(FlaskForm): title = StringField('Risk Title', [InputRequired('Please enter a Risk title')]) desc = TextAreaField('Description') probability = SelectField( 'Probability', choices=[], validators=[InputRequired('Please select a Probability')], widget=select2Widget()) impact = SelectField('Impact', choices=[], validators=[InputRequired('Please select an Impact')], widget=select2Widget()) riskArea = SelectField( 'Risk Area', choices=[], validators=[InputRequired('Please select a Risk Area')], widget=select2Widget()) riskType = SelectField( 'Risk Type', choices=[], validators=[InputRequired('Please select a Risk Type')], widget=select2Widget()) owner = SelectField('Owner', choices=[], validators=[InputRequired('Please select an Owner')], widget=select2Widget()) submit = SubmitField(label='Save') submitStay = SubmitField(label='Save and add new')
class ratingForm(FlaskForm): value = IntegerField('Risk Rating', [InputRequired('Please enter a Risk Rating value')]) desc = TextAreaField('Description') probability = SelectField( 'Probability', choices=[], validators=[InputRequired('Please select a Probability')], widget=select2Widget()) impact = SelectField('Impact', choices=[], validators=[InputRequired('Please select an Impact')], widget=select2Widget()) submit = SubmitField(label='Save') submitStay = SubmitField(label='Save and add new')
class treatmentForm(FlaskForm): title = StringField('Treatment', [InputRequired('Please enter a treatment Title')]) desc = TextAreaField('Description') treatmentType = SelectField( 'Treatment Type', choices=[], validators=[InputRequired('Please select a Treatment Type')], widget=select2Widget()) riskResponse = SelectField( 'Risk Response', choices=[], validators=[InputRequired('Please select a Risk Response')], widget=select2Widget()) submit = SubmitField(label='Save') submitStay = SubmitField(label='Save and add new')
class subRegionForm(FlaskForm): title = StringField('Sub Region title', [InputRequired('Please enter a Sub Region title')]) abbr = StringField('Sub Region Abbreviation', [ InputRequired("Please enter an abbreviation for the Sub Region title") ]) region = SelectField('Region', widget=select2Widget(), validators=[InputRequired('Please select a Region')]) submit = SubmitField(label='Save') submitStay = SubmitField(label='Save and add new')
class valueChainForm(FlaskForm): title = StringField('Value Chain', [InputRequired('Please enter a Value Chain Title')]) desc = TextAreaField('Description') valueChainArea = SelectField( 'Value Chain Area', choices=[], validators=[InputRequired('Please select a Value Chain Area')], widget=select2Widget()) submit = SubmitField(label='Save') submitStay = SubmitField(label='Save and add new')
class zoneForm(FlaskForm): title = StringField('Zone title', [InputRequired('Please enter a Zone title')]) abbr = StringField( 'Zone Abbreviation', [InputRequired("Please enter an abbreviation for the Zone title")]) country = SelectField( 'Country', widget=select2Widget(), validators=[InputRequired('Please select a Country')]) submit = SubmitField(label='Save') submitStay = SubmitField(label='Save and add new')
class causingFactorForm(FlaskForm): title = StringField('Causing Factor',[InputRequired('Please enter a Causing Factor')]) desc = TextAreaField('Description') causingFactorType = SelectField('Causing Factor Type', choices=[], validators=[InputRequired('Please enter a Causing Factor Type')], widget=select2Widget()) submit = SubmitField(label='Save') submitStay = SubmitField(label='Save and add new')