summaryrefslogtreecommitdiff
path: root/archaeological_operations
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
commitcdfdea70ba35aa9b1d02a93896eadcdb733fdabd (patch)
tree47151e6a5911388b62017976aa30d67d9433c256 /archaeological_operations
parent8ac6e5526f4a4aa6096ad2ecfd312793a1779ba1 (diff)
downloadIshtar-cdfdea70ba35aa9b1d02a93896eadcdb733fdabd.tar.bz2
Ishtar-cdfdea70ba35aa9b1d02a93896eadcdb733fdabd.zip
UI - operation sheet: fix tables
Diffstat (limited to 'archaeological_operations')
-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>