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.
 
 
 
 
 

36 lines
1.2 KiB

  1. {% extends "layout.html" %}
  2. {% block title %}Edit Photo{% endblock %}
  3. {% block content %}
  4. <h1>Edit Photo</h1>
  5. <img src="{{ app['photo_url'] }}/{{ photo['thumb'] }}" class="portrait"><p>
  6. <form name="edit" action="{{ url_for('photo.edit', key=key) }}" method="POST">
  7. <input type="hidden" name="token" value="{{ csrf_token() }}">
  8. <strong>Photo Caption:</strong><br>
  9. <input type="text" class="form-control"size="40" name="caption" value="{{ photo['caption'] }}"><p>
  10. <strong>Description:</strong><br>
  11. <textarea class="form-control" cols="50" rows="6" name="description">{{ photo['description'] }}</textarea><br>
  12. <small>Use <a href="/markdown">Markdown</a> syntax.</small><p>
  13. Rotate:
  14. <label>
  15. <input type="radio" name="rotate" value="" checked> Leave alone
  16. </label>
  17. <label>
  18. <input type="radio" name="rotate" value="left"> Left 90&deg;
  19. </label>
  20. <label>
  21. <input type="radio" name="rotate" value="right"> Right 90&deg;
  22. </label>
  23. <label>
  24. <input type="radio" name="rotate" value="180"> 180&deg;
  25. </label><p>
  26. <button type="submit" class="btn btn-primary">Save Changes</button>
  27. </form>
  28. {% endblock %}