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.

33 lines
1.1 KiB

{% 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 %}
<td width="100" align="center" valign="top">
<img src="{{ app['photo_url'] }}/{{ photo['data']['avatar'] }}" alt="Photo">
<td align="left" valign="top">
<input type="text" size="40" name="{{ photo['key'] }}:caption" value="{{ photo['data']['caption'] }}"><p>
<textarea cols="50" rows="6" name="{{ photo['key'] }}:description">{{ photo['data']['description'] }}</textarea>
{% endfor %}
<button type="submit">Save Changes</button>
{% endblock %}