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 %}