Create PhoneInput macro for phone and ext form fields
This commit is contained in:
@@ -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 />
|
||||
|
||||
|
Reference in New Issue
Block a user