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.
 
 
 
 
 

67 lines
2.7 KiB

  1. {# Common template for leaving a comment/updating the comment preview. #}
  2. <form name="comment" action="{{ url_for('comment.preview') }}" method="POST">
  3. <input type="hidden" name="token" value="{{ csrf_token() }}">
  4. <input type="hidden" name="thread" value="{{ thread }}">
  5. <input type="hidden" name="url" value="{{ url }}">
  6. <input type="hidden" name="subject" value="{{ subject }}">
  7. <table border="0" cellspacing="2" cellpadding="2">
  8. <tr>
  9. <td align="left" valign="middle">
  10. Your name:
  11. </td>
  12. <td align="left" valign="middle">
  13. {% if session["login"] %}
  14. <strong>{{ session["name"] }}</strong>
  15. {% else %}
  16. <input type="text" class="form-control" size="40" name="name" value="{{ name }}">
  17. {% endif %}
  18. </td>
  19. </tr>
  20. <tr>
  21. <td align="left" valign="middle">
  22. Your Email:
  23. </td>
  24. <td align="left" valign="middle">
  25. <input type="text" class="form-control" size="40" name="contact" value="{{ contact }}" placeholder="(optional; used for Gravatar icons and subscribing)">
  26. </td>
  27. </tr>
  28. <tr>
  29. <td align="left" valign="top">
  30. Message:
  31. </td>
  32. <td align="left" valign="top">
  33. <textarea class="form-control" cols="40" rows="8" name="message" style="width: 100%">{{ message }}</textarea>
  34. <div>
  35. <small>Comments can be formatted with <a href="/markdown" target="_blank">Markdown</a>,
  36. and you can use<br><a href="{{ url_for('emoticons.index') }}" target="_blank">emoticons</a>
  37. in your comment.</small>
  38. </div>
  39. </td>
  40. </tr>
  41. <tr>
  42. <td colspan="2" align="left" valign="top">
  43. <label>
  44. <input type="checkbox" name="subscribe" value="true"{% if subscribe == "true" %} checked{% endif %}>
  45. Notify me of future comments on this page via e-mail
  46. (<a href="{{ url_for('comment.privacy') }}" target="_blank">Privacy Policy</a>)
  47. </label>
  48. </td>
  49. </tr>
  50. </table><p>
  51. <div style="display: none">
  52. If you can see this, don't touch the following fields.<br>
  53. <input type="text" class="form-control" name="website" value="http://"><br>
  54. <input type="text" class="form-control" name="email" value="">
  55. </div>
  56. {% if preview %}
  57. <button class="btn btn-default" type="submit" name="action" value="preview">Refresh Preview</button>
  58. <button class="btn btn-primary" type="submit" name="action" value="submit">Submit Comment</button>
  59. {% else %}
  60. <button class="btn btn-primary" type="submit" name="action" value="preview">Leave Comment</button>
  61. {% endif %}
  62. </form>