refactor: using word depot in rear instead of admin
This commit is contained in:
8
templates/depot/widgets/checkbox_toggle.jinja
Normal file
8
templates/depot/widgets/checkbox_toggle.jinja
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="ui toggle checkbox">
|
||||
<!--noformat-->
|
||||
<input type="checkbox"
|
||||
name="{{ field.name }}"
|
||||
{% if field.value %}checked="checked" {% endif %}>
|
||||
<label>{{field.label or field.name|capitalize}}</label>
|
||||
<!--noformat-->
|
||||
</div>
|
||||
5
templates/depot/widgets/input_text.jinja
Normal file
5
templates/depot/widgets/input_text.jinja
Normal file
@@ -0,0 +1,5 @@
|
||||
<div class="ui input {% if 'disabled' in field.options and field.options.disabled %}disabled{% endif %} inline field">
|
||||
<label>{{field.label or field.name|capitalize}}</label>
|
||||
<input type="{{ field.type|none('text') }}" name="{{ field.name }}" value="{{ field.value }}"
|
||||
placeholder="{{field.placeholder}}">
|
||||
</div>
|
||||
12
templates/depot/widgets/input_textarea.jinja
Normal file
12
templates/depot/widgets/input_textarea.jinja
Normal file
@@ -0,0 +1,12 @@
|
||||
<div class="ui input {% if 'disabled' in field.options and field.options.disabled %}disabled{% endif %} inline field">
|
||||
<label>{{ field.label or field.name|capitalize }}</label>
|
||||
<!--noformat-->
|
||||
<textarea name="{{ field.name }}" {% if field.placeholder %}placeholder="{{ field.placeholder }}"{% endif %}
|
||||
{% for field_name in ['rows', 'cols', 'maxlength', 'minlength', 'wrap', 'autofocus'] %}
|
||||
{% if field_name in field.options %}{{field_name}}="{{ field.options[field_name] }}" {% endif %}
|
||||
{% endfor %}
|
||||
{% if field.required %}required{% endif %}
|
||||
{% if field.readonly %}readonly{% endif %}
|
||||
{% if "disabled" in field.options and field.options.disabled %}disabled{% endif %}
|
||||
>{{ field.value }}</textarea>
|
||||
</div>
|
||||
8
templates/depot/widgets/password_change.jinja
Normal file
8
templates/depot/widgets/password_change.jinja
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="ui action input inline field">
|
||||
<label>{{field.label or field.name|capitalize}}</label>
|
||||
<input type="text" value="{{field.value}}" readonly="readonly">
|
||||
<button class="ui teal right labeled icon button" hx-disable>
|
||||
<i class="key icon"></i>
|
||||
Set Password...
|
||||
</button>
|
||||
</div>
|
||||
8
templates/depot/widgets/select_labeled.jinja
Normal file
8
templates/depot/widgets/select_labeled.jinja
Normal file
@@ -0,0 +1,8 @@
|
||||
<div class="ui labeled input">
|
||||
<div class="ui label">{{field.label or field.name|capitalize}}</div>
|
||||
<select class="ui selection dropdown">
|
||||
{% for value, label in field.value %}
|
||||
<option value="{{value}}">{{label}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
Reference in New Issue
Block a user