mirror of
https://github.com/flextype/flextype.git
synced 2025-08-20 11:51:28 +02:00
feat(admin-plugin): update dropdowns for tools and routes #211
This commit is contained in:
@@ -37,6 +37,8 @@ $app->group('/' . $admin_route, function () use ($app) : void {
|
||||
$app->post('/entries/delete', 'EntriesController:deleteProcess')->setName('admin.entries.deleteProcess');
|
||||
$app->post('/entries/delete-media-file', 'EntriesController:deleteMediaFileProcess')->setName('admin.entries.deleteMediaFileProcess');
|
||||
$app->post('/entries/upload-media-file', 'EntriesController:uploadMediaFileProcess')->setName('admin.entries.uploadMediaFileProcess');
|
||||
$app->post('/entries/display-view-process', 'EntriesController:displayViewProcess')->setName('admin.entries.displayViewProcess');
|
||||
|
||||
|
||||
// Settings Controller
|
||||
$app->get('/settings', 'SettingsController:index')->setName('admin.settings.index');
|
||||
|
@@ -1,88 +1,87 @@
|
||||
{% extends "plugins/admin/templates/partials/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="table no-margin">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ tr('admin_cache') }}</th>
|
||||
<th>{{ tr('admin_size') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{{ tr('admin_data') }}
|
||||
</td>
|
||||
<td>
|
||||
{% if doctrine_size %}{{ doctrine_size }}{% else %}0 KB{% endif %}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn dot dropdown-toggle" data-toggle="dropdown" data-display="static" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fas fa-ellipsis-h"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-lg-right">
|
||||
<form id="clear-id-doctrine" action="{{ path_for('admin.tools.clearCacheProcess') }}" method="POST" style="display: none;">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="cache-id" value="doctrine">
|
||||
</form>
|
||||
<a class="dropdown-item" href="javascript:;"
|
||||
onclick="event.preventDefault();
|
||||
document.getElementById('clear-id-doctrine').submit();"><i class="fas fa-trash-alt"></i> {{ tr('admin_clear') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ tr('admin_templates') }}
|
||||
</td>
|
||||
<td>
|
||||
{% if twig_size %}{{ twig_size }}{% else %}0 KB{% endif %}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn dot dropdown-toggle" data-toggle="dropdown" data-display="static" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fas fa-ellipsis-h"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-lg-right">
|
||||
<form id="clear-id-twig" action="{{ path_for('admin.tools.clearCacheProcess') }}" method="POST" style="display: none;">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="cache-id" value="twig">
|
||||
</form>
|
||||
<a class="dropdown-item" href="javascript:;"
|
||||
onclick="event.preventDefault();
|
||||
document.getElementById('clear-id-twig').submit();"><i class="fas fa-trash-alt"></i> {{ tr('admin_clear') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ tr('admin_images') }}
|
||||
</td>
|
||||
<td>
|
||||
{% if glide_size %}{{ glide_size }}{% else %}0 KB{% endif %}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<div class="btn-group">
|
||||
<button type="button" class="btn dot dropdown-toggle" data-toggle="dropdown" data-display="static" aria-haspopup="true" aria-expanded="false">
|
||||
<i class="fas fa-ellipsis-h"></i>
|
||||
</button>
|
||||
<div class="dropdown-menu dropdown-menu-lg-right">
|
||||
<form id="clear-id-glide" action="{{ path_for('admin.tools.clearCacheProcess') }}" method="POST" style="display: none;">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="cache-id" value="glide">
|
||||
</form>
|
||||
<a class="dropdown-item" href="javascript:;"
|
||||
onclick="event.preventDefault();
|
||||
document.getElementById('clear-id-glide').submit();"><i class="fas fa-trash-alt"></i> {{ tr('admin_clear') }}</a>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ tr('admin_cache') }}</th>
|
||||
<th>{{ tr('admin_size') }}</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>
|
||||
{{ tr('admin_data') }}
|
||||
</td>
|
||||
<td>
|
||||
{% if doctrine_size %}{{ doctrine_size }}
|
||||
{% else %}0 KB{% endif %}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<button type="button" class="js-dropdown-btn">
|
||||
<i class="fas fa-ellipsis-h"></i>
|
||||
</button>
|
||||
<div class="js-dropdown dropdown-menu">
|
||||
<a class="dropdown-menu__item" href="javascript:;" onclick="event.preventDefault();
|
||||
document.getElementById('clear-id-doctrine').submit();">
|
||||
<i class="fas fa-trash-alt dropdown-menu__icon"></i>
|
||||
{{ tr('admin_clear') }}</a>
|
||||
<form id="clear-id-doctrine" action="{{ path_for('admin.tools.clearCacheProcess') }}" method="POST" style="display: none;">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="cache-id" value="doctrine">
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ tr('admin_templates') }}
|
||||
</td>
|
||||
<td>
|
||||
{% if twig_size %}{{ twig_size }}
|
||||
{% else %}0 KB{% endif %}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<button type="button" class="js-dropdown-btn">
|
||||
<i class="fas fa-ellipsis-h"></i>
|
||||
</button>
|
||||
<div class="js-dropdown dropdown-menu">
|
||||
<a class="dropdown-menu__item" href="javascript:;" onclick="event.preventDefault();
|
||||
document.getElementById('clear-id-twig').submit();">
|
||||
<i class="fas fa-trash-alt dropdown-menu__icon"></i>
|
||||
{{ tr('admin_clear') }}</a>
|
||||
<form id="clear-id-twig" action="{{ path_for('admin.tools.clearCacheProcess') }}" method="POST" style="display: none;">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="cache-id" value="twig">
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
{{ tr('admin_images') }}
|
||||
</td>
|
||||
<td>
|
||||
{% if glide_size %}{{ glide_size }}
|
||||
{% else %}0 KB{% endif %}
|
||||
</td>
|
||||
<td class="text-right">
|
||||
<button type="button" class="js-dropdown-btn">
|
||||
<i class="fas fa-ellipsis-h"></i>
|
||||
</button>
|
||||
<div class="js-dropdown dropdown-menu">
|
||||
<a class="dropdown-menu__item" href="javascript:;" onclick="event.preventDefault();
|
||||
document.getElementById('clear-id-glide').submit();">
|
||||
<i class="fas fa-trash-alt dropdown-menu__icon"></i>
|
||||
{{ tr('admin_clear') }}</a>
|
||||
<form id="clear-id-glide" action="{{ path_for('admin.tools.clearCacheProcess') }}" method="POST" style="display: none;">
|
||||
{{ csrf() }}
|
||||
<input type="hidden" name="cache-id" value="glide">
|
||||
</form>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user