{% extends "layouts/base.html" %} {% load fm_tags %} {% block title %}{{ agency.name }}{% endblock %} {% block breadcrumb %}
  • Agences
  • {{ agency.code }}
  • {% endblock %} {% block content %}
    {{ agency.code }}

    {{ agency.name }}

    {% aide_page as aide %}{% if aide %}{% endif %}

    {{ agency.get_agency_type_display }} · {{ agency.region.name }} · {{ agency.city }}

    Tableau de bord {% if can_edit_settings %}Paramètres{% endif %} {% if can_manage %}Modifier{% endif %} {% if is_national and agency.status == "ACTIVE" or is_national and agency.status == "SUSPENDED" %}{% can "agencies.deactivate_agency" as can_toggle %}{% if can_toggle %}
    {% csrf_token %}
    {% endif %}{% endif %}
    {% if can_assign %}Affecter{% endif %} {% if memberships %}
      {% for m in memberships %}
    • {{ m.user.get_full_name|default:m.user.email }}{{ m.role.name_fr }} · depuis le {{ m.start_date|date:"d/m/Y" }} {% if m.is_primary %}Principale{% endif %} {% if can_assign and m.user_id != user.id %}
      {% csrf_token %}
      {% endif %}
    • {% endfor %}
    {% else %}{% endif %}
      {% for h in history %}
    1. {{ h.event_type }}

      {{ h.occurred_at|date:"d/m/Y H:i" }}{% if h.actor %} · {{ h.actor.get_full_name }}{% endif %}{% if h.comment %} · {{ h.comment }}{% endif %}

    2. {% empty %}
    3. Aucun événement.
    4. {% endfor %}
    Adresse
    {{ agency.address|default:"—" }}{% if agency.quarter %}, {{ agency.quarter }}{% endif %}
    {{ agency.city }}
    Téléphone
    {% if agency.phone %}{{ agency.phone }}{% else %}—{% endif %}
    E-mail
    {% if agency.email %}{{ agency.email }}{% else %}—{% endif %}
    {% if agency.website %}{% endif %}
    Responsable
    {{ agency.manager.get_full_name|default:"—" }}
    Ouverture
    {{ agency.opened_on|date:"d/m/Y"|default:"—" }}
    Capacité
    {{ agency.capacity|default:"—" }} places
    {% endblock %}