Adjusting input types

This commit is contained in:
Jonathan Bobel
2025-04-18 15:11:07 -04:00
parent 70b149476c
commit 5d3364a114
2 changed files with 3 additions and 1 deletions

View File

@@ -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;
} }
} }

View File

@@ -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 }}"