{% extends "erp_base.html" %} {#- 휴가 옵션(2026-10-27) — 승인자·승인 통보자(수정 = ERP 관리자, 나머지는 보기만) + 내 Gmail 연결(누구나). 메일: 제출 = 승인자·통보자, 승인·반려 = 승인자·통보자·신청자. 보내는 사람 = 처리한 사람 본인 Gmail(없으면 회사 메일). -#} {% block head_extra %}{% endblock %} {% block content %}
{% if msg %}

{{ msg }}

{% endif %} {% if not options.ready %} {% endif %}
{% for key, title, hint in ( ('approvers', '휴가 승인자', '제출된 휴가를 승인·반려합니다(여러 명이면 누구든 한 명). 비워 두면 관리자 화면의 "휴가 승인" 권한자가 승인합니다. ERP 관리자는 늘 승인할 수 있습니다.'), ('notifiers', '휴가 승인 통보자', '휴가가 제출·승인·반려될 때마다 메일을 받습니다(승인 권한은 없음).')) %} {% set chosen = options[key] %}

{{ title }} {{ chosen | length }}명

{{ hint }}

{% if key == 'approvers' and not chosen %}

지금 승인자(권한자): {% if effective_approvers %}{{ effective_approvers | join(', ') }}{% else %}없음 — ERP 관리자만{% endif %}

{% endif %}
    {% for c in candidates %}
  • {% else %}
  • 휴가 모듈 권한이 있는 사용자가 없습니다.
  • {% endfor %}
{% endfor %}
{% if is_admin and options.ready %} {% if options.updated_by %}마지막 저장 {{ options.updated_by }} · {{ options.updated_at[:16] | replace('T', ' ') }}{% endif %} {% elif not is_admin %} 승인자·통보자는 ERP 관리자만 바꿀 수 있습니다. {% endif %}

메일

내 Gmail({{ user.email }}) — {% if gmail.connected %}연결됨{% else %}연결 안 됨{% endif %} {% if gmail.connected %}
{% elif gmail.available %} Gmail 연결 {% else %} Gmail 연결을 쓸 수 없는 서버입니다(입출고 DB·구글 OAuth·APP_ENCRYPTION_KEY 필요) — 회사 메일로 보냅니다. {% endif %}

입출고 발주 메일과 같은 연결입니다(한 번 연결하면 두 곳 모두). 메일 보내기 권한(gmail.send)만 받습니다. {% if not gmail.smtp %}
회사 알림 메일(SMTP)이 설정되지 않아 Gmail 을 연결하지 않은 사람의 메일은 나가지 않습니다.{% endif %}

{% endblock %}