9 changed files with 321 additions and 42 deletions
@ -0,0 +1,31 @@ |
|||
{% extends "layout.html" %} |
|||
{% block title %}Edit Album{% endblock %} |
|||
{% block content %} |
|||
|
|||
<h1>Edit Album: {{ album }}</h1> |
|||
|
|||
<form id="album-editor" action="{{ url_for('photo.edit_album', album=album) }}" method="POST"> |
|||
<input type="hidden" name="token" value="{{ csrf_token() }}"> |
|||
|
|||
<strong>Album Title:</strong><br> |
|||
<input type="text" size="40" name="name" value="{{ album }}"><p> |
|||
|
|||
<strong>Description:</strong><br> |
|||
<textarea cols="50" rows="6" name="description">{{ album_info["description"] }}</textarea><br> |
|||
<small>Use <a href="/markdown" target="_blank">Markdown</a> syntax.</small><p> |
|||
|
|||
<strong>Display Format:</strong><br> |
|||
<label> |
|||
<input type="radio" name="format" value="classic"{% if album_info["format"] == "classic" %} checked{% endif %}> |
|||
<strong>Classic:</strong> Display a grid of thumbnails that must be clicked to view full size images. |
|||
</label><br> |
|||
<label> |
|||
<input type="radio" name="format" value="vertical"{% if album_info["format"] == "vertical" %} checked{% endif %}> |
|||
<strong>Vertical:</strong> Display all full size photos in one vertical view. |
|||
</label><p> |
|||
|
|||
<button type="submit">Save Changes</button> |
|||
|
|||
</form> |
|||
|
|||
{% endblock %} |
@ -0,0 +1,33 @@ |
|||
{% extends "layout.html" %} |
|||
{% block title %}Edit Captions{% endblock %} |
|||
{% block content %} |
|||
|
|||
<h1>Edit Captions in {{ album }}</h1> |
|||
|
|||
All captions use <a href="/markdown">Markdown</a> syntax.<p> |
|||
|
|||
<form id="caption-editor" action="{{ url_for('photo.bulk_captions', album=album) }}" method="POST"> |
|||
<input type="hidden" name="token" value="{{ csrf_token() }}"> |
|||
|
|||
<table width="100%" border="0" cellspacing="4" cellpadding="4"> |
|||
{% for photo in photos %} |
|||
<tr> |
|||
<td width="100" align="center" valign="top"> |
|||
<img src="{{ app['photo_url'] }}/{{ photo['data']['avatar'] }}" alt="Photo"> |
|||
</td> |
|||
<td align="left" valign="top"> |
|||
<strong>Caption:</strong><br> |
|||
<input type="text" size="40" name="{{ photo['key'] }}:caption" value="{{ photo['data']['caption'] }}"><p> |
|||
|
|||
<strong>Description:</strong><br> |
|||
<textarea cols="50" rows="6" name="{{ photo['key'] }}:description">{{ photo['data']['description'] }}</textarea> |
|||
</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</table><p> |
|||
|
|||
<button type="submit">Save Changes</button> |
|||
|
|||
</form> |
|||
|
|||
{% endblock %} |
Loading…
Reference in new issue