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.

new_group.twig 1.5KB

9 years ago
12345678910111213141516171819202122232425262728293031323334
  1. {% extends "layout.twig" %}
  2. {% block title %}${ "New Group" | translate }{% endblock %}
  3. {% block content %}
  4. <h1>${ "New Group" | translare }</h1>
  5. <form id="new_group" class="split" action="{% admin "add_group" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
  6. <fieldset>
  7. <p>
  8. <label for="name">${ "Name" | translate }</label>
  9. <input class="text" type="text" name="name" value="" id="name" />
  10. </p>
  11. <h2>${ "Permissions" | translate }</h2>
  12. <p id="toggler">
  13. </p>
  14. <hr class="js_enabled" />
  15. {% for permission in permissions %}
  16. <p>
  17. <label for="permission_$permission.id">${ permission.name | translate }</label>
  18. <input class="checkbox" type="checkbox" name="permissions[$permission.id]" id="permission_$permission.id" />
  19. </p>
  20. {% endfor %}
  21. <br />
  22. <p>
  23. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Add Group" | translate }</button>
  24. </p>
  25. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  26. </fieldset>
  27. </form>
  28. {% endblock %}