# HG changeset patch # User grandjoncl # Date 1348740777 -7200 # Node ID 6957287fbde75845b37550e880f96d0316f19bcc # Parent 06891536f619028309317debb6eaaba108e025dd# Parent 0f8e34108677aeba805493b19e89725e1aaa74a9 Merge with 0f8e34108677aeba805493b19e89725e1aaa74a9 diff -r 06891536f619 -r 6957287fbde7 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/error_confirm_popup.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/error_confirm_popup.html Thu Sep 27 12:12:57 2012 +0200 @@ -0,0 +1,61 @@ +{% extends "ldt/ldt_raw_base.html" %} + +{% load i18n %} {# form of creation of content #} + +{% block js_import %} + {{ block.super }} + + +{% endblock %} + +{% block css_import %} + {{ block.super }} + {{ content_form.media.css }} + + +{% endblock %} + + +{% block js_declaration %} + +{% endblock %} + +{% block body %} + +
+
{% if errors|length > 0 %}{% trans "error" %}{% else %}{% trans "confirm" %}{% endif %}
+
+ {{ message }} + {% if errors|length > 0 %} + + {% endif %} +
+ +
+
+ {% if errors|length > 0 %} + + {% else %} +
+ {% csrf_token %} + + +
+ {% endif %} +
+
+ +
+{% endblock %} \ No newline at end of file diff -r 06891536f619 -r 6957287fbde7 src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html --- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html Thu Sep 27 11:33:07 2012 +0200 +++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/embed_player.html Thu Sep 27 12:12:57 2012 +0200 @@ -2,7 +2,8 @@ {% load i18n %} {% load thumbnail %}
-
+
+
+ + {% endspaceless %} diff -r 06891536f619 -r 6957287fbde7 src/ldt/ldt/ldt_utils/views/project.py --- a/src/ldt/ldt/ldt_utils/views/project.py Thu Sep 27 11:33:07 2012 +0200 +++ b/src/ldt/ldt/ldt_utils/views/project.py Thu Sep 27 12:12:57 2012 +0200 @@ -124,7 +124,7 @@ else: message = _("please confirm deleting project %(title)s") % {'title':project.title} title = _("confirm deletion") - return render_to_response('ldt/ldt_utils/error_confirm.html', {'errors':errors, 'message':message, 'title': title}, context_instance=RequestContext(request)) + return render_to_response('ldt/ldt_utils/error_confirm_popup.html', {'errors':errors, 'message':message, 'title': title}, context_instance=RequestContext(request)) elif submit_action == "delete": if project.state != 2: project.delete()