webseite-grav/plugins/admin/themes/grav/templates/partials/release-toggle.html.twig

12 lines
695 B
Twig
Raw Permalink Normal View History

2021-04-30 11:23:26 +02:00
{% if authorize(['admin.super']) %}
<form id="gpm-release-toggle">
<div class="switch-toggle switch-grav" data-url="{{ base_url }}/ajax.json/task:gpmRelease">
<input type="radio" value="stable" id="stable" name="channel-switch" class="highlight" {% if config.system.gpm.releases == 'stable' %} checked="checked"{% endif %}>
<label for="stable">{{ "PLUGIN_ADMIN.STABLE"|tu }}</label>
<input type="radio" value="testing" id="testing" name="channel-switch" class="highlight" {% if config.system.gpm.releases == 'testing' %} checked="checked"{% endif %}>
<label for="testing">{{ "PLUGIN_ADMIN.TESTING"|tu }}</label>
<a></a>
</div>
</form>
{% endif %}