feat(malaysia): 전 화면 한글/영문 실시간 토글
- static/malaysia.js: KO_EN 사전 + 토글(localStorage 기억, 새로고침 없이 즉시) - _i18n.html 공용 include(ENG/한글 버튼 + 스크립트), 전 화면 상단 삽입 - UI 고정 문구는 사전 치환(제목/헤더/버튼/라벨/배지/옵션/안내) - 상품/콤보명은 data-en(영문, malaysia_items)·data-ko(itemcode_db 한글) 동시 렌더 - _base_ctx 에 ko_names(itemcode_db name_map) 주입 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
{% block content %}
|
||||
<section class="mys mys-compact">
|
||||
{% include "malaysia/_i18n.html" %}
|
||||
<div class="erp-page-actions">
|
||||
<a class="erp-btn erp-btn-primary" href="/malaysia/stocktakes?wh={{ stocktake.warehouse_code }}">◀◀ 조사 목록</a>
|
||||
</div>
|
||||
@@ -23,7 +24,7 @@
|
||||
|
||||
<!-- 좌: 정보 + 동작 -->
|
||||
<div class="erp-card">
|
||||
<div class="cpg-card-head"><h2>재고조사 #{{ stocktake.id }}</h2></div>
|
||||
<div class="cpg-card-head"><h2><span class="i18n">재고조사</span> #{{ stocktake.id }}</h2></div>
|
||||
<div style="margin-top:8px;display:flex;flex-direction:column;gap:6px;">
|
||||
<div><span class="erp-muted">날짜</span><br>{{ stocktake.stocktake_date }}</div>
|
||||
<div><span class="erp-muted">창고</span><br>{{ stocktake.warehouse_code }}</div>
|
||||
@@ -56,7 +57,7 @@
|
||||
{% for it in individual_items %}
|
||||
<tr>
|
||||
<td class="ccol">{{ it.item_code }}</td>
|
||||
<td class="nm">{{ it.item_name }}</td>
|
||||
<td class="nm" data-en="{{ it.item_name }}" data-ko="{{ ko_names.get(it.item_code, it.item_name) }}">{{ it.item_name }}</td>
|
||||
<td class="qcol"><input class="erp-input" type="number" min="0" name="qty_{{ it.item_code }}"
|
||||
value="{{ entered.get(it.item_code, '') }}" placeholder="—" {% if not is_draft %}disabled{% endif %} /></td>
|
||||
</tr>
|
||||
@@ -76,7 +77,7 @@
|
||||
{% for it in set_items %}
|
||||
<tr>
|
||||
<td class="ccol">{{ it.item_code }}</td>
|
||||
<td class="nm">{{ it.item_name }}</td>
|
||||
<td class="nm" data-en="{{ it.item_name }}" data-ko="{{ ko_names.get(it.item_code, it.item_name) }}">{{ it.item_name }}</td>
|
||||
<td class="qcol"><input class="erp-input" type="number" min="0" name="qty_{{ it.item_code }}"
|
||||
value="{{ entered.get(it.item_code, '') }}" placeholder="—" {% if not is_draft %}disabled{% endif %} /></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user