Normalize location and style for submiting the form

This commit is contained in:
Luis Cielak 2018-07-30 15:28:12 -04:00
parent 268b721c33
commit 912b267a3d
3 changed files with 17 additions and 7 deletions

View File

@ -8,12 +8,12 @@ from .validators import IsNumber, Alphabet
class POCForm(ValidatedForm): class POCForm(ValidatedForm):
fname_poc = StringField( fname_poc = StringField(
"POC First Name", "POC First Name",
validators=[Required(), Alphabet()] validators=[Required()]
) )
lname_poc = StringField( lname_poc = StringField(
"POC Last Name", "POC Last Name",
validators=[Required(), Alphabet()] validators=[Required()]
) )
email_poc = EmailField( email_poc = EmailField(

View File

@ -179,5 +179,9 @@
level='error' level='error'
) %} ) %}
{% end %} {% end %}
<input type='submit' class='usa-button usa-button-primary' value='Submit' {{ "disabled" if not can_submit else "" }} />
<div class='action-group'>
<input type='submit' class='usa-button usa-button-primary' value='Submit' {{ "disabled" if not can_submit else "" }} />
</div>
{% end %} {% end %}

View File

@ -26,14 +26,20 @@
{% block form %} {% block form %}
form goes here form goes here
{% end %} {% end %}
</div>
</div>
{% block next %} {% block next %}
<div class='action-group'>
<input type='submit' class='usa-button usa-button-primary' value='Save & Continue' /> <input type='submit' class='usa-button usa-button-primary' value='Save & Continue' />
</div>
{% end %} {% end %}
</form> </form>
</div>
</div>
</div> </div>
{% end %} {% end %}