Commit ·
11b9b70
1
Parent(s): 60a0c9b
スタッフ一覧のポジション表示を「専任」なしに変更して時間帯と区別
Browse filesCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- templates/employees/index.html +1 -1
- utils/constants.py +3 -0
templates/employees/index.html
CHANGED
|
@@ -43,7 +43,7 @@
|
|
| 43 |
<div class="fw-semibold">{{ emp.name }}</div>
|
| 44 |
<div class="text-muted small">
|
| 45 |
{{ emp.employment_type.label() }} ·
|
| 46 |
-
{% if emp.primary_position %}{{ emp.primary_position.
|
| 47 |
{% if emp.primary_timeslot %}{{ emp.primary_timeslot.short_label() }}専任{% else %}どちらでも{% endif %}
|
| 48 |
</div>
|
| 49 |
</div>
|
|
|
|
| 43 |
<div class="fw-semibold">{{ emp.name }}</div>
|
| 44 |
<div class="text-muted small">
|
| 45 |
{{ emp.employment_type.label() }} ·
|
| 46 |
+
{% if emp.primary_position %}{{ emp.primary_position.short_label() }}{% else %}ポジション未設定{% endif %} ·
|
| 47 |
{% if emp.primary_timeslot %}{{ emp.primary_timeslot.short_label() }}専任{% else %}どちらでも{% endif %}
|
| 48 |
</div>
|
| 49 |
</div>
|
utils/constants.py
CHANGED
|
@@ -57,6 +57,9 @@ class PrimaryPosition(str, Enum):
|
|
| 57 |
def label(self):
|
| 58 |
return {"hall": "ホール専任", "kitchen": "キッチン専任"}[self.value]
|
| 59 |
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
# シフト制約定数
|
| 62 |
# min_leader: リーダー(最高習熟度)の最低配置人数
|
|
|
|
| 57 |
def label(self):
|
| 58 |
return {"hall": "ホール専任", "kitchen": "キッチン専任"}[self.value]
|
| 59 |
|
| 60 |
+
def short_label(self):
|
| 61 |
+
return {"hall": "ホール", "kitchen": "キッチン"}[self.value]
|
| 62 |
+
|
| 63 |
|
| 64 |
# シフト制約定数
|
| 65 |
# min_leader: リーダー(最高習熟度)の最低配置人数
|