diff --git a/app/modules/cupang/router.py b/app/modules/cupang/router.py index c562bd4..4d7f4d5 100644 --- a/app/modules/cupang/router.py +++ b/app/modules/cupang/router.py @@ -453,7 +453,6 @@ async def center_create( async def center_edit( request: Request, center_id: int, - name: str = Form(""), active: str = Form(""), sort_order: str = Form(""), user: dict[str, Any] = Depends(_require_user), @@ -461,9 +460,8 @@ async def center_edit( store = _store(request) if store is None: raise HTTPException(status_code=503, detail="cupang_db 미설정") + # 이름 변경은 지원하지 않는다(기존 출고 이력과 어긋날 수 있음). 활성/정렬만 수정. kwargs: dict[str, Any] = {"center_id": center_id} - if name.strip(): - kwargs["name"] = name if active != "": kwargs["active"] = active in ("1", "true", "on", "True") if sort_order.strip(): diff --git a/app/modules/cupang/templates/cupang/box_calc.html b/app/modules/cupang/templates/cupang/box_calc.html index cd03a6a..afe553c 100644 --- a/app/modules/cupang/templates/cupang/box_calc.html +++ b/app/modules/cupang/templates/cupang/box_calc.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/box_rules.html b/app/modules/cupang/templates/cupang/box_rules.html index 4f08c7a..a22f73a 100644 --- a/app/modules/cupang/templates/cupang/box_rules.html +++ b/app/modules/cupang/templates/cupang/box_rules.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/centers.html b/app/modules/cupang/templates/cupang/centers.html index adc9484..cc3c03c 100644 --- a/app/modules/cupang/templates/cupang/centers.html +++ b/app/modules/cupang/templates/cupang/centers.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
@@ -24,25 +24,25 @@

센터 목록 ({{ centers|length }})

- 이름을 고치면 저장, 쓰지 않는 센터는 비활성 또는 삭제. + 쓰지 않는 센터는 비활성 또는 삭제. 이름 변경은 지원하지 않음 — 새로 등록.
{% for c in centers %} -
+
- - - - - + {{ c.name }} +
+ + +
+
+ +
+
{% endfor %}
diff --git a/app/modules/cupang/templates/cupang/detail.html b/app/modules/cupang/templates/cupang/detail.html index 073a871..3a8b017 100644 --- a/app/modules/cupang/templates/cupang/detail.html +++ b/app/modules/cupang/templates/cupang/detail.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/form.html b/app/modules/cupang/templates/cupang/form.html index 40e1455..2320854 100644 --- a/app/modules/cupang/templates/cupang/form.html +++ b/app/modules/cupang/templates/cupang/form.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/index.html b/app/modules/cupang/templates/cupang/index.html index 8f2b3a7..6676185 100644 --- a/app/modules/cupang/templates/cupang/index.html +++ b/app/modules/cupang/templates/cupang/index.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/modules/cupang/templates/cupang/products.html b/app/modules/cupang/templates/cupang/products.html index c010525..419a5f9 100644 --- a/app/modules/cupang/templates/cupang/products.html +++ b/app/modules/cupang/templates/cupang/products.html @@ -1,6 +1,6 @@ {% extends "erp_base.html" %} -{% block head_extra %}{% endblock %} +{% block head_extra %}{% endblock %} {% block content %}
diff --git a/app/static/cupang.css b/app/static/cupang.css index 2b359b4..e181716 100644 --- a/app/static/cupang.css +++ b/app/static/cupang.css @@ -184,7 +184,7 @@ .cpg-center-grid { display: grid; - grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); + grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; max-height: 70vh; overflow-y: auto; padding-right: 4px; @@ -192,7 +192,7 @@ .cpg-center-row { display: flex; align-items: center; gap: 6px; - margin: 0; padding: 5px 8px; + margin: 0; padding: 7px 10px; border: 1px solid var(--color-subtle-ash); border-radius: 10px; min-width: 0; } @@ -202,7 +202,11 @@ } .cpg-center-row.is-inactive { opacity: .55; } .cpg-center-row.is-inactive .cpg-center-dot { background: var(--color-subtle-ash); } -.cpg-center-name { flex: 1 1 auto; min-width: 0; } +.cpg-center-name { + flex: 1 1 auto; min-width: 0; + font-size: 14px; font-weight: 500; + overflow: hidden; text-overflow: ellipsis; white-space: nowrap; +} .cpg-btn-sm { padding: 3px 8px; font-size: 12px; flex: 0 0 auto; } /* ── 라인 테이블 ── */