1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-16 18:14:04 +02:00

feat(admin-plugin): fix dropdown for entries table view

This commit is contained in:
Awilum
2020-02-19 20:17:27 +03:00
parent d011470adc
commit 11d014b91d

View File

@@ -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" data-dropdown="dropdown-{{ entry.slug }}" style="top: 16px; right: 16px; position: absolute; z-index: 10; width: 34px; height: 34px;">
<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;">
<i class="icon">{{ icon('fas fa-ellipsis-h') }}</i>
</button>
<div id="dropdown-{{ entry.slug }}" class="dropdown">
@@ -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 %}">
@@ -294,4 +294,4 @@
});
}
</script>
{% endblock %}
{% endblock %}