release-toggle.html.twig 693 B

1234567891011
  1. {% if authorize(['admin.super']) %}
  2. <form id="gpm-release-toggle">
  3. <div class="switch-toggle switch-grav" data-url="{{ base_url }}/ajax.json/task:gpmRelease">
  4. <input type="radio" value="stable" id="stable" name="channel-switch" class="highlight" {% if config.system.gpm.releases == 'stable' %} checked="checked"{% endif %}>
  5. <label for="stable">{{ "PLUGIN_ADMIN.STABLE"|t }}</label>
  6. <input type="radio" value="testing" id="testing" name="channel-switch" class="highlight" {% if config.system.gpm.releases == 'testing' %} checked="checked"{% endif %}>
  7. <label for="testing">{{ "PLUGIN_ADMIN.TESTING"|t }}</label>
  8. <a></a>
  9. </div>
  10. </form>
  11. {% endif %}