mirror of
https://github.com/flextype/flextype.git
synced 2025-08-20 11:51:28 +02:00
feat(admin-plugin): update api templates #211
This commit is contained in:
@@ -9,17 +9,17 @@
|
||||
<div class="form-group">
|
||||
<label for="title" class="form-control-title">{{ tr('admin_title') }}</label>
|
||||
<input type="text" id="title" name="title" value="" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_title_empty_input') }}">
|
||||
<small class="opacity-50 block mt-1">{{ tr('admin_help_text_for_tokens_label') }}</small>
|
||||
<small>{{ tr('admin_help_text_for_tokens_label') }}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="title" class="form-control-title">{{ tr('admin_api_calls_limit') }}</label>
|
||||
<input type="text" id="limit" name="limit_calls" value="0" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_api_calls_empty_input') }}">
|
||||
<small class="opacity-50 block mt-1">{{ tr('admin_help_text_for_api_calls_limit_label') }}</small>
|
||||
<small>{{ tr('admin_help_text_for_api_calls_limit_label') }}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="icon" class="form-control-title">{{ tr('admin_icon') }}</label>
|
||||
<input type="text" id="fieldsetIcon" name="icon" value="fas fa-truck" class="form-control" required="required" data-validation="length required" data-validation-length="min1" data-validation-error-msg="{{ tr('admin_error_icon_empty_input') }}">
|
||||
<small class="opacity-50 block mt-1">{{ tr('admin_help_text_for_api_token_icon', {':link': '<a href="https://fontawesome.com/icons?d=gallery&m=free" target="_blank">fontawesome</a>'})|raw }}</small>
|
||||
<small>{{ tr('admin_help_text_for_api_token_icon', {':link': '<a href="https://fontawesome.com/icons?d=gallery&m=free" target="_blank">fontawesome</a>'})|raw }}</small>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="type" class="form-control-title">{{ tr('admin_state') }}</label>
|
||||
|
@@ -32,7 +32,7 @@
|
||||
id="limit"
|
||||
name="limit_calls"
|
||||
value="{{ api_token_data.limit_calls }}"
|
||||
class="w-full border border-black border-2 outline-none px-2 py-2"
|
||||
class="form-control"
|
||||
required="required"
|
||||
data-validation="length required"
|
||||
data-validation-length="min1"
|
||||
@@ -46,7 +46,7 @@
|
||||
id="fieldsetIcon"
|
||||
name="icon"
|
||||
value="{{ api_token_data.icon }}"
|
||||
class="w-full border border-black border-2 outline-none px-2 py-2"
|
||||
class="form-control"
|
||||
required="required"
|
||||
data-validation="length required"
|
||||
data-validation-length="min1"
|
||||
|
@@ -7,13 +7,13 @@
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>
|
||||
Title
|
||||
{{ tr('admin_title') }}
|
||||
</th>
|
||||
<th>
|
||||
Delivery Token
|
||||
{{ tr('admin_delivery_token') }}
|
||||
</th>
|
||||
<th>
|
||||
Calls
|
||||
{{ tr('admin_calls') }}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -69,4 +69,4 @@
|
||||
}
|
||||
})}}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
@@ -7,7 +7,7 @@
|
||||
<tr>
|
||||
<th></th>
|
||||
<th>
|
||||
Name
|
||||
{{ tr('admin_name') }}
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
Reference in New Issue
Block a user