Merge remote branch 'aaronw/bug601_blank_comments'
[mediagoblin.git] / mediagoblin / templates / mediagoblin / user_pages / media_confirm_delete.html
index 87a3ad8168f15d8d98062f2ea160a19a0c6dee3c..8da90f79119cef2df81efa8ed6c6052f5d07a145 100644 (file)
@@ -1,6 +1,6 @@
 {#
 # 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
           Really delete {{ title }}?
         {%- endtrans %}
       </h1>
-      <p>
-       <em>
-         {%- trans -%}
-           If you choose yes, the media entry will be deleted <strong>permanently.</strong>
-         {%- endtrans %}
-       </em>
-      </p>
          
-      {{ wtforms_util.render_divs(form) }}
+      <div style="text-align: center;" >
+        <img src="{{ request.app.public_store.file_url(
+                         media['media_files']['thumb']) }}" />
+      </div>
+         
+      <br />
+         
+      <p class="delete_checkbox_box">
+       {{ form.confirm }}
+       <label for="{{ (form.confirm.name) }}">{{ _(form.confirm.label.text) }}</label>
+      </p>
+
       <div class="form_submit_buttons">
-        <input type="submit" value="{% trans %}Save changes{% endtrans %}" class="button" />
+        {# TODO: This isn't a button really... might do unexpected things :) #}
+       <a class="cancel_link" href="{{ media.url_for_self(request.urlgen) }}">{% trans %}Cancel{% endtrans %}</a>
+        <input type="submit" value="{% trans %}Delete Permanently{% endtrans %}" class="button" />
+       {{ csrf_token }}
       </div>
     </div>
   </form>