Simplied the generic_detail template
This commit is contained in:
@@ -59,17 +59,12 @@
|
||||
<div class="container_12">
|
||||
{% for subtemplate in subtemplates_list %}
|
||||
<div class="grid_{{ subtemplate.grid|default:12 }}">
|
||||
{% if subtemplate.form %}
|
||||
{% with "true" as read_only %}
|
||||
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
|
||||
{% with "true" as read_only %}
|
||||
<div class="generic_subform">
|
||||
{{ rendered_subtemplate }}
|
||||
</div>
|
||||
{% endwith %}
|
||||
{% else %}
|
||||
{% render_subtemplate subtemplate.name subtemplate.context as rendered_subtemplate %}
|
||||
{{ rendered_subtemplate }}
|
||||
{% endif %}
|
||||
<div class="generic_subform">
|
||||
{{ rendered_subtemplate }}
|
||||
</div>
|
||||
{% endwith %}
|
||||
</div>
|
||||
{% if subtemplate.grid_clear or not subtemplate.grid %}
|
||||
<div class="clear"></div>
|
||||
|
||||
Reference in New Issue
Block a user