First Commit
This commit is contained in:
Executable
+88
@@ -0,0 +1,88 @@
|
||||
{% extends "layouts/dashboard.twig" %}
|
||||
|
||||
{% block title %}{{ title }} - {{ platformName }}{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="container-fluid px-4">
|
||||
<h1 class="mt-4">{{ title }}</h1>
|
||||
<ol class="breadcrumb mb-4">
|
||||
<li class="breadcrumb-item"><a href="{{ url('dashboard') }}">{{ __('layout.menu.dashboard') }}</a></li>
|
||||
<li class="breadcrumb-item active">{{ title }}</li>
|
||||
</ol>
|
||||
|
||||
<div class="card mb-4">
|
||||
<div class="card-header d-flex justify-content-between align-items-center">
|
||||
<div class="d-flex align-items-center">
|
||||
<i class="bi bi-file-earmark-text me-2"></i>
|
||||
<span class="me-3">{{ __('configindex.list_title') }}</span>
|
||||
|
||||
<form action="{{ url('admin/configindex') }}" method="GET" class="d-inline-flex align-items-center">
|
||||
<label class="me-2 small text-muted">Editar para o Tema:</label>
|
||||
<select name="theme" class="form-select form-select-sm" onchange="this.form.submit()" style="width: auto;">
|
||||
{% for slug, name in availableThemes %}
|
||||
<option value="{{ slug }}" {{ currentTheme == slug ? 'selected' : '' }}>{{ name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</form>
|
||||
</div>
|
||||
<a href="{{ url('admin/configindex/create') }}" class="btn btn-success btn-sm">
|
||||
<i class="bi bi-plus-circle"></i> Nova Página
|
||||
</a>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-bordered table-hover" width="100%" cellspacing="0">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>{{ __('configindex.page_name') }}</th>
|
||||
<th>Localização do Arquivo</th>
|
||||
<th>{{ __('configindex.actions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for key, name in pages %}
|
||||
<tr>
|
||||
<td>
|
||||
<strong>{{ name }}</strong> <small class="text-muted">({{ key }})</small>
|
||||
</td>
|
||||
<td>
|
||||
<code class="small">
|
||||
{% if currentTheme == 'default' %}
|
||||
modules/index/views/{{ key }}.twig
|
||||
{% else %}
|
||||
themes/{{ currentTheme }}/modules/index/views/{{ key }}.twig
|
||||
{% endif %}
|
||||
</code>
|
||||
</td>
|
||||
<td>
|
||||
<div class="btn-group" role="group">
|
||||
<a href="{{ url('admin/configindex/' ~ key ~ '/edit') }}?theme={{ currentTheme }}" class="btn btn-primary btn-sm" title="{{ __('configindex.edit') }}">
|
||||
<i class="bi bi-pencil"></i> Editar
|
||||
</a>
|
||||
|
||||
{% if currentTheme == 'default' %}
|
||||
<form action="{{ url('admin/configindex/' ~ key ~ '/toggle-status') }}" method="POST" style="display:inline;">
|
||||
<button type="submit" class="btn btn-outline-warning btn-sm" title="Ativar/Desativar">
|
||||
<i class="bi bi-eye"></i>
|
||||
</button>
|
||||
</form>
|
||||
|
||||
{% if key != 'index' %}
|
||||
<form action="{{ url('admin/configindex/' ~ key ~ '/delete') }}" method="POST" style="display:inline;" onsubmit="return confirm('Tem certeza que deseja excluir esta página e todos os seus arquivos?');">
|
||||
<button type="submit" class="btn btn-outline-danger btn-sm" title="Excluir">
|
||||
<i class="bi bi-trash"></i>
|
||||
</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user