Create PhoneInput macro for phone and ext form fields
This commit is contained in:
12
templates/components/phone_input.html
Normal file
12
templates/components/phone_input.html
Normal 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)}}
|
||||
</div>
|
||||
</div>
|
||||
{%- endmacro %}
|
Reference in New Issue
Block a user