KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.9KB

  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Edit Group “%s”" | translate | format(group.name | escape) }{% endblock %}
  3. {% block content %}
  4. ${ group.delete_link('<img src="'~ theme_url ~'/images/icons/delete.png" alt="delete" />'~ ("Delete" | translate), null, null, "button boo right") }
  5. <h1>${ "Editing Group &#8220;%s&#8221;" | translate | format(group.name | escape) }</h1>
  6. <form id="group_edit" class="split{% if group.id == visitor.group.id %} confirm{% endif %}" action="{% admin "update_group" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
  7. <fieldset>
  8. <p>
  9. <label for="name">${ "Name" | translate }</label>
  10. <input class="text" type="text" name="name" value="${ group.name | escape }" id="name" />
  11. </p>
  12. <h2>${ "Permissions" | translate }</h2>
  13. <p id="toggler">
  14. </p>
  15. <hr class="js_enabled" />
  16. {% for permission in permissions %}
  17. <p>
  18. <label for="permission_$permission.id">${ permission.name | translate }</label>
  19. <input class="checkbox" type="checkbox" name="permissions[$permission.id]" id="permission_$permission.id"{% if group.can(permission.id) %} checked="checked"{% endif %} />
  20. </p>
  21. {% endfor %}
  22. <br />
  23. <p>
  24. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Update" | translate }</button>
  25. </p>
  26. <input type="hidden" name="id" value="$group.id" id="id" />
  27. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  28. </fieldset>
  29. </form>
  30. {% endblock %}