Create PhoneInput macro for phone and ext form fields

This commit is contained in:
leigh-mil
2018-10-31 15:40:07 -04:00
parent 8b9fe61a94
commit b13ba188bf
4 changed files with 20 additions and 31 deletions

View File

@@ -3,6 +3,7 @@
{% from "components/icon.html" import Icon %}
{% from "components/alert.html" import Alert %}
{% from "components/text_input.html" import TextInput %}
{% from "components/phone_input.html" import PhoneInput %}
{% block content %}
@@ -202,19 +203,8 @@
</div>
</div>
<div class='form-row'>
<div class='form-col form-col--half'>
{{ TextInput(review_form.email_mao, placeholder="name@mail.mil", validation='email') }}
</div>
<div class='form-col form-col--third'>
{{ TextInput(review_form.phone_mao, placeholder="(123) 456-7890", validation='usPhone') }}
</div>
<div class='form-col form-col--sixth'>
{{ TextInput(review_form.phone_ext_mao)}}
</div>
</div>
{{ TextInput(review_form.email_mao, placeholder="name@mail.mil", validation='email') }}
{{ PhoneInput(review_form.phone_mao, review_form.phone_ext_mao) }}
<hr />