Added css grid support to generic_forms template
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %} :: {% with "true" as striptags %}{% include "calculate_form_title.html" %}{% endwith %}{% endblock %}
|
||||
|
||||
{% block stylesheets %}
|
||||
<link rel="stylesheet" href="{{ MEDIA_URL }}packages/nathansmith-960-Grid-System-30906f2/code/css/960.css" type="text/css" media="screen" />
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
|
||||
<div class="container_12">
|
||||
{% if form %}
|
||||
{% include "generic_form_subtemplate.html" %}
|
||||
{% endif %}
|
||||
@@ -14,9 +16,19 @@
|
||||
{% with form.object as object %}
|
||||
{% with form.object_name as object_name %}
|
||||
{% with form.form_action as form_action %}
|
||||
{% if form.grid %}
|
||||
<div class="grid_{{ form.grid }}">
|
||||
{% endif %}
|
||||
{% with form.form as form %}
|
||||
{% include "generic_form_subtemplate.html" %}
|
||||
{% endwith %}
|
||||
{% if form.grid %}
|
||||
</div>
|
||||
{% if form.grid_clear %}
|
||||
<div class="clear"></div>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
@@ -24,6 +36,7 @@
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
{% for subtemplate in subtemplates_dict %}
|
||||
{% with subtemplate.title as title %}
|
||||
|
||||
Reference in New Issue
Block a user