|
@@ -17,24 +17,35 @@
|
|
|
{% endblock %}
|
|
|
|
|
|
{% block pMainContentHolder%}
|
|
|
+ {% set iTableCount = 0 %}
|
|
|
{% if aGroupingAreasData|length > 0 %}
|
|
|
{% for aAreaData in aGroupingAreasData %}
|
|
|
- <div class="panel panel-default">
|
|
|
- <div class="panel-heading">
|
|
|
- <h3 class="panel-title">{{ aAreaData.sTitle }}</h3>
|
|
|
+ {% if aAreaData.iItemsCount > 0 %}
|
|
|
+ {% set iTableCount = iTableCount + 1 %}
|
|
|
+ <div class="panel panel-default">
|
|
|
+ <div class="panel-heading">
|
|
|
+ <h3 class="panel-title">{{ aAreaData.sTitle }}</h3>
|
|
|
+ </div>
|
|
|
+ <div class="panel-body">
|
|
|
+ {# We decided not to show empty tables anymore #}
|
|
|
+ {#
|
|
|
+ {% if aAreaData.iItemsCount > 0 %}
|
|
|
+ #}
|
|
|
+ <table id="table-{{ aAreaData.sId }}" class="table table-striped table-bordered responsive" width="100%"></table>
|
|
|
+ {#
|
|
|
+ {% else %}
|
|
|
+ <div class="text-center">
|
|
|
+ {{ 'Brick:Portal:Manage:Table:NoData'|dict_s }}
|
|
|
+ </div>
|
|
|
+ {% endif %}
|
|
|
+ #}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="panel-body">
|
|
|
- {% if aAreaData.iItemsCount > 0 %}
|
|
|
- <table id="table-{{ aAreaData.sId }}" class="table table-striped table-bordered responsive" width="100%"></table>
|
|
|
- {% else %}
|
|
|
- <div class="text-center">
|
|
|
- {{ 'Brick:Portal:Manage:Table:NoData'|dict_s }}
|
|
|
- </div>
|
|
|
- {% endif %}
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ {% endif %}
|
|
|
{% endfor %}
|
|
|
- {% else %}
|
|
|
+ {% endif %}
|
|
|
+
|
|
|
+ {% if iTableCount == 0 %}
|
|
|
<div class="panel panel-default">
|
|
|
<div class="panel-body">
|
|
|
<h3 class="text-center">{{ 'Brick:Portal:Manage:Table:NoData'|dict_s }}</h3>
|