|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
|
{% extends "erp_base.html" %}
|
|
|
|
|
{#- 라이브 커머스 달력 보기(2026-11-04) — 줄 = 2시간 칸, 열 = 날짜, 맨 아래 = 날짜별 합계. 카드 머리 = 호스트 간단한 이름 + 그 방송의 틱톡 계정.
|
|
|
|
|
카드 머리를 끌어 빈 칸으로 옮기거나 다른 카드 위에 놓아 맞바꾼다(live.js). 문구 = t()(i18n.py), 영문은 CSS 로 대문자(받은 화면과 같게). -#}
|
|
|
|
|
{% block head_extra %}<link rel="stylesheet" href="/static/live.css?v=20261106e" />
|
|
|
|
|
{% block head_extra %}<link rel="stylesheet" href="/static/live.css?v=20261106f" />
|
|
|
|
|
<link rel="stylesheet" href="/static/vendor/material-symbols/material-symbols.css" />
|
|
|
|
|
<link rel="stylesheet" href="/static/erp-datepop.css?v=20261102a" />{% endblock %}
|
|
|
|
|
|
|
|
|
@@ -38,6 +38,7 @@
|
|
|
|
|
<th class="lv-cal-time" scope="row">{{ slot.label }}<small>{{ cal.slot_note }}</small></th>
|
|
|
|
|
{% for cell in slot.cells %}{% if not cell.skip %}{#- skip = 위 칸에 합쳐진 칸(방송이 걸친 시간만큼 rowspan) -#}
|
|
|
|
|
<td class="lv-cell{% if cell.is_weekend %} is-weekend{% endif %}"{% if cell.rowspan > 1 %} rowspan="{{ cell.rowspan }}"{% endif %} data-drop data-day="{{ cell.iso }}" data-start="{{ slot.start }}">
|
|
|
|
|
{% if cell.cards %}<div class="lv-cards">{% endif %}{#- 카드가 합친 칸 높이를 채움(live.css) -#}
|
|
|
|
|
{% for c in cell.cards %}
|
|
|
|
|
<article class="lv-card" data-card="{{ c.id }}">
|
|
|
|
|
<header class="lv-card-head" draggable="true" style="background:{{ c.color }}" title="{{ c.host_name }} · {{ c.times }}{% if c.venue %} · {{ c.venue }}{% endif %}">
|
|
|
|
@@ -49,9 +50,10 @@
|
|
|
|
|
<div><span>{{ t('판매금액') }}</span><b>{{ c.card_sales }}</b></div>
|
|
|
|
|
<div><span>{{ t('커미션') }} ({{ cal.commission_percent }}%)</span><b>{{ c.card_commission }}</b></div>
|
|
|
|
|
</div>
|
|
|
|
|
<footer class="lv-card-foot"><span>{{ t('비용') }}: <b>RM{{ c.card_fee }}</b></span>{% if c.images %}<a href="/live/images/{{ c.images[0].id }}" target="_blank" rel="noopener" title="{{ t('방송 결과 이미지') }}" data-preview="{{ c.label }} · {{ c.date }} {{ c.times }}{% if c.images | length > 1 %} · 1/{{ c.images | length }}{% endif %}">{{ t('이미지 {n}').format(n=c.images | length) }}</a>{% endif %}</footer>
|
|
|
|
|
<footer class="lv-card-foot"><span>{{ t('비용') }}: <b>RM{{ c.card_fee }}</b></span>{% if c.images %}<a href="/live/images/{{ c.images[0].id }}" target="_blank" rel="noopener" title="{{ t('방송 결과 이미지') }}" data-preview="{{ c.label }} · {{ c.date }} {{ c.times }}{% if c.images | length > 1 %} · 1/{{ c.images | length }}{% endif %}" data-images='{{ c.images | map(attribute="id") | list | tojson }}' data-names='{{ c.images | map(attribute="filename") | list | tojson }}'>{{ t('이미지 {n}').format(n=c.images | length) }}</a>{% endif %}</footer>
|
|
|
|
|
</article>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% if cell.cards %}</div>{% endif %}
|
|
|
|
|
{% if not cell.cards and hosts | selectattr('is_active') | list %}
|
|
|
|
|
<button type="button" class="lv-cell-add" data-new='{{ {"broadcast_date": cell.iso, "start_time": slot.start, "end_time": slot.end} | tojson }}' aria-label="{{ t('{date} {slot} 방송 추가').format(date=cell.iso, slot=slot.label) }}">+</button>
|
|
|
|
|
{% endif %}
|
|
|
|
@@ -87,6 +89,20 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{% include "live/_dialog.html" %}
|
|
|
|
|
{#- 카드의 이미지 링크를 누르면 화면 가운데 원본 크기 이미지 — 회전(보기만)·다운로드(원본)·여러 장이면 앞뒤(live.js) -#}
|
|
|
|
|
<dialog class="lv-viewer" id="lv-viewer" aria-labelledby="lv-viewer-cap">
|
|
|
|
|
<div class="lv-viewer-bar">
|
|
|
|
|
<span class="lv-viewer-cap" id="lv-viewer-cap"></span>
|
|
|
|
|
<span class="lv-gap"></span>
|
|
|
|
|
<button type="button" class="erp-btn erp-btn-outline erp-btn-sm" data-step="-1" aria-label="{{ t('이전 이미지') }}">◀</button>
|
|
|
|
|
<span class="lv-viewer-count"></span>
|
|
|
|
|
<button type="button" class="erp-btn erp-btn-outline erp-btn-sm" data-step="1" aria-label="{{ t('다음 이미지') }}">▶</button>
|
|
|
|
|
<button type="button" class="erp-btn erp-btn-outline erp-btn-sm" data-rotate>↻ {{ t('회전') }}</button>
|
|
|
|
|
<a class="erp-btn erp-btn-outline erp-btn-sm" data-download download>{{ t('다운로드') }}</a>
|
|
|
|
|
<button type="button" class="erp-btn erp-btn-primary erp-btn-sm" data-viewer-close>{{ t('닫기') }}</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lv-viewer-body"><div class="lv-viewer-stage"><img alt="" /></div></div>
|
|
|
|
|
</dialog>
|
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block scripts %}<script type="application/json" id="lv-my-holidays">{{ my_holidays | tojson }}</script>
|
|
|
|
|