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.
 
 
 
 
 

31 lines
1.3 KiB

  1. {% extends "layout.html" %}
  2. {% block title %}Edit Album{% endblock %}
  3. {% block content %}
  4. <h1>Edit Album: {{ album }}</h1>
  5. <form id="album-editor" action="{{ url_for('photo.edit_album', album=album) }}" method="POST">
  6. <input type="hidden" name="token" value="{{ csrf_token() }}">
  7. <strong>Album Title:</strong><br>
  8. <input type="text" class="form-control" size="40" name="name" value="{{ album }}"><p>
  9. <strong>Description:</strong><br>
  10. <textarea class="form-control" cols="50" rows="6" name="description">{{ album_info["description"] }}</textarea><br>
  11. <small>Use <a href="/markdown" target="_blank">Markdown</a> syntax.</small><p>
  12. <strong>Display Format:</strong><br>
  13. <label>
  14. <input type="radio" name="format" value="classic"{% if album_info["format"] == "classic" %} checked{% endif %}>
  15. <strong>Classic:</strong> Display a grid of thumbnails that must be clicked to view full size images.
  16. </label><br>
  17. <label>
  18. <input type="radio" name="format" value="vertical"{% if album_info["format"] == "vertical" %} checked{% endif %}>
  19. <strong>Vertical:</strong> Display all full size photos in one vertical view.
  20. </label><p>
  21. <button type="submit" class="btn btn-primary">Save Changes</button>
  22. </form>
  23. {% endblock %}