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.8KB

  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Edit Comment" | translate }{% endblock %}
  3. {% block content %}
  4. <h1>${ "Editing Comment" | translate }</h1>
  5. <form id="edit_form" action="{% admin "update_comment" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
  6. <fieldset>
  7. <p>
  8. <label for="body">${ "Body" | translate }</label>
  9. <textarea class="wide preview_me" rows="12" name="body" id="body" cols="50">${ comment.body | escape }</textarea>
  10. </p>
  11. <div class="buttons">
  12. <button type="submit" class="yay right" accesskey="s">
  13. <img src="$theme_url/images/icons/success.png" alt="success" />${ "Save" | translate }
  14. </button>
  15. ${ comment.delete_link('<img src="'~ theme_url ~'/images/icons/delete.png" alt="delete" />'~ ("Delete" | translate), null, null, "button boo right") }
  16. </div>
  17. <div class="clear"></div>
  18. <noscript><br /></noscript>
  19. <div id="more_options" class="more_options js_disabled">
  20. <p>
  21. <label for="author">${ "Author" | translate }</label>
  22. <input class="text" type="text" name="author" value="${ comment.author | escape }" id="author" />
  23. </p>
  24. <p>
  25. <label for="author_email">${ "Author E-Mail" | translate }</label>
  26. <input class="text" type="text" name="author_email" value="${ comment.author_email | escape }" id="author_email" />
  27. </p>
  28. <p>
  29. <label for="author_url">${ "Author Website" | translate }</label>
  30. <input class="text" type="text" name="author_url" value="${ comment.author_url | escape }" id="author_url" />
  31. </p>
  32. {% if visitor.group.can("edit_comment") %} {# If they can edit all comments, not just this one. #}
  33. <p>
  34. <label for="status">${ "Status" | translate }</label>
  35. <select name="status" id="status">
  36. <option value="approved"${ comment.status | option_selected("approved") }>${ "Approved" | translate }</option>
  37. <option value="denied"${ comment.status | option_selected("denied") }>${ "Denied" | translate }</option>
  38. <option value="spam"${ comment.status | option_selected("spam") }>${ "Spam" | translate }</option>
  39. <option value="pingback"${ comment.status | option_selected("pingback") }>${ "Pingback" | translate }</option>
  40. <option value="trackback"${ comment.status | option_selected("trackback") }>${ "Trackback" | translate }</option>
  41. </select>
  42. </p>
  43. <p>
  44. <label for="created_at">${ "Timestamp" | translate }</label>
  45. <input class="text" type="text" name="created_at" value="${ comment.created_at | strftime }" id="created_at" />
  46. </p>
  47. {% endif %}
  48. ${ trigger.call("edit_comment_options", comment) }
  49. <div class="clear"></div>
  50. </div>
  51. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  52. <input type="hidden" name="id" value="$comment.id" id="id" />
  53. </fieldset>
  54. </form>
  55. {% endblock %}