diff options
| 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 | 
| commit | cdfdea70ba35aa9b1d02a93896eadcdb733fdabd (patch) | |
| tree | 47151e6a5911388b62017976aa30d67d9433c256 | |
| parent | 8ac6e5526f4a4aa6096ad2ecfd312793a1779ba1 (diff) | |
| download | Ishtar-cdfdea70ba35aa9b1d02a93896eadcdb733fdabd.tar.bz2 Ishtar-cdfdea70ba35aa9b1d02a93896eadcdb733fdabd.zip | |
UI - operation sheet: fix tables
| -rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 84 | ||||
| -rw-r--r-- | 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 @@  </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> 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;  } | 
