Changed directory structure of forms/inputs slightly
This commit is contained in:
18
templates/forms/inputs/abstract/slug.html.twig
Normal file
18
templates/forms/inputs/abstract/slug.html.twig
Normal file
@@ -0,0 +1,18 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user