-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathforms.py
More file actions
executable file
·20 lines (16 loc) · 792 Bytes
/
forms.py
File metadata and controls
executable file
·20 lines (16 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from wtforms import StringField, SubmitField
from flask_wtf import FlaskForm
from wtforms.validators import DataRequired
class DNAEntry(FlaskForm):
DNA = StringField('DNA', validators=[DataRequired()])
Disease = StringField('Disease', validators=[DataRequired()])
Description = StringField('Description', validators=[DataRequired()])
submit = SubmitField('Insert the data')
class DNADelete(FlaskForm):
Disease = StringField('Disease', validators=[DataRequired()])
submit = SubmitField('Delete the data')
class DNAUpdate(FlaskForm):
DNA = StringField('Enter the new DNA')
Disease = StringField('Enter the disease you want to update')
Description = StringField('Enter the new description')
submit = SubmitField('Update the data')