15dcabc538
스케줄표·달력·호스트 설정 위에 한글/EN 버튼을 두고 화면·창·오류·확인 문구를 모두 전환한다(쿠키 live_lang, 브라우저마다 기억). 메인 카드 제목은 "라이브 커머스 · Live Commerce"로 표기한다. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
42 lines
2.8 KiB
HTML
42 lines
2.8 KiB
HTML
{% extends "erp_base.html" %}
|
|
{#- 라이브 커머스 스케줄표(2026-11-04) — 달마다 방송 목록. 추가·고치기 창은 달력과 공용(_dialog.html, live.js). 문구 = t()(i18n.py). -#}
|
|
{% block head_extra %}<link rel="stylesheet" href="/static/live.css?v=20261104c" />{% endblock %}
|
|
|
|
{% block content %}
|
|
<section class="lv" lang="{{ lang }}">
|
|
{% include "live/_bar.html" %}
|
|
|
|
<div class="erp-card-block">
|
|
<div class="erp-table-wrap">
|
|
<table class="erp-table lv-table">
|
|
<thead><tr><th>{{ t('날짜') }}</th><th>{{ t('시간') }}</th><th>{{ t('호스트') }}</th><th>{{ t('방송 장소') }}</th><th class="lv-r">{{ t('판매금액(RM)') }}</th><th class="lv-r">{{ t('커미션 10%(RM)') }}</th><th class="lv-r">{{ t('호스트 비용(RM)') }}</th><th>{{ t('방송 결과') }}</th><th></th></tr></thead>
|
|
<tbody>
|
|
{% for r in rows %}
|
|
<tr>
|
|
<td class="lv-nowrap" data-label="{{ t('날짜') }}">{{ r.date }}</td>
|
|
<td class="lv-nowrap" data-label="{{ t('시간') }}">{{ r.times }}</td>
|
|
<td data-label="{{ t('호스트') }}">{{ r.host_name }}{% if r.tiktok_handle %}<div class="lv-sub">@{{ r.tiktok_handle }}</div>{% endif %}</td>
|
|
<td data-label="{{ t('방송 장소') }}">{{ r.venue }}</td>
|
|
<td class="lv-r lv-num" data-label="{{ t('판매금액(RM)') }}">{{ r.sales }}</td>
|
|
<td class="lv-r lv-num" data-label="{{ t('커미션 10%(RM)') }}">{{ r.commission }}</td>
|
|
<td class="lv-r lv-num" data-label="{{ t('호스트 비용(RM)') }}" title="{{ t('기본 요금 RM {base} + 커미션 RM {commission}').format(base=r.pay.base, commission=r.pay.commission) }}">{{ r.fee }}</td>
|
|
<td data-label="{{ t('방송 결과') }}"><div class="lv-thumbs">{% for im in r.images %}<a href="/live/images/{{ im.id }}" target="_blank" rel="noopener" title="{{ im.filename }}"><img src="/live/images/{{ im.id }}?thumb=1" alt="{{ im.filename }}" loading="lazy" /></a>{% endfor %}</div></td>
|
|
<td class="lv-actions">
|
|
<button type="button" class="erp-btn erp-btn-outline erp-btn-sm" data-edit='{{ r.edit | tojson }}'>{{ t('고치기') }}</button>
|
|
<button type="button" class="erp-btn erp-btn-outline erp-btn-sm" data-post="/live/broadcasts/{{ r.id }}/delete" data-confirm="{{ t('{date} {host} 방송을 지울까요? 결과 이미지도 함께 지워집니다.').format(date=r.date, host=r.host_name) }}">{{ t('지우기') }}</button>
|
|
</td>
|
|
</tr>
|
|
{% else %}
|
|
<tr><td colspan="9" class="erp-empty">{{ t('이 달에 등록한 방송이 없습니다.') }}</td></tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
{% include "live/_dialog.html" %}
|
|
{% endblock %}
|
|
|
|
{% block scripts %}{% include "live/_scripts.html" %}{% endblock %}
|