mirror of
https://github.com/flextype/flextype.git
synced 2025-08-17 02:24:05 +02:00
feat(admin-panel): updates for table entries view
This commit is contained in:
@@ -10,11 +10,11 @@
|
||||
{% else %}
|
||||
{% set _entries = entries.fetch(entry.slug, {}) %}
|
||||
{% set _entries_length = _entries | length %}
|
||||
{% do
|
||||
{% do
|
||||
cache.save(entry.slug ~ '_counter', _entries_length) %}
|
||||
{% endif %}
|
||||
<div class="w-full md:w-3/12 lg:w-2/12 text-center p-4 relative">
|
||||
<button type="button" class="js-dropdown-btn relative" data-dropdown="dropdown-{{ entry.slug }}" style="top: 16px; right: 16px; position: absolute; z-index: 10; width: 34px; height: 34px;">
|
||||
<button type="button" data-dropdown="dropdown-{{ entry.slug }}" style="top: 16px; right: 16px; position: absolute; z-index: 10; width: 34px; height: 34px;">
|
||||
<i class="icon">{{ icon('fas fa-ellipsis-h') }}</i>
|
||||
</button>
|
||||
<div id="dropdown-{{ entry.slug }}" class="dropdown">
|
||||
@@ -58,7 +58,7 @@
|
||||
|
||||
<a
|
||||
href="{% if _entries_length > 0 %}{{ path_for('admin.entries.index') }}?id={{ entry.slug }}{% else %}{{ path_for('admin.entries.edit') }}?id={{ entry.slug }}&type=editor{% endif %}"
|
||||
class="block bg-gray-000 border-gray-100 border px-4 py-12 relative">
|
||||
class="block bg-gray-000 border-gray-100 border px-4 py-8 relative rounded">
|
||||
|
||||
<div class="text-4xl">
|
||||
{% if entry.fieldset %}
|
||||
@@ -146,7 +146,7 @@
|
||||
{% else %}
|
||||
{% set _entries = entries.fetch(entry.slug, {}) %}
|
||||
{% set _entries_length = _entries | length %}
|
||||
{% do
|
||||
{% do
|
||||
cache.save(entry.slug ~ '_counter', _entries_length) %}
|
||||
{% endif %}
|
||||
<a href="{% if _entries_length > 0 %}{{ path_for('admin.entries.index') }}?id={{ entry.slug }}{% else %}{{ path_for('admin.entries.edit') }}?id={{ entry.slug }}&type=editor{% endif %}">
|
||||
@@ -242,7 +242,7 @@
|
||||
{% for key, fieldset in fieldsets %}
|
||||
<div class="block col w-4/12 px-3 py-3 mb-2">
|
||||
<a href="javascript:;" onclick="event.preventDefault();
|
||||
document.getElementById('add-entry-{{ key }}').submit();" class="block bg-gray-000 border-gray-100 border px-4 py-8 relative">
|
||||
document.getElementById('add-entry-{{ key }}').submit();" class="block bg-gray-000 border-gray-100 border px-4 py-8 relative rounded">
|
||||
<div>
|
||||
{% if fieldset.icon %}
|
||||
<i class="icon icon--large">{{ icon(fieldset.icon) }}</i>
|
||||
@@ -294,4 +294,4 @@
|
||||
});
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user