edit_comment.twig 978 B

123456789101112131415161718192021222324252627282930313233
  1. {% include 'header.twig' %}
  2. <div class="edit">
  3. <h3>
  4. Edit: {{ item.data.postTitle }}
  5. </h3>
  6. <div class="info">
  7. by <a href="{{ ('user/' ~ item.data.username|url_encode)|docroot }}">{{ item.data.username }}</a>
  8. <em>{{ item.data.created|ago }}</em>
  9. </div>
  10. <div style="margin: 2em 0;">
  11. {{ item.data.text|markdown|raw }}
  12. </div>
  13. {# "shortcut-submit" is a class used exclusively from javascript
  14. # to submit the form when a key (Ctrl+Enter) is pressed.
  15. #}
  16. <form action="" method="post" class="shortcut-submit">
  17. <input type="hidden" name="comment" value="{{ item.data.hashId }}" />
  18. <div style="margin: 2em 0;">
  19. <textarea name="text" rows=10 class="form-control">{{ item.data.text }}</textarea>
  20. </div>
  21. <div>
  22. <input type="submit" class="button button_info" value="Save changes" />
  23. </div>
  24. </form>
  25. </div>
  26. {% include 'footer.twig' %}