From cdfdea70ba35aa9b1d02a93896eadcdb733fdabd Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 30 Nov 2017 11:53:20 +0100 Subject: UI - operation sheet: fix tables --- .../templates/ishtar/sheet_operation.html | 84 ++++++++++++---------- ishtar_common/static/media/styles.css | 5 +- 2 files changed, 52 insertions(+), 37 deletions(-) diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index c115e0966..0052dde7b 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -228,20 +228,24 @@
{% if item.nb_context_records_by_type %} - - -{% for label, nb in item.nb_context_records_by_type %} - -{% endfor %} -
{% trans "Type" %}{% trans "Number" %}
{{label}}{{nb}}
< +
+ + + {% for label, nb in item.nb_context_records_by_type %} + + {% endfor %} +
{% trans "Type" %}{% trans "Number" %}
{{label}}{{nb}}
+
{% endif %} {% if item.nb_context_records_by_periods %} - - -{% for label, nb in item.nb_context_records_by_periods %} - -{% endfor %} -
{% trans "Period" %}{% trans "Number" %}
{{label}}{{nb}}
+
+ + + {% for label, nb in item.nb_context_records_by_periods %} + + {% endfor %} +
{% trans "Period" %}{% trans "Number" %}
{{label}}{{nb}}
+
{% endif %}
@@ -251,28 +255,34 @@
{% if item.nb_finds_by_material_type %} - - -{% for label, nb in item.nb_finds_by_material_type %} - -{% endfor %} -
{% trans "Material type" %}{% trans "Number" %}
{{label}}{{nb}}
+
+ + + {% for label, nb in item.nb_finds_by_material_type %} + + {% endfor %} +
{% trans "Material type" %}{% trans "Number" %}
{{label}}{{nb}}
+
{% endif %} {% if item.nb_finds_by_types %} - - -{% for label, nb in item.nb_finds_by_types %} - -{% endfor %} -
{% trans "Object type" %}{% trans "Number" %}
{{label}}{{nb}}
+
+ + + {% for label, nb in item.nb_finds_by_types %} + + {% endfor %} +
{% trans "Object type" %}{% trans "Number" %}
{{label}}{{nb}}
+
{% endif %} {% if item.nb_finds_by_periods %} - - -{% for label, nb in item.nb_finds_by_periods %} - -{% endfor %} -
{% trans "Period" %}{% trans "Number" %}
{{label}}{{nb}}
+
+ + + {% for label, nb in item.nb_finds_by_periods %} + + {% endfor %} +
{% trans "Period" %}{% trans "Number" %}
{{label}}{{nb}}
+
{% endif %}
@@ -282,12 +292,14 @@
{% if item.nb_documents_by_types %} - - -{% for label, nb in item.nb_documents_by_types %} - -{% endfor %} -
{% trans "Type" %}{% trans "Number" %}
{{label}}{{nb}}
+
+ + + {% for label, nb in item.nb_documents_by_types %} + + {% endfor %} +
{% trans "Type" %}{% trans "Number" %}
{{label}}{{nb}}
+
{% endif %}
diff --git a/ishtar_common/static/media/styles.css b/ishtar_common/static/media/styles.css index 65882f484..327628eeb 100644 --- a/ishtar_common/static/media/styles.css +++ b/ishtar_common/static/media/styles.css @@ -2,7 +2,6 @@ display: none; } - .search .form-group { margin-bottom: 0.2rem; font-size: 0.9em; @@ -69,6 +68,10 @@ div#foot{ text-align: center; } +.sheet{ + font-size: 0.9em; +} + .sheet .card-body{ padding: 0.5em; } -- cgit v1.2.3