{% extends "ishtar/sheet.html" %} {% load i18n l10n ishtar_helpers window_field from_dict link_to_window window_tables window_ope_tables window_header humanize %} {% block head_title %}  {% trans "Exhibition" %} - {{ item.name|default:"" }} [{{item.year|unlocalize}}]{% endblock %} {% block toolbar %} {% window_nav item window_id 'show-exhibition' 'exhibition-modify' 'exhibition-show-historized' 'exhibition-revert' previous next 1 %} {% endblock %} {% block content %} {% with perm_documents=permission_view_own_document|or_:permission_view_document %} {% with perm_change_basket=permission_view_own_find|or_:permission_view_find %} {% with has_documents=item|safe_or:"documents.count|documents_list" %} {% with display_documents=perm_documents|and_:has_documents %} {% if output != "ODT" and output != "PDF"%} {% endif %}
{% with has_image=item.images.count %} {% if has_image %}
{% include "ishtar/blocks/window_image.html" %}
{% endif %}
{% field_flex _("Name") item.name %} {% field_flex _("Type") item.exhibition_type %} {% field_flex _("Year") item.year %} {% field_flex_detail _("Responsible") item.in_charge %} {% field_flex_full "Description" item.description "
" "
" %} {% field_flex_full "Comment" item.comment "
" "
" %} {% include "ishtar/blocks/sheet_json.html" %}
{% if has_image %}
{% endif %} {% endwith %} {% if item.associated_basket %}

{% trans "Associated basket" %}

{% field_flex_detail _("Associated basket") item.associated_basket %} {% if perm_change_basket %}

  {% trans "manage items of this basket" %}

{% endif %}
{% dynamic_table_document finds 'finds' 'basket_id' item.associated_basket.pk 'TABLE_COLS' output %} {% endif %} {% if display_documents %} {% trans "Associated documents" as associated_docs %} {% dynamic_table_document associated_docs 'documents' 'treatment_files' item.pk '' output %} {% endif %} {% if item.administrative_act.count %} {% trans "Administrative acts" as admact_lbl %} {% table_administrativact admact_lbl item.administrative_act.all %} {% endif %} {% if not is_external %} {% if item.history_creator or item.last_edition_date or item.created %}

{% trans "Sheet"%}

{% include "ishtar/blocks/sheet_creation_section.html" %}
{% endif %} {% endif %}
{% for loan in item.treatment_files.all %}
{% if ISHTAR_MUSEUM_GAM %} {% endif %}
{% trans "Dates" %}
{{loan.exhibition_start_date|date:"SHORT_DATE_FORMAT"}} / {{loan.exhibition_end_date|date:"SHORT_DATE_FORMAT"}}
{% field_flex_detail _("Beneficiary of the loan") loan.applicant_organisation %} {% field_flex_detail _("Scientific manager of the exhibition") loan.in_charge %} {% field_flex_detail _("Exhibition location") loan.exhibition_location %} {% field_flex_detail _("Insurance provider") loan.insurance_provider %}

{% trans "Associated basket" %}

{% field_flex_detail _("Associated basket") loan.associated_basket %} {% if perm_change_basket %}

  {% trans "manage items of this basket" %}

{% endif %}
{% dynamic_table_document finds 'finds' 'basket_id' loan.associated_basket.pk 'TABLE_COLS' output %}
{% endfor %}
{% endwith %}{% endwith %}{% endwith %}{% endwith %} {% endblock %}