From 2ca5e09baed24fd9095f4ad10a15e4733f0f94c7 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Fri, 4 Mar 2016 18:08:40 +0100 Subject: [PATCH] Use macro to output nested checkboxes --- .../partials/plugins-details.html.twig | 29 ++++++++++--------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/themes/grav/templates/partials/plugins-details.html.twig b/themes/grav/templates/partials/plugins-details.html.twig index eccc325e..c21de112 100644 --- a/themes/grav/templates/partials/plugins-details.html.twig +++ b/themes/grav/templates/partials/plugins-details.html.twig @@ -58,25 +58,28 @@ +{% macro outputCheckboxesForDependencies(dependencies) %} + +{% endmacro %} +

Delete plugin

- Are you sure? + The following dependencies are only required by this plugin, and can be deleted too. Check the ones you want to remove, and click the Continue button below

-

The following dependencies can be deleted too, check the ones you want to remove:

-
    - {% for dependencyName, dependency in dependencies %} -
  • - {{ dependencyName }} - - - {{ dump(dependency) }} - -
  • - {% endfor %} -
+ {{ _self.outputCheckboxesForDependencies(dependenciesThatCanBeRemoved) }}