mirror of
https://github.com/flextype/flextype.git
synced 2025-08-20 11:51:28 +02:00
feat(admin-plugin): update no element message #211
This commit is contained in:
@@ -63,12 +63,12 @@
|
||||
</tbody>
|
||||
</table>
|
||||
{% else %}
|
||||
{{ include ("plugins/admin/templates/ui/no-elements.html", {icon: 'fas fa-truck',
|
||||
message: 'admin_create_new_delivery_token',
|
||||
button: {
|
||||
link: path_for('admin.api_tokens.add') ~ '?api=' ~ api,
|
||||
title: 'admin_create_new_delivery_token'
|
||||
}
|
||||
})}}
|
||||
<div class="text-center flex justify-center items-center pt-20">
|
||||
<div>
|
||||
<div class="inline-block text-center w-24 h-24">{{ icon('fas fa-truck') }}</div>
|
||||
<h3 class="text-2xl pt-3 pb-8">{{ tr('admin_you_have_not_created_any_delvery_api_tokens_yet') }}</h3>
|
||||
<a href="{{ path_for('admin.api_tokens.add') }}?api={{api}}" class="button">{{ tr('admin_create_new_delivery_token') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
@@ -1,5 +0,0 @@
|
||||
<div class="text-center pt-20">
|
||||
<i class="{{ icon }} text-6xl"></i>
|
||||
<h3 class="text-2xl pt-6">{{ tr(message) }}</h3>
|
||||
{% if button %}<a href="{{ tr(button.link) }}" class="mt-6 px-4 py-2 border border-black border-4 text-black inline-block w-auto hover:bg-black hover:text-white">{{ tr(button.title) }}</a>{% endif %}
|
||||
</div>
|
Reference in New Issue
Block a user