15dcabc538
스케줄표·달력·호스트 설정 위에 한글/EN 버튼을 두고 화면·창·오류·확인 문구를 모두 전환한다(쿠키 live_lang, 브라우저마다 기억). 메인 카드 제목은 "라이브 커머스 · Live Commerce"로 표기한다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
20 lines
1.7 KiB
HTML
20 lines
1.7 KiB
HTML
{#- 스케줄표·달력 공통 위 막대 — 달 이동, 표/달력 전환, 언어, 호스트 설정, 방송 추가. view = table | calendar -#}
|
|
{% set here = '/live/calendar' if view == 'calendar' else '/live/' %}
|
|
{% set can_add = hosts | selectattr('is_active') | list %}
|
|
<div class="lv-bar">
|
|
<a class="erp-btn erp-btn-outline" href="{{ here }}?month={{ span.prev }}" aria-label="{{ t('이전 달') }}">◀</a>
|
|
<h2 class="lv-month">{{ span.label }}</h2>
|
|
<a class="erp-btn erp-btn-outline" href="{{ here }}?month={{ span.next }}" aria-label="{{ t('다음 달') }}">▶</a>
|
|
<nav class="lv-views" aria-label="{{ t('보기 방식') }}">
|
|
<a class="erp-btn {{ 'erp-btn-primary' if view == 'table' else 'erp-btn-outline' }}" href="/live/?month={{ span.start.strftime('%Y-%m') }}"{% if view == 'table' %} aria-current="page"{% endif %}>{{ t('표') }}</a>
|
|
<a class="erp-btn {{ 'erp-btn-primary' if view == 'calendar' else 'erp-btn-outline' }}" href="/live/calendar?month={{ span.start.strftime('%Y-%m') }}"{% if view == 'calendar' %} aria-current="page"{% endif %}>{{ t('달력') }}</a>
|
|
</nav>
|
|
<span class="lv-gap"></span>
|
|
{% include "live/_lang.html" %}
|
|
{% if is_admin %}<a class="erp-btn erp-btn-outline" href="/live/settings">{{ t('호스트 설정') }}</a>{% endif %}
|
|
<button type="button" class="erp-btn erp-btn-primary" id="lv-add"{% if not can_add %} disabled{% endif %}>{{ t('+ 방송 추가') }}</button>
|
|
</div>
|
|
{% if not can_add %}
|
|
<p class="lv-note">{{ t('방송을 추가하려면 먼저 호스트를 등록해야 합니다.') }} {% if is_admin %}<a href="/live/settings">{{ t('호스트 설정') }}</a>{% else %}{{ t('ERP 관리자에게 등록을 요청하세요.') }}{% endif %}</p>
|
|
{% endif %}
|