diff --git a/site/plugins/admin/assets/scss/objects/container.scss b/site/plugins/admin/assets/scss/objects/container.scss index 6e4a3375..2c58266a 100644 --- a/site/plugins/admin/assets/scss/objects/container.scss +++ b/site/plugins/admin/assets/scss/objects/container.scss @@ -11,3 +11,22 @@ margin-top: 28%; padding: 0; } + +.empty-list-message { + text-align: center; + width: 100%; + text-align: center; + margin-top: 13%; + padding: 0; + + .far, + .fas { + font-size: 84px; + } + + h3 { + font-weight: normal; + padding-top: 0; + padding-bottom: 10px; + } +} diff --git a/site/plugins/admin/lang/en_US.json b/site/plugins/admin/lang/en_US.json index 95c8a291..962ada83 100755 --- a/site/plugins/admin/lang/en_US.json +++ b/site/plugins/admin/lang/en_US.json @@ -203,5 +203,9 @@ "admin_menu_item_url": "Url", "admin_menu_item_target": "Target", "admin_menu_item_order": "Order", - "admin_template_code": "Template code" + "admin_template_code": "Template code", + "admin_you_have_not_created_any_entries_yet": "You haven't created any entries yet!", + "admin_you_have_not_created_any_snippets_yet": "You haven't created any snippets yet!", + "admin_you_have_not_created_any_templates_yet": "You haven't created any templates yet!", + "admin_you_have_not_created_any_fieldsets_yet": "You haven't created any fieldsets yet!" } diff --git a/site/plugins/admin/views/templates/content/entries/index.html b/site/plugins/admin/views/templates/content/entries/index.html index beb023fa..06d2c51c 100644 --- a/site/plugins/admin/views/templates/content/entries/index.html +++ b/site/plugins/admin/views/templates/content/entries/index.html @@ -69,5 +69,11 @@ {% endfor %} +{% else %} +
+ +

{{ tr('admin_you_have_not_created_any_entries_yet') }}

+ {{ tr('admin_create_new_entry') }} +
{% endif %} {% endblock %} diff --git a/site/plugins/admin/views/templates/extends/fieldsets/index.html b/site/plugins/admin/views/templates/extends/fieldsets/index.html index 02fb24fe..c940cd66 100644 --- a/site/plugins/admin/views/templates/extends/fieldsets/index.html +++ b/site/plugins/admin/views/templates/extends/fieldsets/index.html @@ -44,5 +44,11 @@ {% endfor %} +{% else %} +
+ +

{{ tr('admin_you_have_not_created_any_fieldsets_yet') }}

+ {{ tr('admin_create_new_fieldset') }} +
{% endif %} {% endblock %} diff --git a/site/plugins/admin/views/templates/extends/snippets/index.html b/site/plugins/admin/views/templates/extends/snippets/index.html index 76833215..2cee2b0e 100644 --- a/site/plugins/admin/views/templates/extends/snippets/index.html +++ b/site/plugins/admin/views/templates/extends/snippets/index.html @@ -10,7 +10,6 @@ - {% if snippets_list|length > 0 %} {% for id in snippets_list %} @@ -44,9 +43,14 @@ {% endfor %} - {% endif %} +{% else %} +
+ +

{{ tr('admin_you_have_not_created_any_snippets_yet') }}

+ {{ tr('admin_create_new_snippet') }} +
{% endif %} diff --git a/site/plugins/admin/views/templates/extends/templates/index.html b/site/plugins/admin/views/templates/extends/templates/index.html index 7cf25f48..ff662273 100644 --- a/site/plugins/admin/views/templates/extends/templates/index.html +++ b/site/plugins/admin/views/templates/extends/templates/index.html @@ -88,5 +88,11 @@ {% endif %} +{% else %} +
+ +

{{ tr('admin_you_have_not_created_any_templates_yet') }}

+ {{ tr('admin_create_new_template') }} +
{% endif %} {% endblock %}