1
0
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:
Awilum
2020-01-27 19:52:23 +03:00
parent adae34fa9f
commit db33598389
4 changed files with 10 additions and 10 deletions

View File

@@ -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>

View File

@@ -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"

View File

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

View File

@@ -7,7 +7,7 @@
<tr>
<th></th>
<th>
Name
{{ tr('admin_name') }}
</th>
</tr>
</thead>