mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-17 18:14:42 +00:00
mvc: Add <hint> support for text fields, pull in and reformat https://github.com/opnsense/core/pull/5442
This commit is contained in:
parent
36e12e1d7d
commit
a5dfeb476a
@ -62,7 +62,13 @@
|
||||
</td>
|
||||
<td>
|
||||
{% if type == "text" %}
|
||||
<input type="text" class="form-control {{style|default('')}}" size="{{size|default("50")}}" id="{{ id }}" {{ readonly|default(false) ? 'readonly="readonly"' : '' }} >
|
||||
<input type="text"
|
||||
class="form-control {{style|default('')}}"
|
||||
size="{{size|default("50")}}"
|
||||
id="{{ id }}"
|
||||
{{ readonly|default(false) ? 'readonly="readonly"' : '' }}
|
||||
{% if hint|default(false) %}placeholder="{{hint}}"{% endif %}
|
||||
>
|
||||
{% elseif type == "hidden" %}
|
||||
<input type="hidden" id="{{ id }}" class="{{style|default('')}}" >
|
||||
{% elseif type == "checkbox" %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user