change port field in ipsandports to type-number
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
@@ -29,8 +29,9 @@ return array(
|
||||
),
|
||||
'port' => array(
|
||||
'label' => $lng['admin']['ipsandports']['port'],
|
||||
'type' => 'text',
|
||||
'size' => 5
|
||||
'type' => 'number',
|
||||
'min' => 1,
|
||||
'max' => 65535
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
@@ -30,9 +30,10 @@ return array(
|
||||
),
|
||||
'port' => array(
|
||||
'label' => $lng['admin']['ipsandports']['port'],
|
||||
'type' => 'text',
|
||||
'type' => 'number',
|
||||
'value' => $result['port'],
|
||||
'size' => 5
|
||||
'min' => 1,
|
||||
'max' => 65535
|
||||
)
|
||||
)
|
||||
),
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
{% endif %}
|
||||
<div class="card-body">
|
||||
{% for id,field in section.fields %}
|
||||
{% if field.type == 'text' or field.type == 'password' %}
|
||||
{% if field.type == 'text' or field.type == 'password' or field.type == 'number' %}
|
||||
{{ formfields.input(id, field) }}
|
||||
{% elseif field.type == 'textul' %}
|
||||
{{ formfields.input_ul(id, field) }}
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
{% endif %}
|
||||
</label>
|
||||
<div class="col-sm-8">
|
||||
<input type="{{ field.type }}" id="{{ id }}" name="{{ id }}" value="{{ field.value }}" class="form-control {% if field.valid is defined and field.valid == false %}is-invalid{% endif %}" {% if field.mandatory is defined and field.mandatory %} required {% endif %} {% if field.visible is defined and field.visible == false %} disabled {% endif %} {% if field.readonly is defined and field.readonly %} readonly {% endif %} {% if field.autocomplete is defined %} autocomplete="{{ field.autocomplete }}" {% endif %} {% if field.placeholder is defined %} placeholder="{{ field.placeholder }}" {% endif %}/>
|
||||
<input type="{{ field.type }}" {% if field.type == 'number' and field.min is defined %}min="{{ field.min }}"{% endif %} {% if field.type == 'number' and field.max is defined %}max="{{ field.max }}"{% endif %} id="{{ id }}" name="{{ id }}" value="{{ field.value }}" class="form-control {% if field.valid is defined and field.valid == false %}is-invalid{% endif %}" {% if field.mandatory is defined and field.mandatory %} required {% endif %} {% if field.visible is defined and field.visible == false %} disabled {% endif %} {% if field.readonly is defined and field.readonly %} readonly {% endif %} {% if field.autocomplete is defined %} autocomplete="{{ field.autocomplete }}" {% endif %} {% if field.placeholder is defined %} placeholder="{{ field.placeholder }}" {% endif %}/>
|
||||
</div>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
|
||||
Reference in New Issue
Block a user