From bd7639f6ee2da2a3417b64e70fdbf1decbf831ed Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 25 Aug 2016 22:36:05 +0200 Subject: UI: better layer layout for simple tables. Rewrite of all dashboard (refs #1616) --- .../ishtar/blocks/window_tables/documents.html | 8 ++++--- .../blocks/window_tables/static_documents.html | 7 ++++-- .../ishtar/dashboards/dashboard_main_detail.html | 26 +++++++++++++--------- 3 files changed, 26 insertions(+), 15 deletions(-) (limited to 'ishtar_common/templates/ishtar') diff --git a/ishtar_common/templates/ishtar/blocks/window_tables/documents.html b/ishtar_common/templates/ishtar/blocks/window_tables/documents.html index f1592cc42..8c584425a 100644 --- a/ishtar_common/templates/ishtar/blocks/window_tables/documents.html +++ b/ishtar_common/templates/ishtar/blocks/window_tables/documents.html @@ -1,6 +1,8 @@ {% load i18n %} - - +

{{h4}}

+
+
+
{{caption}}
@@ -18,4 +20,4 @@ {% endfor %}
{% trans "Title" %} {% trans "Type" %}
- + diff --git a/ishtar_common/templates/ishtar/blocks/window_tables/static_documents.html b/ishtar_common/templates/ishtar/blocks/window_tables/static_documents.html index d6686b553..e378bdf49 100644 --- a/ishtar_common/templates/ishtar/blocks/window_tables/static_documents.html +++ b/ishtar_common/templates/ishtar/blocks/window_tables/static_documents.html @@ -1,6 +1,8 @@ {% load i18n %} - - +

{{caption}}

+
+
+
{% for col in col_names %} {% endfor %} @@ -9,3 +11,4 @@ {%endfor%} {% endfor %}
{{caption}}
{% trans col %}{{value}}
+ diff --git a/ishtar_common/templates/ishtar/dashboards/dashboard_main_detail.html b/ishtar_common/templates/ishtar/dashboards/dashboard_main_detail.html index 7247a5cda..fd92578a2 100644 --- a/ishtar_common/templates/ishtar/dashboards/dashboard_main_detail.html +++ b/ishtar_common/templates/ishtar/dashboards/dashboard_main_detail.html @@ -1,4 +1,4 @@ -{% load i18n date_formating %} +{% load i18n date_formating humanize %} {% load url from future %}
@@ -13,7 +13,7 @@
{% endif %} -

{% trans "Total:" %} {{dashboard.total_number}}

+

{% trans "Total:" %} {{dashboard.total_number|intcomma}}

{% trans 'Draw rectangle on the graph to zoom. Double-click to reinitialize.' %}

@@ -25,8 +25,9 @@
-
- +
+
+
{% for idx, lbl, values in dashboard.values %} @@ -35,6 +36,7 @@ {% endfor%}
{{lbl}}
+ {% if dashboard.periods %}

{% trans "By years" %}

{% endif %} +

{% trans "Created last" %}

-
- +
{% for item in dashboard.lasts %} - + {% endfor %}
{{lbl}}{% trans "Created" %}
{{item}} {{item.history_date}}{% if item.get_show_url %}{%trans "Show"%}{%endif%}{% if item.get_show_url %} + + {%endif%}
+

{% trans "Recent changes" %}

-
- +
{% for item in dashboard.recents %} - + {% endfor %}
{{lbl}}{% trans "Modified" %}
{{item}} {{item.history_date}}{% if item.get_show_url %}{%trans "Show"%}{%endif%}{% if item.get_show_url %} + + {%endif%}
-- cgit v1.2.3