1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-27 15:00:11 +02:00

Flextype Box Plugin: Admin #125 #117

- Fieldsets Controller/Views implementation
This commit is contained in:
Awilum
2019-05-24 13:09:20 +03:00
parent bae0803e5e
commit b29a051f73
2 changed files with 41 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
{% extends "plugins/admin/views/partials/base.html" %}
{% block content %}
index
{% endblock %}

View File

@@ -0,0 +1,36 @@
{% extends "plugins/admin/views/partials/base.html" %}
{% block content %}
{% if fieldsets_list|length > 0 %}
<table class="table no-margin">
<thead>
<tr>
<th>{{ tr('admin_name') }}</th>
<th></th>
</tr>
</thead>
<tbody>
{% for id, title in fieldsets_list %}
<tr>
<td>
<a href="{{ path_for('admin.fieldsets.edit') }}?id={{ id }}">{{ title }}</a>
</td>
<td class="text-right">
<div class="btn-group">
<a class="btn btn-default" href="{{ path_for('admin.fieldsets.edit') }}?id={{ id }}">{{ tr('admin_edit') }}</a>
<button type="button" class="btn btn-default dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu">
<a class="dropdown-item" href="{{ path_for('admin.fieldsets.rename') }}?id={{ id }}">{{ tr('admin_rename') }}</a>
<a class="dropdown-item" href="{{ path_for('admin.fieldsets.duplicateProcess') }}?id={{ id }}">{{ tr('admin_duplicate') }}</a>
</div>
</div>
<a class="btn btn-default" href="{{ path_for('admin.fieldsets.deleteProcess') }}?id={{ id }}">{{ tr('admin_delete') }}</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}
{% endblock %}