{% endif %}
{% if req.status == '반려' and req.reject_reason %}
반려 사유
{{ req.reject_reason }}
{% endif %}
{% if is_approver and req.status == '제출' %}
{% endif %}
{#- 휴가 메일 기록(2026-10-27, 001) — 제출·승인·반려 때 보낸 메일(받는 사람·보낸 사람·방법·결과) -#}
{% if mail_log %}
메일
{% for m in mail_log %}
{{ m.sent_at[5:16] | replace('T', ' ') }}{{ event_words.get(m.event, m.event) }}
{{ '보냄' if m.ok else '못 보냄' }}
— {{ m.sender }}{% if m.via %} ({{ 'Gmail' if m.via == 'gmail' else '회사 메일' }}){% endif %} → {{ m.recipients or '받는 사람 없음' }}
{% if m.error %}{{ m.error }}{% endif %}
{% endfor %}
{% endif %}
◀◀ 달력
{% if is_owner and req.status in ('작성중', '반려') %}
{% endif %}
{# 승인 건: 취소처리(owner/admin). 미승인: 삭제(owner/admin). 관리자는 모든 상태 삭제 가능. #}
{% if req.status == '승인' and (is_owner or is_admin) %}
{% endif %}
{% if req.status in ('작성중', '제출', '반려') and (is_owner or is_admin) %}
{% endif %}
{% if is_admin and req.status in ('승인', '취소') %}
{% endif %}
{% if can_edit %}
수정
{% endif %}