From a842675fa8f2a2c437dde7e54be24c6123ef2a53 Mon Sep 17 00:00:00 2001 From: Gert Date: Tue, 24 Feb 2015 23:16:22 +0100 Subject: [PATCH] fix for admin plugin toggle showing in admin (issue #9) --- blueprints.yaml | 11 ----------- themes/grav/templates/partials/plugins-list.html.twig | 8 +++++--- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/blueprints.yaml b/blueprints.yaml index e28edad5..4d7e6c1d 100644 --- a/blueprints.yaml +++ b/blueprints.yaml @@ -11,17 +11,6 @@ keywords: admin, plugin, manager, panel form: validation: strict fields: - enabled: - type: toggle - label: Plugin status - highlight: 1 - default: 1 - options: - 1: Enabled - 0: Disabled - validate: - type: bool - route: type: text label: Administrator path diff --git a/themes/grav/templates/partials/plugins-list.html.twig b/themes/grav/templates/partials/plugins-list.html.twig index d460562d..31d47246 100644 --- a/themes/grav/templates/partials/plugins-list.html.twig +++ b/themes/grav/templates/partials/plugins-list.html.twig @@ -21,9 +21,11 @@ v{{ plugin.version }} - - - + {% if (plugin.form.fields.enabled) %} + + + + {% endif %} {% endfor %}