e6ebf2188b
호스트에 간단한 이름(display_name, 필수)을 추가하고 달력 카드·스케줄표·방송 창에 표시한다. 달력 카드 머리 아래에 그 방송의 틱톡 계정을 작게 보여 준다. 관리자 페이지 칩 live_host_edit 로 호스트 수정을 허용한다. 지우기는 관리자만이고, 개인정보는 페이지에 싣지 않아 빈칸으로 열리며 비워 두면 값이 유지된다. 마이그레이션 004: live_hosts.display_name 추가. 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 can_add_host or can_edit_host %}<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 can_add_host %}<a href="/live/settings">{{ t('호스트 설정') }}</a>{% else %}{{ t('ERP 관리자에게 등록을 요청하세요.') }}{% endif %}</p>
|
|
{% endif %}
|