Шаблон для трех таблиц на странице
Сделал шаблон для трех таблиц на странице
This commit is contained in:
@@ -29,6 +29,9 @@
|
||||
table.paleblue tr.weekend {
|
||||
background-color: #FFE4E1
|
||||
}
|
||||
.inline {
|
||||
display: inline-block;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
10
templates/asuzr/table3.html
Normal file
10
templates/asuzr/table3.html
Normal 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 %}
|
||||
|
||||
@@ -56,5 +56,8 @@
|
||||
{% endnospaceless %}
|
||||
</table>
|
||||
{% endblock table %}
|
||||
{% if table.page %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% endspaceless %}
|
||||
|
||||
Reference in New Issue
Block a user