From c59a2a69fb38b92b6c45bcf7431d2b1a3c5dce3c Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sat, 23 Oct 2010 19:46:20 -0400 Subject: added grappelli, filebrowser, chunks and tagging to lcal repo --- .../templates/admin/edit_inline/stacked.html | 147 ++++++++++++++ .../templates/admin/edit_inline/tabular.html | 211 +++++++++++++++++++++ 2 files changed, 358 insertions(+) create mode 100644 lib/grappelli/templates/admin/edit_inline/stacked.html create mode 100644 lib/grappelli/templates/admin/edit_inline/tabular.html (limited to 'lib/grappelli/templates/admin/edit_inline') diff --git a/lib/grappelli/templates/admin/edit_inline/stacked.html b/lib/grappelli/templates/admin/edit_inline/stacked.html new file mode 100644 index 0000000..7112ba2 --- /dev/null +++ b/lib/grappelli/templates/admin/edit_inline/stacked.html @@ -0,0 +1,147 @@ +{% load i18n adminmedia %} + + +
+

{{ inline_admin_formset.opts.verbose_name_plural|title }}

+ + {{ inline_admin_formset.formset.management_form }} + {{ inline_admin_formset.formset.non_form_errors }} + +
+ {% for inline_admin_form in inline_admin_formset %} + +
+

{{ inline_admin_formset.opts.verbose_name|title }} #{{ forloop.counter }}  {% if inline_admin_form.original %}{{ inline_admin_form.original }}{% endif %}

+
    + {% if inline_admin_form.show_url %}{% endif %} + {% if inline_admin_formset.opts.sortable_field_name %} +
  • + {% endif %} + {% if inline_admin_formset.formset.can_delete %} + {% if inline_admin_form.original %} +
  • {{ inline_admin_form.deletion_field.field }}
  • + {% else %} +
  • {{ inline_admin_form.deletion_field.field }}
  • + {% endif %} + {% endif %} +
+ {% if inline_admin_form.form.non_field_errors %} +
    +
  • {{ inline_admin_form.form.non_field_errors }}
  • +
+ {% endif %} + {% for fieldset in inline_admin_form %} + {% include "admin/includes/fieldset_inline.html" %} + {% endfor %} + {{ inline_admin_form.pk_field.field }} + {{ inline_admin_form.fk_field.field }} +
+ {% endfor %} + {{ inline_admin_formset.extra_forms }} +
+ +
+ + diff --git a/lib/grappelli/templates/admin/edit_inline/tabular.html b/lib/grappelli/templates/admin/edit_inline/tabular.html new file mode 100644 index 0000000..4d4ef94 --- /dev/null +++ b/lib/grappelli/templates/admin/edit_inline/tabular.html @@ -0,0 +1,211 @@ +{% load i18n adminmedia %} + + +
+

{{ inline_admin_formset.opts.verbose_name_plural|capfirst }}

+ + {{ inline_admin_formset.formset.management_form }} + {{ inline_admin_formset.formset.non_form_errors }} + +
+
+
+ {% for field in inline_admin_formset.fields %} + {% if not field.widget.is_hidden %} +
{{ field.label|capfirst }}
+ {% endif %} + {% endfor %} + {% if inline_admin_formset.formset.can_delete %}
 
{% endif %} +
+
+ {% for inline_admin_form in inline_admin_formset %} + +
+ {% if inline_admin_form.form.non_field_errors %} +
  • {{ inline_admin_form.form.non_field_errors }}
+ {% endif %} +

{{ inline_admin_formset.opts.verbose_name|title }} #{{ forloop.counter }}  {% if inline_admin_form.original %} {{ inline_admin_form.original }}{% endif %}

+ {% spaceless %} + {% for fieldset in inline_admin_form %} + {% for line in fieldset %} + {% for field in line %} + {% if field.is_hidden %} {{ field.field }} {% endif %} + {% endfor %} + {% endfor %} + {% endfor %} + {% endspaceless %} +
+ {% for fieldset in inline_admin_form %} + {% for line in fieldset %} + {% for field in line %} +
+ {% if field.is_readonly %} +

{{ field.contents }}

+ {% else %} + {{ field.field }} + {{ field.field.errors.as_ul }} + {% endif %} +
+ {% endfor %} + {% endfor %} + {% endfor %} +
+ {% spaceless %} +
    + {% if inline_admin_form.show_url %}{% endif %} + {% if inline_admin_formset.opts.sortable_field_name %} +
  • + {% endif %} + {% if inline_admin_formset.formset.can_delete %}
  • {{ inline_admin_form.deletion_field.field }} {% endif %} +
+ {% endspaceless %} +
+ {{ inline_admin_form.fk_field.field }} + {% if inline_admin_form.has_auto_field %}{{ inline_admin_form.pk_field.field }}{% endif %} +
+
+ {% endfor %} +
+ +
+ + + -- cgit v1.2.3-70-g09d2