summaryrefslogtreecommitdiff
path: root/archaeological_warehouse/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2019-02-12 15:46:33 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2019-02-12 15:46:33 +0100
commit7bfaf62bfb5aed3601cb5534ee9e076cd6691df8 (patch)
tree7a14e50be1d8af2f5a8bcbfb99b77cfe917eed1f /archaeological_warehouse/templates
parent0f9ec8cf0772e22c83e4d61c04ba6db65451acc7 (diff)
downloadIshtar-7bfaf62bfb5aed3601cb5534ee9e076cd6691df8.tar.bz2
Ishtar-7bfaf62bfb5aed3601cb5534ee9e076cd6691df8.zip
Add documents to containers
Diffstat (limited to 'archaeological_warehouse/templates')
-rw-r--r--archaeological_warehouse/templates/ishtar/sheet_container.html52
1 files changed, 28 insertions, 24 deletions
diff --git a/archaeological_warehouse/templates/ishtar/sheet_container.html b/archaeological_warehouse/templates/ishtar/sheet_container.html
index 262d7145b..27cbf9bee 100644
--- a/archaeological_warehouse/templates/ishtar/sheet_container.html
+++ b/archaeological_warehouse/templates/ishtar/sheet_container.html
@@ -8,34 +8,38 @@
{% endblock %}
{% block content %}
-<div class="row">
- <div class="offset-lg-4 col-lg-4 offset-md-3 col-md-6 offset-sm-1 col-sm-10 col-12">
- <div class="card">
- {% include "ishtar/blocks/window_image.html" %}
- <div class="card-body">
- <p class="card-text">
- <p class="window-refs">{{ item.reference|default:"" }}</p>
- <p class="window-refs">{{ item.container_type|default:"" }}</p>
- <p class="window-refs">{{ item.responsible.name }} - {{ item.index }}</p>
- <p class="window-refs">{{ item.old_reference|default:"" }}</p>
- {% include "ishtar/blocks/sheet_external_id.html" %}
- </p>
- </div>
- </div>
+<div class="clearfix">
+ {% if item.main_image %}
+ <div class="card float-left col-12 col-md-4">
+ {% include "ishtar/blocks/window_image.html" %}
+ </div>
+ {% endif %}
+ {% if item.main_image %}
+ <div class="float-left col-12 col-md-6 col-lg-8 text-center">{# </div>> #}
+ {% else %}
+ <div class="float-left col-6 col-md-3 text-center">
+ {% endif %}
+ <p class="window-refs">{{ item.reference|default:"" }}</p>
+ <p class="window-refs">{{ item.container_type|default:"" }}</p>
+ <p class="window-refs">{{ item.responsible.name }} - {{ item.index }}</p>
+ <p class="window-refs">{{ item.old_reference|default:"" }}</p>
+ {% include "ishtar/blocks/sheet_external_id.html" %}
+ </div>
+ {% if item.main_image %}
+ <div class="row float-left col-12 col-md-6 col-lg-8 text-center">{# </div>> #}
+ {% else %}
+ <div class="float-left row col-6 col-md-8">
+ {% endif %}
+ {% field_flex_detail "Responsible warehouse" item.responsible %}
+ {% field_flex_detail "Location (warehouse)" item.location %}
+ {% include "ishtar/blocks/sheet_creation_section.html" %}
+ {% field_flex "Location" item.precise_location %}
+ {% field_flex_full "Comment" item.comment "<pre>" "</pre>" %}
+ {% include "ishtar/blocks/sheet_json.html" %}
</div>
</div>
-<div class="row">
- {% field_flex_detail "Responsible warehouse" item.responsible %}
- {% field_flex_detail "Location (warehouse)" item.location %}
- {% include "ishtar/blocks/sheet_creation_section.html" %}
- {% field_flex "Location" item.precise_location %}
- {% field_flex_full "Comment" item.comment "<pre>" "</pre>" %}
-</div>
-
-{% include "ishtar/blocks/sheet_json.html" %}
-
{% if item.finds.count %}
<h4>{% trans "Content" %}</h4>
{% dynamic_table_document finds 'finds' 'container' item.pk 'TABLE_COLS' output 'large' %}