Add missing templates (placeholders)

This commit is contained in:
Matias Griese
2014-09-09 07:58:19 +03:00
parent ff001b3dbc
commit 9c4bc41bd6
8 changed files with 14 additions and 46 deletions

View File

@@ -1,7 +1,7 @@
---
title: Users
title: Installer
access:
admin.users: true
admin.install: true
admin.super: true
---

View File

@@ -1,7 +1,7 @@
---
title: Installer
title: Statistics
access:
admin.install: true
admin.statistics: true
admin.super: true
---

View File

@@ -1,3 +1,7 @@
---
title: Grav Themes
access:
admin.themes: true
admin.super: true
---

View File

@@ -1,7 +1,7 @@
---
title: Plugins
title: Users
access:
admin.plugins: true
admin.users: true
admin.super: true
---

View File

@@ -5,7 +5,7 @@
<div class="admin-block">
<h1>
Users
Installer
</h1>
{% include 'partials/messages.html.twig' %}

View File

@@ -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'] %}

View File

@@ -5,7 +5,7 @@
<div class="admin-block">
<h1>
Users
Statistics
</h1>
{% include 'partials/messages.html.twig' %}

View File

@@ -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 %}