1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-29 07:50:29 +02:00

Flextype Box Plugin: Admin #125 #117

- don't allow to disable site plugin
This commit is contained in:
Awilum
2019-06-07 17:20:57 +03:00
parent 9a421dec52
commit c749672787

View File

@@ -35,7 +35,7 @@
<span class="switch switch-sm">
<input id="switch-sm-{{ plugin.name }}" type="checkbox" class="switch js-switch" data-plugin="{{ key }}"
{% if plugin.enabled %}checked{% endif %}
{% if key == 'admin' or key == '' %}disabled{% endif %}>
{% if key == 'admin' or key == 'site' or key == '' %}disabled{% endif %}>
<label for="switch-sm-{{ plugin.name }}"></label>
</span>
</div>