Шаблон для трех таблиц на странице

Сделал шаблон для трех таблиц на странице
This commit is contained in:
2015-06-16 20:29:07 +05:00
parent a05ecadf01
commit bef243a2bf
4 changed files with 37 additions and 13 deletions

View File

@@ -29,6 +29,9 @@
table.paleblue tr.weekend {
background-color: #FFE4E1
}
.inline {
display: inline-block;
}
</style>
</head>
<body>

View File

@@ -0,0 +1,10 @@
{% extends "asuzr/base.html" %}
{% load inplace_edit %}
{% load render_table from django_tables2 %}
{% block page %}
<div class="inline"><div><h3>{{ table1.verbose_name }}</h3></div>{% render_table table1 %}</div>
<div class="inline"><div><h3>{{ table2.verbose_name }}</h3></div>{% render_table table2 %}</div>
<div><hr><div><h3>{{ table3.verbose_name }}</h3></div>{% render_table table3 %}</div>
{% endblock %}

View File

@@ -56,5 +56,8 @@
{% endnospaceless %}
</table>
{% endblock table %}
{% if table.page %}
</div>
{% endif %}
{% endspaceless %}