rophako/rophako/modules/photo/templates/photos/edit.html

36 lines
1.1 KiB
HTML
Raw Normal View History

{% extends "layout.html" %}
{% block title %}Edit Photo{% endblock %}
{% block content %}
<h1>Edit Photo</h1>
<img src="{{ app['photo_url'] }}/{{ photo['thumb'] }}" class="portrait"><p>
<form name="edit" action="{{ url_for('photo.edit', key=key) }}" method="POST">
<input type="hidden" name="token" value="{{ csrf_token() }}">
<strong>Photo Caption:</strong><br>
<input type="text" size="40" name="caption" value="{{ photo['caption'] }}"><p>
<strong>Description:</strong><br>
<textarea cols="50" rows="6" name="description">{{ photo['description'] }}</textarea><br>
<small>Use <a href="/markdown">Markdown</a> syntax.</small><p>
2014-06-21 04:25:15 +00:00
Rotate:
<label>
<input type="radio" name="rotate" value="" checked> Leave alone
</label>
<label>
<input type="radio" name="rotate" value="left"> Left 90&deg;
</label>
<label>
<input type="radio" name="rotate" value="right"> Right 90&deg;
</label>
<label>
<input type="radio" name="rotate" value="180"> 180&deg;
</label><p>
<button type="submit">Save Changes</button>
</form>
{% endblock %}