mirror of
https://github.com/flextype/flextype.git
synced 2025-08-07 05:36:54 +02:00
feat(admin-plugin): fix dropdowns for entries list
This commit is contained in:
@@ -14,18 +14,19 @@
|
||||
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" style="top: 16px; right: 16px; position: absolute; z-index: 10; width: 34px; height: 34px;" data-dropdown="dropdown-list-{{ entry.slug }}">
|
||||
<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-list-{{ entry.slug }}" class="dropdown">
|
||||
<div id="dropdown-{{ entry.slug }}" class="dropdown">
|
||||
<a class="dropdown__item" href="{{ path_for('admin.entries.edit') }}?id={{ entry.slug }}&type=editor">
|
||||
<i class="icon icon--white mr-3">{{ icon('fas fa-edit') }}</i>
|
||||
{{ tr('admin_edit') }}</a>
|
||||
<a class="dropdown__item" href="javascript:;" onclick="$('.js-add-entry input[name=id]').attr('value', '{{ entry.slug }}');" data-toggle="modal" data-target="#selectEntryTypeModal">
|
||||
<a class="dropdown__item" href="javascript:;" onclick="event.preventDefault();
|
||||
selectEntryType('{{ entry.slug }}', {{ loop.index0 }});">
|
||||
<i class="icon icon--white mr-3">{{ icon('fas fa-plus-circle') }}</i>
|
||||
{{ tr('admin_add') }}</a>
|
||||
<a class="dropdown__item" href="javascript:;" onclick="event.preventDefault();
|
||||
selectEntryType('{{ entry.slug }}', {{ loop.index0 }});">
|
||||
document.getElementById('duplicate-id-{{ entry.slug }}').submit();">
|
||||
<i class="icon icon--white mr-3">{{ icon('fas fa-copy') }}</i>
|
||||
{{ tr('admin_duplicate') }}</a>
|
||||
<a class="dropdown__item" href="{{ path_for('admin.entries.rename') }}?id={{ entry.slug }}">
|
||||
|
Reference in New Issue
Block a user