1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-17 18:36:39 +02:00

Flextype Box Plugin: Admin #125 #117

- fixes and updates
This commit is contained in:
Awilum
2019-06-11 23:51:02 +03:00
parent 576a7ed941
commit b1f80577e8
3 changed files with 8 additions and 3 deletions

View File

@@ -178,7 +178,12 @@
</nav>
{% endif %}
{% if is_current_path('admin.entries.index') or is_current_path('admin.entries.edit') %}
{% if is_current_path('admin.entries.index') or
is_current_path('admin.entries.edit') or
is_current_path('admin.entries.add') or
is_current_path('admin.entries.move') or
is_current_path('admin.entries.rename') or
is_current_path('admin.entries.type') %}
<div class="entry-editor-heading">
{% for part in parts %}
{% set i = i - 1 %}

View File

@@ -49,7 +49,7 @@
<a class="dropdown-item" href="{{ path_for('admin.entries.rename') }}?id={{ entry.slug }}">{{ tr('admin_rename') }}</a>
<a class="dropdown-item" href="{{ path_for('admin.entries.move') }}?id={{ entry.slug }}">{{ tr('admin_move') }}</a>
<a class="dropdown-item" href="{{ base_url() }}/{{ entry.slug }}" target="_blank">{{ tr('admin_preview') }}</a>
<a class="dropdown-item" href="{{ path_for('admin.entries.type') }}?entry={{ entry.slug }}">{{ tr('admin_type') }}</a>
<a class="dropdown-item" href="{{ path_for('admin.entries.type') }}?id={{ entry.slug }}">{{ tr('admin_type') }}</a>
</div>
</div>
<form id="duplicate-id-{{ entry.slug }}" action="{{ path_for('admin.entries.duplicateProcess') }}" method="POST" style="display: none;">

View File

@@ -10,7 +10,7 @@
<label for="title">{{ tr('admin_type') }}</label>
<select class="form-control" name="fieldset">
{% for key, value in fieldsets %}
<option value="{{ key }}" {% if key == fieldset %}selected{% endif %}>{{ value }}</option>
<option value="{{ key }}-{{fieldset}}" {% if key == fieldset %}selected{% endif %}>{{ value }}</option>
{% endfor %}
</select>
</div>