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.
 
 
 
 
 

65 line
2.6 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)">
  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><br>
  34. <small>Comments can be formatted with <a href="/markdown" target="_blank">Markdown</a>,
  35. and you can use<br><a href="{{ url_for('emoticons.index') }}" target="_blank">emoticons</a>
  36. in your comment.</small>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td colspan="2" align="left" valign="top">
  41. <label>
  42. <input type="checkbox" name="subscribe" value="true"{% if subscribe == "true" %} checked{% endif %}>
  43. Notify me of future comments on this page via e-mail
  44. (<a href="{{ url_for('comment.privacy') }}" target="_blank">Privacy Policy</a>)
  45. </label>
  46. </td>
  47. </tr>
  48. </table><p>
  49. <div style="display: none">
  50. If you can see this, don't touch the following fields.<br>
  51. <input type="text" class="form-control" name="website" value="http://"><br>
  52. <input type="text" class="form-control" name="email" value="">
  53. </div>
  54. {% if preview %}
  55. <button class="btn btn-default" type="submit" name="action" value="preview">Refresh Preview</button>
  56. <button class="btn btn-primary" type="submit" name="action" value="submit">Submit Comment</button>
  57. {% else %}
  58. <button class="btn btn-primary" type="submit" name="action" value="preview">Leave Comment</button>
  59. {% endif %}
  60. </form>