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.

delete_user.twig 4.5KB

9 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Delete User “%s”?" | translate | format(user.login | escape) }{% endblock %}
  3. {% block content %}
  4. <h1>${ "Are you sure you want to delete user &#8220;%s&#8221;?" | translate | format(user.login | escape) }</h1>
  5. <form class="delete" action="{% admin "destroy_user" %}" method="post" accept-charset="utf-8">
  6. <fieldset>
  7. <blockquote class="noitalic">
  8. <h2>${ "Information" | translate }</h2>
  9. <ul>
  10. {% if user.full_name %}
  11. <li><strong>${ "Full Name:" | translate }</strong> $user.full_name</li>
  12. {% endif %}
  13. <li><strong>${ "E-Mail:" | translate }</strong> $user.email</li>
  14. {% if user.website %}
  15. <li><strong>${ "Website:" | translate }</strong> <a href="$user.website">$user.website</a></li>
  16. {% endif %}
  17. <li><strong>${ "Group:" | translate }</strong> $user.group.name</li>
  18. </ul>
  19. <br />
  20. {% if user.posts %}
  21. <h2>${ "Posts:" | translate }</h2>
  22. <ul>
  23. {% for post in user.posts %}
  24. <li><a href="$post.url">$post.title</a></li>
  25. {% endfor %}
  26. </ul>
  27. <br />
  28. {% if users %}
  29. <h2 class="inline">
  30. <input type="radio" name="posts" value="move" id="posts_move" />
  31. ${ "Attribute posts to:" | translate }
  32. </h2>
  33. <select name="move_posts" id="move_posts" class="big2">
  34. {% for user in users %}
  35. <option value="$user.id">$user.full_name ($user.login)</option>
  36. {% endfor %}
  37. </select>
  38. <br />
  39. {% endif %}
  40. <h2 class="inline">
  41. <input type="radio" name="posts" value="delete" id="posts_delete" checked="checked" />
  42. ${ "Delete posts." | translate }
  43. </h2>
  44. <br />
  45. <br />
  46. {% endif %}
  47. {% if user.pages %}
  48. <h2>${ "Pages:" | translate }</h2>
  49. <ul>
  50. {% for page in user.pages %}
  51. <li><a href="$page.url">$page.title</a></li>
  52. {% endfor %}
  53. </ul>
  54. <br />
  55. {% if users %}
  56. <h2 class="inline">
  57. <input type="radio" name="pages" value="move" id="pages_move" />
  58. ${ "Attribute pages to:" | translate }
  59. </h2>
  60. <select name="move_pages" id="move_pages" class="big2">
  61. {% for user in users %}
  62. <option value="$user.id">$user.full_name ($user.login)</option>
  63. {% endfor %}
  64. </select>
  65. <br />
  66. {% endif %}
  67. <h2 class="inline">
  68. <input type="radio" name="pages" value="delete" id="pages_delete" checked="checked" />
  69. ${ "Delete pages." | translate }
  70. </h2>
  71. <br />
  72. <br />
  73. {% endif %}
  74. ${ trigger.call("delete_user_form") }
  75. </blockquote>
  76. <br />
  77. <div class="center">
  78. <button name="destroy" value="indubitably" class="center boo">${ "DESTROY!" | translate }</button>
  79. <button name="destroy" value="bollocks" type="submit" class="yay">${ "Cancel" | translate }</button>
  80. </div>
  81. <input type="hidden" name="id" value="$user.id" id="id" />
  82. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  83. </fieldset>
  84. </form>
  85. {% endblock %}