{% load i18n %} {% if column.key == 'pharmacy' %} № {{ pharmacy.pharmacy_number }}
{{ pharmacy.address|default:no_addr_short }}
{% elif column.key == 'organization' %} {{ pharmacy.organization.name|default:"—" }} {% elif column.key == 'head' %} {% if pharmacy.head_pharmacist %} {{ pharmacy.head_pharmacist.first_name }} {{ pharmacy.head_pharmacist.last_name|default:'' }} {% else %} {% trans "не назначен" %} {% endif %} {% elif column.key == 'staff' %}
{{ pharmacy.staff_count }} {% if pharmacy.staff_status == 'danger' %} {% trans "Нехватка" %} {% elif pharmacy.staff_status == 'warning' %} {% trans "Внимание" %} {% else %} {% trans "Норма" %} {% endif %}
{% elif column.key == 'phone' %} {% if pharmacy.phone %}{{ pharmacy.phone }}{% else %}-{% endif %} {% elif column.key == 'hours' %} {{ pharmacy.working_hours }} {% elif column.key == 'status' %} {% if pharmacy.is_active %} {% trans "Активна" %} {% else %} {% trans "Неактивна" %} {% endif %} {% elif column.key == 'region' %} {{ pharmacy.location_region.name|default:"—" }} {% elif column.key == 'category' %} {{ pharmacy.category|default:"—" }} {% elif column.key == 'curator' %} {% if pharmacy.curator %}{{ pharmacy.curator.last_name }} {{ pharmacy.curator.first_name }}{% else %}—{% endif %} {% elif column.key == 'manager' %} {% if pharmacy.responsible_manager %}{{ pharmacy.responsible_manager.last_name }} {{ pharmacy.responsible_manager.first_name }}{% else %}—{% endif %} {% elif column.key == 'license' %} {{ pharmacy.license_number|default:"—" }} {% elif column.key == 'vat' %} {% if pharmacy.vat_category %}{{ pharmacy.get_vat_category_display }}{% else %}—{% endif %} {% elif column.key == 'email' %} {{ pharmacy.carbonio_email|default:"—" }} {% elif column.key == 'generator' %} {% if pharmacy.has_generator %}{% trans "Да" %}{% else %}—{% endif %} {% elif column.key == 'inverter' %} {% if pharmacy.has_inverter %}{% trans "Да" %}{% else %}—{% endif %} {% elif column.key == 'mikrotik' %} {% if pharmacy.has_mikrotik_router %}{% trans "Да" %}{% else %}—{% endif %} {% elif column.key == 'provider' %} {% if pharmacy.dislo_provider %}{{ pharmacy.dislo_provider }}{% else %}—{% endif %} {% elif column.key == 'contract' %} {% if pharmacy.dislo_contract %}{{ pharmacy.dislo_contract }}{% else %}—{% endif %} {% elif column.key == 'gpon' %} {% if pharmacy.has_gpon %}{% trans "Да" %}{% else %}—{% endif %} {% else %} — {% endif %}