mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-04 20:36:03 +01:00
Add missing templates (placeholders)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Users
|
||||
title: Installer
|
||||
|
||||
access:
|
||||
admin.users: true
|
||||
admin.install: true
|
||||
admin.super: true
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Installer
|
||||
title: Statistics
|
||||
|
||||
access:
|
||||
admin.install: true
|
||||
admin.statistics: true
|
||||
admin.super: true
|
||||
---
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
---
|
||||
title: Grav Themes
|
||||
|
||||
access:
|
||||
admin.themes: true
|
||||
admin.super: true
|
||||
---
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: Plugins
|
||||
title: Users
|
||||
|
||||
access:
|
||||
admin.plugins: true
|
||||
admin.users: true
|
||||
admin.super: true
|
||||
---
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<div class="admin-block">
|
||||
<h1>
|
||||
Users
|
||||
Installer
|
||||
</h1>
|
||||
|
||||
{% include 'partials/messages.html.twig' %}
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
{% include 'partials/messages.html.twig' %}
|
||||
|
||||
<form method="post">
|
||||
{% for field in page.header.form %}
|
||||
{% for field in page.header.form.fields %}
|
||||
{% if field.type %}
|
||||
<div>
|
||||
{% include ["forms/fields/#{field.type}/#{field.type}.html.twig", 'forms/fields/text/text.html.twig'] %}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
|
||||
<div class="admin-block">
|
||||
<h1>
|
||||
Users
|
||||
Statistics
|
||||
</h1>
|
||||
|
||||
{% include 'partials/messages.html.twig' %}
|
||||
|
||||
@@ -4,47 +4,11 @@
|
||||
{% block content %}
|
||||
|
||||
<div class="admin-block">
|
||||
{% if not admin.route %}
|
||||
<h1>
|
||||
Plugins
|
||||
Users
|
||||
</h1>
|
||||
|
||||
{% include 'partials/messages.html.twig' %}
|
||||
|
||||
<table>
|
||||
{% for plugin in admin.plugins %}
|
||||
{% set blueprints = plugin.blueprints() %}
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ base_url_relative }}/plugins/{{ blueprints.name|url_encode }}">{{ blueprints.get('name') }}</a>
|
||||
</td>
|
||||
<td>
|
||||
<form action="{{ base_url_relative }}/plugins/{{ blueprints.name }}" method="post">
|
||||
<input type="hidden" name="enabled" value="{{ plugin.get('enabled') ? 0 : 1 }}" />
|
||||
<input type="hidden" name="_redirect" value="plugins" />
|
||||
<button class="button" name="task" value="enable"{{ blueprints.name == 'admin' ? ' disabled="disabled"' }}>
|
||||
{{ plugin.get('enabled') ? 'Enabled' : 'Disabled' }}
|
||||
</button>
|
||||
</form>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
{% else %}
|
||||
{% set plugin = admin.plugins[admin.route] %}
|
||||
{% set blueprints = plugin.blueprints() %}
|
||||
|
||||
<h1>
|
||||
{{ blueprints.get('name')|e }}
|
||||
<small>{{ blueprints.get('version') ? 'v' ~ blueprints.get('version')|e }}</small>
|
||||
</h1>
|
||||
|
||||
{% include 'partials/messages.html.twig' %}
|
||||
<p>{{ blueprints.get('description') }}</p>
|
||||
|
||||
{% include 'partials/blueprints.html.twig' with { data: plugin } %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user