A Python content management system designed for kirsle.net featuring a blog, comments and photo albums. https://rophako.kirsle.net/
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.
 
 
 
 
 

29 lines
1.0 KiB

  1. {% extends "layout.html" %}
  2. {% block title %}Edit Comment{% endblock %}
  3. {% block content %}
  4. <h1>Edit Comment</h1>
  5. Current preview of the comment:<p>
  6. <div class="comment">
  7. {{ comment["formatted_message"]|safe }}
  8. </div>
  9. <h2>Edit Comment</h2>
  10. <form name="editor" action="{{ url_for('comment.edit', thread=thread, cid=cid) }}" method="POST">
  11. <input type="hidden" name="token" value="{{ csrf_token() }}">
  12. <input type="hidden" name="url" value="{{ url }}">
  13. <strong>Message:</strong><br>
  14. <textarea class="form-control" cols="40" rows="8" name="message">{{ comment["message"] }}</textarea><br>
  15. <small>Comments can be formatted with <a href="/markdown" target="_blank">Markdown</a>,
  16. and you can use<br><a href="{{ url_for('emoticons.index') }}" target="_blank">emoticons</a>
  17. in your comment.</small><p>
  18. <button type="submit" class="btn btn-default" name="action" value="preview">Preview Comment</button>
  19. <button type="submit" class="btn btn-primary" name="action" value="save">Save</button>
  20. </form>
  21. {% endblock %}