From c0327107a57a43cd8194165fc997146370ce526a Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Thu, 25 Jun 2020 00:03:26 +0530 Subject: Added email field in form --- app/forms.py | 4 +++- app/templates/dock_upload.html | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/forms.py b/app/forms.py index 5d64507..e0f7bc1 100644 --- a/app/forms.py +++ b/app/forms.py @@ -27,4 +27,6 @@ class curieForm(FlaskForm): center_x = DecimalField('Center X',default=0) center_y = DecimalField('Center Y',default=0) - center_z = DecimalField('Center Z',default=0) \ No newline at end of file + center_z = DecimalField('Center Z',default=0) + + email = StringField('Email', validators=[DataRequired(), Email()]) \ No newline at end of file diff --git a/app/templates/dock_upload.html b/app/templates/dock_upload.html index 3fc8419..e9116da 100644 --- a/app/templates/dock_upload.html +++ b/app/templates/dock_upload.html @@ -47,6 +47,10 @@ {{ form.ligand(class="form-control")}} +
+ {{ form.email.label }} + {{ form.email(class="form-control") }} +
-- cgit v1.2.3