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_page.twig 1.7KB

9 years ago
123456789101112131415161718192021222324252627282930313233
  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Delete Page “%s”?" | translate | format(page.title | escape) }{% endblock %}
  3. {% block content %}
  4. <h1>${ "Are you sure you want to delete &#8220;%s&#8221;?" | translate | format(page.title) }</h1>
  5. <form class="delete" action="{% admin "destroy_page" %}" method="post" accept-charset="utf-8">
  6. <fieldset>
  7. <blockquote>
  8. <h2>${ "Excerpt" | translate }</h2>
  9. ${ page.body | truncate(500) }
  10. {% if page.children %}
  11. <br />
  12. <h2><input type="checkbox" name="destroy_children{# OH, THE HORROR! #}" value="" id="destroy_children" /> ${ "Delete children?" | translate }</h2>
  13. <ul class="noitalic">
  14. {% for child in page.children %}
  15. <li><a href="$child.url">$child.title</a></li>
  16. {% endfor %}
  17. </ul>
  18. {% endif %}
  19. </blockquote>
  20. <br />
  21. <div class="center">
  22. <button name="destroy" value="indubitably" class="center boo">${ "DESTROY!" | translate }</button>
  23. <button name="destroy" value="bollocks" type="submit" class="yay">${ "Cancel" | translate }</button>
  24. </div>
  25. <input type="hidden" name="id" value="$page.id" id="id" />
  26. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  27. </fieldset>
  28. </form>
  29. {% endblock %}