{% extends "ishtar/sheet.html" %} {% load i18n window_header window_field window_tables %} {% block head_title %}{% trans "Organization" %} - {{item.name}}{% endblock %} {% block toolbar %} {% window_nav item window_id 'show-organization' 'organization_modify' %} {% endblock %} {% block content %}
{% field_flex "Name" item.name %} {% field_flex "Type" item.organization_type %} {% field_flex_url "Web address" item.url %} {% field_flex_detail "Created by" item.history_creator.ishtaruser.person %} {% include "ishtar/blocks/sheet_address_section.html" %} {% field_flex "Phone" item.phone %} {% field_flex "Mobile phone" item.mobile_phone %} {% field_flex_detail_multiple "Biographical notes" item.biographical_notes %}

{%trans "Person in the organization"%}

{% for person in item.members.all %} {% empty %} {% endfor %}
{% trans "Name" %} {% trans "Surname" %} {% trans "Type" %}  
{{person.name|default:""}} {{person.surname|default:""}} {% for type in person.person_types.all %}{% if forloop.counter0 %}, {% endif %}{{type.label}}{% endfor %}
{% trans "No person in this organization" %}
{% trans "Associated operations as operator" as ao %} {% if item.operator.count %} {% dynamic_table_document ao 'operations' 'operator__pk' item.pk '' output %} {% endif %} {% if item.warehouses.count %}

{%trans "Warehouses"%}

{% for warehouse in item.warehouses.all %} {% endfor %}
  {% trans "Name" %} {% trans "Type" %}
{{warehouse.name|default:""}} {{warehouse.warehouse_type}}
{% endif %} {% trans "General contractor organization of archaeological files" as af %} {% if item.general_contractor_files.count %} {% dynamic_table_document af 'files' 'corporation_general_contractor' item.pk '' output %} {% endif %} {% trans "Planning service of archaeological files" as af %} {% if item.planning_service_files.count %} {% dynamic_table_document af 'files' 'planning_service' item.pk '' output %} {% endif %} {% if item.publish.count %} {% trans "Publications" as publications %} {% dynamic_table_document publications 'documents' 'publisher__pk' item.pk '' output %} {% endif %} {% endblock %}