36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
{% 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" class="form-control"size="40" name="caption" value="{{ photo['caption'] }}"><p>
|
|
|
|
<strong>Description:</strong><br>
|
|
<textarea class="form-control" cols="50" rows="6" name="description">{{ photo['description'] }}</textarea><br>
|
|
<small>Use <a href="/markdown">Markdown</a> syntax.</small><p>
|
|
|
|
Rotate:
|
|
<label>
|
|
<input type="radio" name="rotate" value="" checked> Leave alone
|
|
</label>
|
|
<label>
|
|
<input type="radio" name="rotate" value="left"> Left 90°
|
|
</label>
|
|
<label>
|
|
<input type="radio" name="rotate" value="right"> Right 90°
|
|
</label>
|
|
<label>
|
|
<input type="radio" name="rotate" value="180"> 180°
|
|
</label><p>
|
|
|
|
<button type="submit" class="btn btn-primary">Save Changes</button>
|
|
</form>
|
|
|
|
{% endblock %} |