Merge pull request #411 from dod-ccpo/phone-extensions

Add phone ext
This commit is contained in:
leigh-mil
2018-11-08 10:57:48 -05:00
committed by GitHub
19 changed files with 128 additions and 29 deletions

View File

@@ -0,0 +1,12 @@
{% from "components/text_input.html" import TextInput %}
{% macro PhoneInput(phone_number, phone_ext, placeholder_phone="") %}
<div class='phone-input'>
<div class='phone-input__phone'>
{{ TextInput(phone_number, placeholder=placeholder_phone, validation='usPhone') }}
</div>
<div class='phone-input__extension'>
{{ TextInput(phone_ext, validation='phoneExt')}}
</div>
</div>
{%- endmacro %}