mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 09:46:06 +01:00
Use macro to output nested checkboxes
This commit is contained in:
@@ -58,25 +58,28 @@
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% macro outputCheckboxesForDependencies(dependencies) %}
|
||||||
|
<ul>
|
||||||
|
{% for dependencyName, dependency in dependencies %}
|
||||||
|
<li>
|
||||||
|
<input type="checkbox" name="{{ dependencyName }}" /> {{ dependencyName }}
|
||||||
|
|
||||||
|
{% if is_array(dependency) %}
|
||||||
|
{{ _self.outputCheckboxesForDependencies(dependency) }}
|
||||||
|
{% endif %}
|
||||||
|
</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
{% endmacro %}
|
||||||
|
|
||||||
<div class="remodal" data-remodal-id="delete-plugin" data-remodal-options="hashTracking: false">
|
<div class="remodal" data-remodal-id="delete-plugin" data-remodal-options="hashTracking: false">
|
||||||
<form>
|
<form>
|
||||||
<h1>Delete plugin</h1>
|
<h1>Delete plugin</h1>
|
||||||
<p class="bigger">
|
<p class="bigger">
|
||||||
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
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>The following dependencies can be deleted too, check the ones you want to remove:</p>
|
{{ _self.outputCheckboxesForDependencies(dependenciesThatCanBeRemoved) }}
|
||||||
<ul>
|
|
||||||
{% for dependencyName, dependency in dependencies %}
|
|
||||||
<li>
|
|
||||||
{{ dependencyName }}
|
|
||||||
|
|
||||||
|
|
||||||
{{ dump(dependency) }}
|
|
||||||
|
|
||||||
</li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<div class="button-bar">
|
<div class="button-bar">
|
||||||
|
|||||||
Reference in New Issue
Block a user