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.

61 lines
3.2KB

  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Delete Group “%s”?" | translate | format(group.name | escape) }{% endblock %}
  3. {% block content %}
  4. <h1>${ "Are you sure you want to delete the &#8220;%s&#8221; group?" | translate | format(group.name | escape) }</h1>
  5. <form class="delete{% if group.id == visitor.group.id %} confirm{% endif %}" action="{% admin "destroy_group" %}" method="post" accept-charset="utf-8">
  6. <fieldset>
  7. <blockquote class="noitalic">
  8. {% if group.members %}
  9. <h2>${ "Members:" | translate }</h2>
  10. <ul>
  11. {% for member in group.members %}
  12. <li>${ member.full_name | fallback(member.login) }</li>
  13. {% endfor %}
  14. </ul>
  15. <br />
  16. {% if groups %}
  17. <h2 class="inline">${ "Move members to:" | translate }</h2>
  18. <select name="move_group" id="move_group" class="big2">
  19. {% for group in groups %}
  20. <option value="$group.id"${ group.id | option_selected(site.default_group) }>$group.name</option>
  21. {% endfor %}
  22. </select>
  23. <br />
  24. {% endif %}
  25. <br />
  26. {% endif %}
  27. {% if group.id == site.default_group and groups %}
  28. <h2 class="inline">${ "New default group:" | translate }</h2>
  29. <select name="default_group" id="default_group" class="big2">
  30. {% for group in groups %}
  31. <option value="$group.id"${ group.id | option_selected(site.default_group) }>$group.name</option>
  32. {% endfor %}
  33. </select>
  34. <br />
  35. <br />
  36. {% endif %}
  37. {% if group.id == site.guest_group and groups %}
  38. <h2 class="inline">${ "New &#8220;guest&#8221; group:" | translate }</h2>
  39. <select name="guest_group" id="guest_group" class="big2">
  40. {% for group in groups %}
  41. <option value="$group.id"${ group.id | option_selected(site.default_group) }>$group.name</option>
  42. {% endfor %}
  43. </select>
  44. <br />
  45. <br />
  46. {% endif %}
  47. </blockquote>
  48. <div class="center">
  49. <button name="destroy" value="indubitably" class="center boo">${ "DESTROY!" | translate }</button>
  50. <button name="destroy" value="bollocks" type="submit" class="yay">${ "Cancel" | translate }</button>
  51. </div>
  52. <input type="hidden" name="id" value="$group.id" id="id" />
  53. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  54. </fieldset>
  55. </form>
  56. {% endblock %}