{% extends 'base.html' %} {% block title %}{{ c.label or c.week_code }}{% endblock %} {% block content %}
| Hostname | Domaine | Env | Tier | Jour prevu | Heure | Intervenant | {% if c.status == 'draft' %}SSH | Sat | Disque | {% endif %}Statut | Actions |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ s.hostname }} | {{ s.domaine or '-' }} | {{ (s.environnement or '-')[:6] }} | {{ s.tier }} | {% if s.date_prevue %}{% set jours = {0:'Lun',1:'Mar',2:'Mer',3:'Jeu',4:'Ven',5:'Sam',6:'Dim'} %}{{ jours[s.date_prevue.weekday()] }} {{ s.date_prevue.strftime('%d/%m') }}{% else %}-{% endif %} | {{ s.heure_prevue or s.pref_patch_heure or '-' }} | {% if s.intervenant_name %} {{ s.intervenant_name }} {% if s.forced_assignment %}🔒{% endif %} {% else %}—{% endif %} | {% if c.status == 'draft' %}{% if s.prereq_ssh == 'ok' %}OK{% elif s.prereq_ssh == 'ko' %}KO{% else %}-{% endif %} | {% if s.prereq_satellite == 'ok' %}OK{% elif s.prereq_satellite == 'ko' %}KO{% else %}-{% endif %} | {% if s.prereq_disk_ok is true %}OK{% elif s.prereq_disk_ok is false %}KO{% else %}-{% endif %} | {% endif %}
{{ s.status }}
{% if s.exclusion_reason %}
{% if s.exclusion_reason == 'eol' %}EOL{% elif s.exclusion_reason == 'creneau_inadequat' %}Prérequis KO{% elif s.exclusion_reason == 'non_patchable' %}Non patchable{% else %}{{ s.exclusion_reason }}{% endif %}
{% if s.excluded_by %}({{ s.excluded_by }}){% endif %}
{% endif %}
|
{% if s.status == 'excluded' and can_edit_campaigns %}
{% elif s.status == 'pending' %}
{% if c.status == 'planned' %}
{# Intervenant: prendre/liberer #}
{% if not s.intervenant_id %}
{% elif s.intervenant_id == user.uid and not s.forced_assignment %}
{% endif %}
{# Coordinateur: assigner + planifier #}
{% if can_edit_campaigns %}
{% endif %}
{% elif c.status == 'draft' and can_edit_campaigns %}
|