mirror of
https://github.com/GSA/notifications-admin.git
synced 2025-12-14 17:13:25 -05:00
Adjusting input types
This commit is contained in:
@@ -289,6 +289,7 @@ td.table-empty-message {
|
|||||||
margin-top: units(1);
|
margin-top: units(1);
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border: 1px solid color('gray-60');
|
border: 1px solid color('gray-60');
|
||||||
|
height: 40px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -68,10 +68,11 @@
|
|||||||
data-highlight-placeholders="true"
|
data-highlight-placeholders="true"
|
||||||
>{{ field._value() }}</textarea>
|
>{{ field._value() }}</textarea>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
{% set input_type = 'tel' if 'phone' in field.label.text else 'text' %}
|
||||||
<input
|
<input
|
||||||
id="{{ field_id }}"
|
id="{{ field_id }}"
|
||||||
name="{{ field.name }}"
|
name="{{ field.name }}"
|
||||||
type="{{ field.type }}"
|
type="{{ input_type }}"
|
||||||
class="{{ field_class }}"
|
class="{{ field_class }}"
|
||||||
value="{{ field._value() }}"
|
value="{{ field._value() }}"
|
||||||
placeholder="{{ placeholder }}"
|
placeholder="{{ placeholder }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user