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.
 
 
 
 
 

33 lines
1.2 KiB

  1. {% extends "layout.html" %}
  2. {% block title %}Edit Captions{% endblock %}
  3. {% block content %}
  4. <h1>Edit Captions in {{ album }}</h1>
  5. All captions use <a href="/markdown">Markdown</a> syntax.<p>
  6. <form id="caption-editor" action="{{ url_for('photo.bulk_captions', album=album) }}" method="POST">
  7. <input type="hidden" name="token" value="{{ csrf_token() }}">
  8. <table width="100%" border="0" cellspacing="4" cellpadding="4">
  9. {% for photo in photos %}
  10. <tr>
  11. <td width="100" align="center" valign="top">
  12. <img src="{{ app['photo_url'] }}/{{ photo['data']['avatar'] }}" alt="Photo">
  13. </td>
  14. <td align="left" valign="top">
  15. <strong>Caption:</strong><br>
  16. <input type="text" class="form-control" size="40" name="{{ photo['key'] }}:caption" value="{{ photo['data']['caption'] }}"><p>
  17. <strong>Description:</strong><br>
  18. <textarea class="form-control" cols="50" rows="6" name="{{ photo['key'] }}:description">{{ photo['data']['description'] }}</textarea>
  19. </td>
  20. </tr>
  21. {% endfor %}
  22. </table><p>
  23. <button type="submit" class="btn btn-primary">Save Changes</button>
  24. </form>
  25. {% endblock %}