From 3eff8cc19f8f8ef237788c752cb7c937195bb7e6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 24 Aug 2016 13:39:32 +0200 Subject: UI: adpat all sheet to the new layout. Administrativ act: can modify from sheet. Organization: can modify from sheet. --- ishtar_common/static/media/style.css | 12 +++- ishtar_common/templates/blocks/JQueryJqGrid.html | 10 +-- .../templates/ishtar/blocks/window_nav.html | 81 +++++++++++----------- .../blocks/window_tables/dynamic_documents.html | 9 ++- .../templates/ishtar/sheet_organization.html | 10 +-- ishtar_common/templates/ishtar/sheet_person.html | 7 +- ishtar_common/templates/ishtar/sheet_source.html | 3 +- ishtar_common/templates/ishtar/sheet_toolbar.html | 2 - ishtar_common/templatetags/window_header.py | 24 ++++++- ishtar_common/urls.py | 2 + ishtar_common/views.py | 10 +++ 11 files changed, 102 insertions(+), 68 deletions(-) delete mode 100644 ishtar_common/templates/ishtar/sheet_toolbar.html (limited to 'ishtar_common') diff --git a/ishtar_common/static/media/style.css b/ishtar_common/static/media/style.css index 75277eb1d..69f86784b 100644 --- a/ishtar_common/static/media/style.css +++ b/ishtar_common/static/media/style.css @@ -743,6 +743,11 @@ table.confirm tr.spacer td:last-child{ background:url('images/indicator.gif') no-repeat right center; } +.gridfooter{ + text-align: center; + font-style: italic; +} + .jqgrid{ cursor:pointer; } @@ -986,12 +991,12 @@ table td.item-list span{ } #window .tool-right{ - float: left; + float: right; padding: 0 2em; } #window .tool-left{ - float: right; + float: left; padding: 0 2em; } @@ -1021,6 +1026,9 @@ table td.item-list span{ font-size:16px; margin-top:0; padding: 0.2em; +} + +#window .head, #window h1{ -webkit-border-top-left-radius: 8px; -webkit-border-top-right-radius: 8px; -moz-border-radius-topleft: 8px; diff --git a/ishtar_common/templates/blocks/JQueryJqGrid.html b/ishtar_common/templates/blocks/JQueryJqGrid.html index c6a15243a..44f4b0ba8 100644 --- a/ishtar_common/templates/blocks/JQueryJqGrid.html +++ b/ishtar_common/templates/blocks/JQueryJqGrid.html @@ -12,13 +12,13 @@
+ {% if source_full %} -{% trans "Export as CSV" %} ({{encoding}}) -{% trans "simple" %} - -{% trans "full" %} +{% trans "CSV" %} +{% trans "CSV full" %} {% else %} -{% trans "Export as CSV" %} ({{encoding}}) -{% endif %} +{% trans "CSV" %} +{% endif %} {{encoding}}
{% if multiple %} diff --git a/ishtar_common/templates/ishtar/blocks/window_nav.html b/ishtar_common/templates/ishtar/blocks/window_nav.html index 9a17419a8..c225a5822 100644 --- a/ishtar_common/templates/ishtar/blocks/window_nav.html +++ b/ishtar_common/templates/ishtar/blocks/window_nav.html @@ -1,46 +1,47 @@ {% load url from future %} {% load i18n %} {% if previous or next %} -
-{% if previous %} - - - - - -
{{previous}} -
-{% else %} - -{% endif %} -{% if next %} - - - - - -
{% trans "Restore" %} -
- - - - - -
{{next}} -
-{% else %} - - +
+ {% if previous %} + + + + + +
{{previous}} +
+ {% else %} + + {% endif %} + {% if next %} + + + + + +
{% trans "Restore" %} +
+ + + + + +
{{next}} +
+ {% else %} + + + {% endif %} +
{% endif %} -
-{% endif %} -
- - - - - - -ODT PDF +
+ {% block extra_actions %}{% endblock %} + {% if modify_url %} + + + + + {% endif %} + ODT PDF

diff --git a/ishtar_common/templates/ishtar/blocks/window_tables/dynamic_documents.html b/ishtar_common/templates/ishtar/blocks/window_tables/dynamic_documents.html index 8850bd34a..4a81a64fb 100644 --- a/ishtar_common/templates/ishtar/blocks/window_tables/dynamic_documents.html +++ b/ishtar_common/templates/ishtar/blocks/window_tables/dynamic_documents.html @@ -6,12 +6,11 @@
{% if source_full %} -{% trans "Export as CSV" %} ({{encoding}}) -{% trans "simple" %} - -{% trans "full" %} +{% trans "CSV" %} +{% trans "CSV full" %} {% else %} -{% trans "Export as CSV" %} ({{encoding}}) -{% endif %} +CSV +{% endif %} {{encoding}}