{#
# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 Free Software Foundation, Inc
+# Copyright (C) 2011 MediaGoblin contributors. See AUTHORS.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
{% block mediagoblin_content %}
- <h1>Edit details for {{ media.title }}</h1>
<form action="{{ request.urlgen('mediagoblin.edit.edit_media',
+ user= media.get_uploader.username,
media= media._id) }}"
method="POST" enctype="multipart/form-data">
- <table>
- {{ wtforms_util.render_table(form) }}
- <tr>
- <td></td>
- <td><input type="submit" value="submit" class="button_green" /></td>
- </tr>
- </table>
+ <div class="grid_8 prefix_1 suffix_1 edit_box form_box">
+ <h1>{% trans media_title=media.title %}Editing {{ media_title }}{% endtrans %}</h1>
+ <div style="text-align: center;" >
+ <img src="{{ request.app.public_store.file_url(
+ media.media_files['thumb']) }}" />
+ </div>
+ {{ wtforms_util.render_divs(form) }}
+ <div class="form_submit_buttons">
+ <a href="{{ media.url_for_self(request.urlgen) }}">{% trans %}Cancel{% endtrans %}</a>
+ <input type="submit" value="{% trans %}Save changes{% endtrans %}" class="button_form" />
+ {{ csrf_token }}
+ </div>
+ </div>
</form>
- <img src="{{ request.app.public_store.file_url(
- media['media_files']['thumb']) }}" />
+
{% endblock %}