diff -r 651f67b66c51 -r 7c994c98d1df web/ldt_utils/templates/admin/cms_change_form.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/ldt_utils/templates/admin/cms_change_form.html Tue Jun 08 15:31:42 2010 +0200 @@ -0,0 +1,250 @@ +{% extends "admin/page_change_form.html" %} +{% load i18n admin_modify adminmedia cms_tags cms_admin %} +{% block js_import %} +{% endblock %} +{% block extrahead %} +{{ block.super }} +{% if not add %} + +{% endif %} + + +{% if add %} + +{% endif %} + + +{% endblock %} + +{% block content_title %} + {% if moderation_delete_request %} +

{% trans "Approve page deletion" %}

+ + {% else %} + +

{{ title }} + {% if CMS_MODERATOR %} + {% if moderation_required %}{% blocktrans %}(requires approvement at {{ moderation_level }} level){% endblocktrans %} + {% else %}{% trans '(you can perform actions on this page directly)' %} + {% endif %} + {% endif %} +

+ {% endif %} + +{% endblock %} + +{% block content %}
+ +{% block object-tools %} +{% if change %}{% if not is_popup %} + +{% endif %}{% endif %} +{% endblock %} + + +
{% block form_top %}{% endblock %} +{{ adminForm.fields.parent }} + + + +{% if show_language_tabs %} +
+ {% for lang_code, lang_name in traduction_language %} + + {% endfor %} +
+{% endif %} + + +
+{% if show_language_tabs %} +

+{% endif %} +{% if is_popup %}{% endif %} +{% if save_on_top %}{% submit_row %}{% endif %} +{% if errors %} +

+ {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} +

+
    {% for error in adminform.form.non_field_errors %}
  • {{ error }}
  • {% endfor %}
+{% endif %} + +{% for fieldset in adminform %} + {% include "admin/cms/page/includes/fieldset.html" %} +{% endfor %} + + +{% for inline_admin_formset in inline_admin_formsets %} + {% include inline_admin_formset.opts.template %} +{% endfor %} + + +{% if not add %} + {% if CMS_PERMISSION and has_change_permissions_permission %} +
+ +
+ {% endif %} + + {% if CMS_MODERATOR and has_moderate_permission %} +
+ +
+ {% endif %} + + {% if moderation_delete_request %}{% endif %} + + {% if CMS_MODERATOR and moderation_required %} +
+

{% blocktrans %}This page must be moderated at level {{ moderation_level }}, post a message for moderator.{% endblocktrans %}

+
+
+
+ + + {% endif %} + +{% endif %} + +{% block after_related_objects %}{% endblock %} + +{% if add %} +
+ + +
+{% else %} + {% if not moderation_delete_request %}{% submit_row %}{% endif %} +{% endif %} + +{% if add %} + +{% endif %} + +{# JavaScript for prepopulated fields #} +{% prepopulated_fields_js %} + +
+
+{% endblock %}