{% extends 'base.html' %} {% block title %}Planning Patching {{ year }}{% endblock %} {% block content %}

Planning Patching {{ year }}

{{ year - 1 }} {{ year + 1 }} {% if entries and perms.planning in ('edit', 'admin') %}
{% endif %}
{% if msg %}
{% if msg == 'add' %}Entrée ajoutée.{% elif msg == 'edit' %}Entrée modifiée.{% elif msg == 'delete' %}Entrée supprimée.{% elif msg == 'duplicate' %}Planning dupliqué avec succès.{% elif msg == 'exists' %}L'annee cible contient déjà des entrées. Supprimez-les d'abord.{% elif msg == 'err_week' %}Numéro de semaine invalide (1-53).{% elif msg == 'err_domain' %}Domaine requis pour une entrée ouverte.{% elif msg == 'err_past' %}Impossible d'ajouter dans le passé (semaine déjà écoulée).{% elif msg == 'err_past_wed' %}Semaine en cours : ajout possible uniquement lundi et mardi (MEP urgente).{% endif %}
{% endif %}
Cycle 1
Cycle 2
Cycle 3
Gel
DMZ (continu)
HPROD = hors-prod | PROD = production | pilot = prod pilote
{% for m in months %} {% endfor %} {% for w in weeks %} {% endfor %} {% for dom in domains %} {% for w in weeks %} {% set entry = grid.get(dom.code, {}).get(w) %} {% endfor %} {% endfor %}
Domaine{{ m }}
{{ w }}
{{ dom.name }} ({{ dom.srv_count }})
{% if w in freeze_weeks %}
{% elif entry %} {% set bg = '#1e3a8a' %} {% if entry.cycle == 2 %}{% set bg = '#7c3aed' %}{% endif %} {% if entry.cycle == 3 %}{% set bg = '#166534' %}{% endif %} {% if dom.code == 'DMZ' %}{% set bg = '#5f3737' %}{% endif %}
{% if entry.env_scope == 'prod' %}P{% elif entry.env_scope == 'hprod' %}H{% elif entry.env_scope == 'prod_pilot' %}PP{% elif entry.env_scope == 'all' %}A{% endif %}
{% else %}
{% endif %}
{% for cycle_num in [1, 2, 3] %}

Cycle {{ cycle_num }}

{% for w in weeks %} {% for dom in domains %} {% set entry = grid.get(dom.code, {}).get(w) %} {% if entry and entry.cycle == cycle_num and dom.code != 'DMZ' %}
S{{ '%02d' % w }} {{ dom.name }} {{ entry.env_scope }}
{% if entry.note %}{{ entry.note[:20] }}{% endif %}
{% endif %} {% endfor %} {% endfor %}
{% endfor %}

Donnees planning {{ year }} ({{ entries|length }} entrees)

{% if perms.planning in ('edit', 'admin') %}{% endif %} {% for e in entries %} {% if perms.planning in ('edit', 'admin') %} {% endif %} {% endfor %}
Sem. Dates Domaine Env Cycle Statut NoteActions
{% if perms.planning in ('edit', 'admin') %}

Ajouter une entree

{% endif %} {% endblock %}