|
@@ -5,6 +5,9 @@
|
|
|
{% block content %}
|
|
{% block content %}
|
|
|
<div class="pull-right noprint">
|
|
<div class="pull-right noprint">
|
|
|
{% block buttons %}{% endblock %}
|
|
{% block buttons %}{% endblock %}
|
|
|
|
|
+ {% if table_config_form %}
|
|
|
|
|
+ <button type="button" class="btn btn-default" data-toggle="modal" data-target="#tableconfig" title="Configure table"><i class="fa fa-cog"></i> Configure</button>
|
|
|
|
|
+ {% endif %}
|
|
|
{% if permissions.add and 'add' in action_buttons %}
|
|
{% if permissions.add and 'add' in action_buttons %}
|
|
|
{% add_button content_type.model_class|url_name:"add" %}
|
|
{% add_button content_type.model_class|url_name:"add" %}
|
|
|
{% endif %}
|
|
{% endif %}
|
|
@@ -18,9 +21,6 @@
|
|
|
<h1>{% block title %}{{ content_type.model_class|meta:"verbose_name_plural"|bettertitle }}{% endblock %}</h1>
|
|
<h1>{% block title %}{{ content_type.model_class|meta:"verbose_name_plural"|bettertitle }}{% endblock %}</h1>
|
|
|
<div class="row">
|
|
<div class="row">
|
|
|
<div class="col-md-{% if filter_form %}9{% else %}12{% endif %}">
|
|
<div class="col-md-{% if filter_form %}9{% else %}12{% endif %}">
|
|
|
- {% if table_config_form %}
|
|
|
|
|
- {% include 'inc/table_config_form.html' %}
|
|
|
|
|
- {% endif %}
|
|
|
|
|
{% with bulk_edit_url=content_type.model_class|url_name:"bulk_edit" bulk_delete_url=content_type.model_class|url_name:"bulk_delete" %}
|
|
{% with bulk_edit_url=content_type.model_class|url_name:"bulk_edit" bulk_delete_url=content_type.model_class|url_name:"bulk_delete" %}
|
|
|
{% if permissions.change or permissions.delete %}
|
|
{% if permissions.change or permissions.delete %}
|
|
|
<form method="post" class="form form-horizontal">
|
|
<form method="post" class="form form-horizontal">
|
|
@@ -71,6 +71,9 @@
|
|
|
{% endwith %}
|
|
{% endwith %}
|
|
|
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
|
|
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
|
|
|
<div class="clearfix"></div>
|
|
<div class="clearfix"></div>
|
|
|
|
|
+ {% if table_config_form %}
|
|
|
|
|
+ {% include 'inc/table_config_form.html' %}
|
|
|
|
|
+ {% endif %}
|
|
|
</div>
|
|
</div>
|
|
|
{% if filter_form %}
|
|
{% if filter_form %}
|
|
|
<div class="col-md-3 noprint">
|
|
<div class="col-md-3 noprint">
|