{% extends "base.html" %} {% load static %} {% load tz %} {% load i18n %} {% load documents_tags %} {% load asset_tags %} {% load short_name %} {% block content %}

{{ location.code}} - {{ location.get_name }}


{{ location.structure }}
{% if location.is_main_location %} {% else %} {{ location.structure.main_location }} {% endif %}
{% if location.parent_location %} {{ location.parent_location }} {% endif %}
{% asset_underground_url location as underground_map_url %} {% if underground_map_url %} {% translate "Voir sur la carte Sous-sol 3D" %} {% endif %} {% if location.lon %} {% translate 'Street View' %} {% translate "View in Google Street View" %} {% endif %}
{% if location.is_main_location %}

{% translate "Documents" %}

{% if document_folder %} {{ location.structure }} {% else %} {{ location.structure }} {% endif %}
{% if use_managed_documents %} {# Nouveau système de gestion documentaire #} {% for doc_info in main_documents %} {% if doc_info.document %}
{{ doc_info.tag.name }}
{% if doc_info.version and doc_info.version.file %}
{% if doc_info.version.thumbnail %} {{ doc_info.document.title }} {% else %} {{ doc_info.version.filename }} {% endif %}
{% endif %}
{{ doc_info.document.updated_at|timezone:"Europe/Paris"|date:"d/m/Y" }}
{% if doc_info.version %}v{{ doc_info.version.version_number }}{% endif %}
{% endif %} {% endfor %} {% else %} {# Ancien système - StructureDocument #} {% for document in main_documents %} {% if document %}
{{ document.upload_date|timezone:"Europe/Paris"|date:"d/m/Y" }}
{{ document.uploaded_by.username }}
{% endif %} {% endfor %} {% endif %}
{% endif %} {% if can_view_exceptional_transport and location.structure %}

{% translate "Transport exceptionnel & Convois lourds" %}

{% if te_info %} {% if te_info.passage_status == 'authorized' %} {% translate "Autorisé" %} {% elif te_info.passage_status == 'conditional' %} {% translate "Sous conditions" %} {% elif te_info.passage_status == 'prior_study_required' %} {% translate "Étude préalable requise" %} {% elif te_info.passage_status == 'forbidden' %} {% translate "Interdit" %} {% else %} {% translate "Non évalué" %} {% endif %} {% else %} {% translate "Non évalué" %} {% endif %} {% if can_edit_exceptional_transport %} {% endif %}
{% translate "Capacités de charge" %}
{% translate "Poids max. standard (MAXWA)" %} : {% if te_info.max_authorized_weight_tonnes %}{{ te_info.max_authorized_weight_tonnes }} t{% else %}-{% endif %}
{% translate "Tonnage max. calculé (MX)" %} : {% if te_info.max_calculated_weight_tonnes %}{{ te_info.max_calculated_weight_tonnes }} t{% else %}-{% endif %}
{% translate "Capacité min. garantie (MINWR)" %} : {% if te_info.min_guaranteed_capacity_tonnes %}{{ te_info.min_guaranteed_capacity_tonnes }} t{% else %}-{% endif %}
{% translate "Charge max. / essieu" %} : {% if te_info.max_axle_load_tonnes %}{{ te_info.max_axle_load_tonnes }} t/essieu{% else %}-{% endif %}
{% translate "Entraxe minimal essieux" %} : {% if te_info.min_axle_spacing_m %}{{ te_info.min_axle_spacing_m }} m{% else %}-{% endif %}
{% translate "Gabarits & Classification" %}
{% translate "Classe de pont (BKL)" %} : {{ te_info.bridge_class|default:"-" }}
{% translate "N° FOD / ID National" %} : {{ te_info.fod_vnr|default:"-" }} / {{ te_info.national_id|default:"-" }}
{% translate "Hauteurs libres (G / Axe / D)" %} : {{ te_info.clearance_height_left_m|default:"-" }} m / {{ te_info.clearance_height_center_m|default:"-" }} m / {{ te_info.clearance_height_right_m|default:"-" }} m
{% translate "Largeur utile (BRE)" %} : {% if te_info.usable_width_m %}{{ te_info.usable_width_m }} m{% else %}-{% endif %}
{% translate "Franchissement ferroviaire / métro" %} : {% if te_info.is_railway_metro_crossing %} {% translate "Oui" %} {% else %} {% translate "Non" %} {% endif %}
{% translate "Règles d'exploitation" %}
  • {% translate "Vitesse maximale" %} {{ te_info.max_speed_kmh|default:5 }} km/h
  • {% translate "Freinage sur ouvrage" %} {% if te_info.is_braking_forbidden %} {% translate "Strictement interdit" %} {% else %} {% translate "Autorisé" %} {% endif %}
  • {% translate "Passage isolé (convoi seul)" %} {% if te_info.is_isolated_crossing_only %} {% translate "Convoi seul obligatoire" %} {% else %} {% translate "Non exigé" %} {% endif %}
  • {% translate "Distance de sécurité" %} {{ te_info.safety_distance_m|default:5 }} m
  • {% translate "Interruption circulation" %} {% if te_info.traffic_interruption_required %} {% translate "Requise" %} {% else %} {% translate "Non" %} {% endif %}
  • {% translate "Position sur chaussée" %} {{ te_info.get_lane_positioning_display|default:"Standard" }}
{% translate "Prescriptions détaillées" %}
{% if te_info.prescriptions_fr %}
FR

{{ te_info.prescriptions_fr }}

{% endif %} {% if te_info.prescriptions_nl %}
NL

{{ te_info.prescriptions_nl }}

{% endif %} {% if not te_info.prescriptions_fr and not te_info.prescriptions_nl %}

{% translate "Aucune prescription textuelle spécifique enregistrée." %}

{% endif %} {% if te_info.last_study_ref or te_info.last_study_date %}
{% translate "Dernière note de calcul" %} : {{ te_info.last_study_ref|default:"-" }} {% if te_info.last_study_date %}({{ te_info.last_study_date|date:"d/m/Y" }}){% endif %}
{% endif %}
{% translate "Documents du répertoire Transport exceptionnel" %}
{% if te_folder %} {% translate "Ouvrir dans la GED" %} {% endif %}
{% if te_documents %}
{% for doc in te_documents %}
{{ doc.title }}
{{ doc.updated_at|date:"d/m/Y" }}
{% if doc.current_version and doc.current_version.file %}
v{{ doc.current_version.version_number }}
{% endif %}
{% endfor %}
{% else %}

{% translate "Aucun document spécifique dans le répertoire Transport exceptionnel." %}

{% endif %} {% if te_notices %}
{% translate "Historique des missions d'études et avis" %}
{% for notice in te_notices %} {% endfor %}
{% translate "Mission / Réf" %} {% translate "Date" %} {% translate "Résultat" %} {% translate "Tonnage évalué" %} {% translate "Charge / essieu" %} {% translate "Commentaires" %}
{{ notice.mission_reference }} {{ notice.notice_date|date:"d/m/Y"|default:"-" }} {% if notice.result == 'positive' %} {% translate "Favorable" %} {% elif notice.result == 'conditional' %} {% translate "Sous conditions" %} {% else %} {% translate "Défavorable" %} {% endif %} {% if notice.evaluated_total_weight_tonnes %}{{ notice.evaluated_total_weight_tonnes }} t{% else %}-{% endif %} {% if notice.evaluated_axle_load_tonnes %}{{ notice.evaluated_axle_load_tonnes }} t{% else %}-{% endif %} {{ notice.comments|default:"-" }}
{% endif %}
{% endif %}

{% translate "Carnet de santé : Visites & Constats" %}

{{ structure_visits|length }} {% translate "visite(s)" %} {{ structure_findings|length }} {% translate "constat(s) actif(s)" %} {% if watch_findings_count %} {{ watch_findings_count }} {% translate "à surveiller" %} {% endif %} {% if hazard_findings_count %} {{ hazard_findings_count }} {% translate "danger(s)" %} {% endif %}
{% if structure_findings %}
{% for f in structure_findings %} {% endfor %}
{% translate "Code" %} {% translate "Constat" %} {% translate "Gravité / Indice" %} {% translate "Portée" %} {% translate "Statut" %} {% translate "Dernier relevé" %}
{{ f.code }} {% if f.is_safety_hazard %} {% endif %}
{{ f.title|default:f.get_finding_nature_display }}
{% if f.linear_location %}
{{ f.linear_location }}
{% endif %}
{{ f.get_severity_display }} {% if f.condition_index %}GC {{ f.condition_index }}{% endif %} {{ f.get_tracking_scope_display }} {{ f.get_status_display }} {{ f.last_seen_at|date:"d/m/Y H:i" }}
{% else %}

{% translate "Aucun constat ouvert ni point sous surveillance sur cet ouvrage." %}

{% endif %}
{% if structure_visits %}
{% for visit in structure_visits %} {% endfor %}
{% translate "Code" %} {% translate "Date" %} {% translate "Type" %} {% translate "Titre" %} {% translate "Résultat" %} {% translate "Inspecteur" %}
{{ visit.code }} {{ visit.conducted_at|date:"d/m/Y H:i" }} {{ visit.get_visit_type_display }} {{ visit.title|default:"-" }} {{ visit.get_result_status_display }} {% if visit.inspector %}{{ visit.inspector|short_name }}{% else %}-{% endif %}
{% else %}

{% translate "Aucune visite ou inspection enregistrée pour cet ouvrage." %}

{% endif %}
{% if structure_reference_views %}
{% for rv in structure_reference_views %}
{% if rv.view_type == 'bim_3d' %} {% translate "Maquette 3D" %} {% else %} {% translate "Plan 2D" %} {% endif %} {{ rv.name }}
{% translate "Page" %} {{ rv.page_number }} {% if rv.view_type == 'plan_2d' %} • {% if rv.affine_matrix %}{% translate "Calé" %}{% else %}{% translate "Non calé" %}{% endif %} {% endif %}
{% if rv.viewer_url %} {% translate "Ouvrir" %} {% endif %}
{% endfor %}
{% else %}

{% translate "Aucun plan 2D ni maquette 3D de référence rattaché à cet ouvrage." %}

{% endif %}

{% translate "Assets" %}

{% if can_create_assets %} {% endif %}
{{ location.get_name }} {% if location_tree.children %} {% blocktrans count c=location_tree.children|length %} {{ c }} sous-localisation {% plural %} {{ c }} sous-localisations {% endblocktrans %} {% endif %} {% if location_tree.assets %} {% blocktrans count a=location_tree.assets|length %} {{ a }} asset {% plural %} {{ a }} assets {% endblocktrans %} {% endif %}
{% if show_inactive_assets %} {% translate "Masquer les non-actifs" %} {% else %} {% translate "Afficher les non-actifs" %} {% endif %}
{% include "assets/structures_location_tree.html" with node=location_tree include_inactive=show_inactive_assets only %}
…

{% translate "Interventions" %}

{% for interv in interventions %} {% endfor %}
{% translate "Code" %} {% translate "Titre" %} {% translate "Début" %} {% translate "Statut" %}
{{ interv.code }} {{ interv.title }} {{ interv.begin_time|date:"d-m-Y H:i" }} {{ interv.get_status_display }}
{% if can_create_assets %} {% include "assets/components/add_asset_modal.html" with modal_id="addAssetLocationModal" thematic_code="structures" location=location categories=categories suggested_code=suggested_code %} {% endif %} {% if can_edit_exceptional_transport and location.structure %} {% endif %} {% endblock content%} {% block script %} {{ geom|json_script:"geom_value" }} {{ location.lon|json_script:"lon_value" }} {{ location.lat|json_script:"lat_value" }} {% if can_create_assets %} {% endif %} {% endblock script %}