{% extends 'base.html' %} {% block title %}Mon espace · Planète RH{% endblock %} {% block content %} {% set labels = {'annual':'Congé annuel','sick':'Maladie','unpaid':'Congé sans solde','unplanned':'Absence non planifiée','wfh':'Télétravail','menstrual':'Congé menstruel'} %} {% set statuses = {'pending':'En attente','approved':'Approuvée','rejected':'Refusée'} %}
Mon espace

{{ 'Mon planning' if section == 'planning' else 'Mon compte' if section == 'account' else 'Bonjour, ' ~ profile.full_name }}

{% if section == 'home' %}

Vos congés et absences, simplement.

{% if balance.unvalidated %}
Vos soldes {{ year }} restent à valider par RH.
{% else %}
{% for label, value in [('Congés annuels', balance.annual_opening + balance.annual_entitlement - balance.annual_used), ('Maladie', balance.sick_opening + balance.sick_entitlement - balance.sick_used)] %}
{{ label }} · {{ year }}
{{ value|round(1) }} jours
{% endfor %}
{% endif %} {% if module_allowed('requests') %}
Demander un congéDéclarer une maladie / joindre un justificatif
{% endif %}

Mes dernières demandes

{% for item in recent %}
{{ labels.get(item.leave_type,item.leave_type) }}{{ statuses.get(item.status,item.status) }}
Du {{ item.start_date|date_fr }} au {{ item.end_date|date_fr }}
{% if item.decision_note %}

{{ item.decision_note }}

{% endif %}
{% else %}

Aucune demande pour le moment.

{% endfor %} {% elif section == 'planning' %}

Vos demandes et déclarations personnelles. Une demande en attente n’est pas encore validée.

{% for item in leaves %}
{{ labels.get(item.leave_type,item.leave_type) }}
{{ item.start_date|date_fr }} → {{ item.end_date|date_fr }}
{{ statuses.get(item.status,item.status) }}
{% endfor %} {% for item in weekends %}
{{ 'Astreinte' if item.work_type == 'on_call' else 'Travail week-end' }}
{{ item.work_date|date_fr }} · {{ statuses.get(item.status,item.status) }}
{% endfor %} {% if not leaves and not weekends %}
Aucun événement personnel ce mois-ci.
{% endif %} {% else %}

{{ profile.full_name }}

{{ profile.team }} · {{ profile.position_title }}

Entrée dans la société
{{ profile.start_date|date_fr or 'Non renseignée' }}
E-mail
{{ profile.email or 'Non renseigné' }}
Téléphone
{{ profile.phone or 'Non renseigné' }}

Contactez RH pour actualiser vos coordonnées.

Changer mon mot de passe{% if module_allowed('personal_payroll') %}Ma rémunération{% endif %}
{% endif %}
{% endblock %}