diff options
-rw-r--r-- | showcase/templates/showcase/item-find.html | 64 |
1 files changed, 43 insertions, 21 deletions
diff --git a/showcase/templates/showcase/item-find.html b/showcase/templates/showcase/item-find.html index 5d34092..90b0c66 100644 --- a/showcase/templates/showcase/item-find.html +++ b/showcase/templates/showcase/item-find.html @@ -39,27 +39,49 @@ </div> <hr> -<div class="clearfix show-case-detail"> - {% if data.images.0.thumbnail %} - <div class="float-left pr-2"> - <img src="{{data.images.0.thumbnail}}" class="img-fluid img-thumbnail"> - </div> - {% endif %} - <h4 class="pt-2 text-right">{{data.denomination}}</h4> - {% with data.base_finds.0.context_record.site as site %} - <h5>{% trans "Archaeological site" %}</h5> - <p>{{site.name}} {% if site.discovery_date %}({{site.discovery_date}}){% endif %} - <br><small>{{site.towns.0}}</small></p> - {% if site.shipwreck_name %}<p><em>Naufrage du : </em>{{site.shipwreck_name}} - {% if site.sinking_date %} <em>en</em> {{site.sinking_date}}{% endif %}</p> - {% endif %} - {% if site.periods %} - <p><em>{% trans "Period(s):" %}</em> {{site.periods|join:" ; "}}</p> - {% endif %} - {% if site.remains %} - <p><em>{% trans "Remain(s):" %}</em> {{site.remains|join:" ; "}}</p> - {% endif %} +<div class="card clearfix show-case-detail"> + <div class="card-body"> + {% if data.images.0.thumbnail %} + <div class="float-left pr-2" style="max-width:50%"> + <img src="{{data.images.0.thumbnail}}" class="img-fluid img-thumbnail"> + </div> + {% endif %} + <h4 class="pt-2 text-right">{{data.denomination}}</h4> + + <div> + {% if data.description %} + <p>{{data.description}}</p> + {% endif %} + {% if data.object_types %} + <p><em>{% trans "Object type:" %}</em> {{data.object_types|join:" ; "}}</p> + {% endif %} + {% if data.materials %} + <p><em>{% trans "Materials:" %}</em> {{data.materials|join:" ; "}}</p> + {% endif %} + {% if data.datings %}<p><em>{% trans "Period(s):" %}</em> + {% for dating in data.datings %}{% if forloop.counter0 %} ; {% endif %}{{dating.period}}{% endfor %} + </p>{% endif %} + </div> - {% endwith %} + <div class="mt-2"> + {% with data.base_finds.0.context_record.site as site %} + {% with data.base_finds.0.context_record.operation as operation %} + <h5>{% trans "Archaeological site / Operation" %}</h5> + <p>{{site.name}} {% if site.discovery_date %}({{site.discovery_date}}){% endif %} + <br><small>{{site.towns.0}}</small></p> + {% if operation.year %}<p><em>{% trans "Year of the survey:" %}</em> {{operation.year}}</p>{% endif %} + {% if site.shipwreck_name %}<p><em>{% trans "Shipwreck" %} : </em>{{site.shipwreck_name}} + {% if site.sinking_date %} <em>{% trans "sinking" %}</em> {{site.sinking_date}}{% endif %}</p> + {% endif %} + {% if site.periods %} + <p><em>{% trans "Period(s):" %}</em> {{site.periods|join:" ; "}}</p> + {% endif %} + {% if site.remains %} + <p><em>{% trans "Remain(s):" %}</em> {{site.remains|join:" ; "}}</p> + {% endif %} + {% endwith %} + {% endwith %} + </div> + </div> </div> {% endblock %} |