Provided the same treatment to the role and group forms

This commit is contained in:
2023-06-01 15:00:01 +01:00
parent bf9467b480
commit d5a823692b
19 changed files with 324 additions and 1 deletions

View 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 %}