From cef5bbfc086bbc4a38420438b8fa96680ae7bd18 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Thu, 12 May 2011 04:03:40 -0400 Subject: [PATCH] Simplied the generic_detail template --- apps/common/templates/generic_detail.html | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/apps/common/templates/generic_detail.html b/apps/common/templates/generic_detail.html index 1c5ce5b020..c5cc9789e8 100644 --- a/apps/common/templates/generic_detail.html +++ b/apps/common/templates/generic_detail.html @@ -59,17 +59,12 @@
{% for subtemplate in subtemplates_list %}
- {% if subtemplate.form %} + {% with "true" as read_only %} {% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %} - {% with "true" as read_only %} -
- {{ rendered_subtemplate }} -
- {% endwith %} - {% else %} - {% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %} - {{ rendered_subtemplate }} - {% endif %} +
+ {{ rendered_subtemplate }} +
+ {% endwith %}
{% if subtemplate.grid_clear or not subtemplate.grid %}