Add phone ext

This commit is contained in:
leigh-mil
2018-10-29 14:01:16 -04:00
parent 9992ed44b6
commit 6bc157b2b3
16 changed files with 82 additions and 5 deletions

View File

@@ -21,9 +21,12 @@
{{ TextInput(form.email, validation='email') }}
</div>
<div class='form-col form-col--half'>
<div class='form-col form-col--third'>
{{ TextInput(form.phone_number, validation='usPhone') }}
</div>
<div class='form-col form-col--sixth'>
{{ TextInput(form.phone_ext)}}
</div>
</div>
{{ OptionsInput(form.service_branch) }}

View File

@@ -102,7 +102,20 @@
{{ DefinitionReviewField("Email Address", "information_about_you", "email_request") }}
{{ DefinitionReviewField("Phone Number", "information_about_you", "phone_number", filter="usPhone") }}
<div>
<dt>Phone Number</dt>
<dd>
{% if data.information_about_you.phone_number is not none %}
{{ data.information_about_you.phone_number }}
{% else %}
{{ RequiredLabel() }}
{% endif %}
{% if data.information_about_you.phone_ext %}
ext. {{ data.information_about_you.phone_ext }}
{% endif %}
</dd>
</div>
{{ DefinitionReviewField("Service Branch or Agency", "information_about_you", "service_branch", filter="getOptionLabel", filter_args=[service_branches]) }}

View File

@@ -112,7 +112,12 @@
<h3 class='approval-log__log-item__header'>Mission Owner approval on behalf of:</h3>
<span>{{ review.full_name_mao }}</span>
<span>{{ review.email_mao }}</span>
<span>{{ review.phone_mao }}</span>
<span>
{{ review.phone_mao }}
{% if review.phone_ext_mao %}
ext. {{ review.phone_ext_mao }}
{% endif %}
</span>
</div>
{% endif %}
@@ -202,9 +207,13 @@
{{ TextInput(review_form.email_mao, placeholder="name@mail.mil", validation='email') }}
</div>
<div class='form-col form-col--half'>
<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>
<hr />

View File

@@ -27,7 +27,12 @@
<div class='form-row'>
<div class='form-col form-col--half'>{{ TextInput(f.email_request, placeholder='e.g. jane@mail.mil', validation='email') }}</div>
<div class='form-col form-col--half'>{{ TextInput(f.phone_number, placeholder='e.g. (123) 456-7890', validation='usPhone') }}</div>
<div class='form-col form-col--third'>
{{ TextInput(f.phone_number, placeholder='e.g. (123) 456-7890', validation='usPhone') }}
</div>
<div class='form-col form-col--sixth'>
{{ TextInput(f.phone_ext)}}
</div>
</div>
<p>We want to collect the following information from you for security auditing and determining priviledged user access.</p>