From a880b14173cbebfe409f301332371056d219f024 Mon Sep 17 00:00:00 2001 From: Sanj Date: Fri, 7 Sep 2012 16:08:49 +0530 Subject: [PATCH] collapsible inlines --- itf/templates/test/person_form.html | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/itf/templates/test/person_form.html b/itf/templates/test/person_form.html index 1139532..23d26c8 100644 --- a/itf/templates/test/person_form.html +++ b/itf/templates/test/person_form.html @@ -21,6 +21,10 @@ .delete-row { display:none !important; } + + .inlineHidden { + display:none; + } @@ -177,13 +181,17 @@ $(function(){ {% crispy form form.helper %} {% for inline in inlines %} +

{{inline.title }}

- {% if inline.help_text %} -
{{ inline.help_text }}
- {% endif %} -
- {% crispy inline inline.form.helper %} +
+ {% if inline.help_text %} +
{{ inline.help_text }}
+ {% endif %} +
+ {% crispy inline inline.form.helper %} +
+
{% endfor %}
@@ -193,6 +201,12 @@ $(function(){