18 lines
1.1 KiB
Twig
18 lines
1.1 KiB
Twig
{% if 'description' not in form.fields.hidden %}
|
|
{% if col_width %}<div class="{{col_width}}">{% endif %}
|
|
<div class="form-group">
|
|
<label for="input-{{type}}-slug" class="control-label">{{field_name | default(translate('SLUG'))}}</label>
|
|
<div class="input-group">
|
|
<span class="input-group-addon"><i class="fas fa-tag fa-fw"></i></span>
|
|
<input type="text" id="input-{{type}}-slug" class="form-control" name="slug" autocomplete="off" value="{{current_value}}" placeholder="{{placeholder | default(translate('SLUG'))}}" {% if 'slug' in form.fields.disabled %}disabled{% endif %} readonly>
|
|
{% if 'slug' not in form.fields.disabled %}
|
|
<span class="input-group-btn" data-toggle="buttons">
|
|
<label class="btn btn-primary">
|
|
<input type="checkbox" id="input-{{type}}-slug-override" autocomplete="off"> {{translate("OVERRIDE")}}
|
|
</label>
|
|
</span>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
{% if col_width %}</div>{% endif %}
|
|
{% endif %} |