summaryrefslogtreecommitdiff
path: root/archaeological_operations/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-30 11:53:20 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-11-30 11:53:20 +0100
commit1ec9e5bae266bb0faf7c0824fd1f3d7e1ca109cd (patch)
tree47151e6a5911388b62017976aa30d67d9433c256 /archaeological_operations/templates
parentcc98c28e68f437fb1f2a9bcb7149017c2e7ef157 (diff)
downloadIshtar-1ec9e5bae266bb0faf7c0824fd1f3d7e1ca109cd.tar.bz2
Ishtar-1ec9e5bae266bb0faf7c0824fd1f3d7e1ca109cd.zip
UI - operation sheet: fix tables
Diffstat (limited to 'archaeological_operations/templates')
-rw-r--r--archaeological_operations/templates/ishtar/sheet_operation.html84
1 files changed, 48 insertions, 36 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 @@
</div>
<div class='row'>
{% if item.nb_context_records_by_type %}
-<table class='clean-table small'>
- <tr><th>{% trans "Type" %}</th><th>{% trans "Number" %}</th></tr>
-{% for label, nb in item.nb_context_records_by_type %}
- <tr><td>{{label}}</td><td>{{nb}}</td></tr>
-{% endfor %}
-</table><
+ <div class="col-12 col-md-6 col-lg-4">
+ <table>
+ <tr><th>{% trans "Type" %}</th><th>{% trans "Number" %}</th></tr>
+ {% for label, nb in item.nb_context_records_by_type %}
+ <tr><td>{{label}}</td><td>{{nb}}</td></tr>
+ {% endfor %}
+ </table>
+ </div>
{% endif %}
{% if item.nb_context_records_by_periods %}
-<table class='clean-table small'>
- <tr><th>{% trans "Period" %}</th><th>{% trans "Number" %}</th></tr>
-{% for label, nb in item.nb_context_records_by_periods %}
- <tr><td>{{label}}</td><td>{{nb}}</td></tr>
-{% endfor %}
-</table>
+ <div class="col-12 col-md-6 col-lg-4">
+ <table>
+ <tr><th>{% trans "Period" %}</th><th>{% trans "Number" %}</th></tr>
+ {% for label, nb in item.nb_context_records_by_periods %}
+ <tr><td>{{label}}</td><td>{{nb}}</td></tr>
+ {% endfor %}
+ </table>
+ </div>
{% endif %}
</div>
@@ -251,28 +255,34 @@
</div>
<div class='row'>
{% if item.nb_finds_by_material_type %}
-<table class='clean-table small'>
- <tr><th>{% trans "Material type" %}</th><th>{% trans "Number" %}</th></tr>
-{% for label, nb in item.nb_finds_by_material_type %}
- <tr><td>{{label}}</td><td>{{nb}}</td></tr>
-{% endfor %}
-</table>
+ <div class="col-12 col-md-6 col-lg-4">
+ <table>
+ <tr><th>{% trans "Material type" %}</th><th>{% trans "Number" %}</th></tr>
+ {% for label, nb in item.nb_finds_by_material_type %}
+ <tr><td>{{label}}</td><td>{{nb}}</td></tr>
+ {% endfor %}
+ </table>
+ </div>
{% endif %}
{% if item.nb_finds_by_types %}
-<table class='clean-table small'>
- <tr><th>{% trans "Object type" %}</th><th>{% trans "Number" %}</th></tr>
-{% for label, nb in item.nb_finds_by_types %}
- <tr><td>{{label}}</td><td>{{nb}}</td></tr>
-{% endfor %}
-</table>
+ <div class="col-12 col-md-6 col-lg-4">
+ <table>
+ <tr><th>{% trans "Object type" %}</th><th>{% trans "Number" %}</th></tr>
+ {% for label, nb in item.nb_finds_by_types %}
+ <tr><td>{{label}}</td><td>{{nb}}</td></tr>
+ {% endfor %}
+ </table>
+ </div>
{% endif %}
{% if item.nb_finds_by_periods %}
-<table class='clean-table small'>
- <tr><th>{% trans "Period" %}</th><th>{% trans "Number" %}</th></tr>
-{% for label, nb in item.nb_finds_by_periods %}
- <tr><td>{{label}}</td><td>{{nb}}</td></tr>
-{% endfor %}
-</table>
+ <div class="col-12 col-md-6 col-lg-4">
+ <table>
+ <tr><th>{% trans "Period" %}</th><th>{% trans "Number" %}</th></tr>
+ {% for label, nb in item.nb_finds_by_periods %}
+ <tr><td>{{label}}</td><td>{{nb}}</td></tr>
+ {% endfor %}
+ </table>
+ </div>
{% endif %}
</div>
@@ -282,12 +292,14 @@
</div>
<div class='row'>
{% if item.nb_documents_by_types %}
-<table class='clean-table small'>
- <tr><th>{% trans "Type" %}</th><th>{% trans "Number" %}</th></tr>
-{% for label, nb in item.nb_documents_by_types %}
- <tr><td>{{label}}</td><td>{{nb}}</td></tr>
-{% endfor %}
-</table>
+ <div class="col-12 col-md-6 col-lg-4">
+ <table class="table">
+ <tr><th>{% trans "Type" %}</th><th>{% trans "Number" %}</th></tr>
+ {% for label, nb in item.nb_documents_by_types %}
+ <tr><td>{{label}}</td><td>{{nb}}</td></tr>
+ {% endfor %}
+ </table>
+ </div>
{% endif %}
</div>