Commit ·
4492eda
1
Parent(s): 81f34ca
フロントエンド全画面のテーマ(ライト/ダーク)適合化および視認性・コントラストの改善
Browse files- templates/base.html +18 -5
- templates/customers/history.html +2 -2
- templates/customers/index.html +9 -5
- templates/dashboard/index.html +6 -2
- templates/employees/form.html +25 -12
- templates/employees/index.html +4 -4
- templates/generate/index.html +11 -5
- templates/help/index.html +31 -27
- templates/schedule/index.html +19 -15
- templates/settings/index.html +9 -3
- templates/shifts/index.html +4 -4
- templates/shifts/input.html +81 -37
templates/base.html
CHANGED
|
@@ -222,6 +222,17 @@
|
|
| 222 |
}
|
| 223 |
.btn-loading { pointer-events: none; opacity: .75; }
|
| 224 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
/* ── ボトムナビ ───────────────────────────────────── */
|
| 226 |
.bottom-nav {
|
| 227 |
position: fixed; bottom: 0; left: 0; right: 0;
|
|
@@ -436,7 +447,7 @@
|
|
| 436 |
<i class="bi {{ icon }}"></i>
|
| 437 |
<div>
|
| 438 |
<div>{{ label }}</div>
|
| 439 |
-
<div style="font-size:.73rem;color:#
|
| 440 |
</div>
|
| 441 |
</a>
|
| 442 |
{% endfor %}
|
|
@@ -445,7 +456,7 @@
|
|
| 445 |
<i class="bi bi-moon-stars-fill theme-toggle-icon"></i>
|
| 446 |
<div>
|
| 447 |
<div class="theme-text">ダークモード</div>
|
| 448 |
-
<div style="font-size:.73rem;color:#
|
| 449 |
</div>
|
| 450 |
</a>
|
| 451 |
{% if auth_enabled %}
|
|
@@ -454,7 +465,7 @@
|
|
| 454 |
<i class="bi bi-box-arrow-right" style="color:#f87171"></i>
|
| 455 |
<div>
|
| 456 |
<div style="color:#f87171">ログアウト</div>
|
| 457 |
-
<div style="font-size:.73rem;color:#
|
| 458 |
</div>
|
| 459 |
</a>
|
| 460 |
{% endif %}
|
|
@@ -466,11 +477,11 @@
|
|
| 466 |
<!-- 未保存離脱ガードモーダル(全ページ共通) -->
|
| 467 |
<div class="modal fade" id="unsavedModal" tabindex="-1">
|
| 468 |
<div class="modal-dialog modal-dialog-centered modal-sm">
|
| 469 |
-
<div class="modal-content"
|
| 470 |
<div class="modal-body p-4 text-center">
|
| 471 |
<i class="bi bi-exclamation-triangle-fill text-warning d-block mb-2" style="font-size:2.2rem"></i>
|
| 472 |
<div class="fw-semibold mb-1">未保存の変更があります</div>
|
| 473 |
-
<div
|
| 474 |
<div class="d-flex gap-2">
|
| 475 |
<button class="btn btn-secondary flex-grow-1" data-bs-dismiss="modal">戻る</button>
|
| 476 |
<button class="btn btn-danger flex-grow-1" id="unsaved-proceed-btn">移動する</button>
|
|
@@ -502,6 +513,7 @@
|
|
| 502 |
const systemDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
| 503 |
const initialTheme = savedTheme || (systemDark ? 'dark' : 'light');
|
| 504 |
document.documentElement.setAttribute('data-theme', initialTheme);
|
|
|
|
| 505 |
|
| 506 |
window.addEventListener('DOMContentLoaded', () => {
|
| 507 |
updateThemeUI(initialTheme);
|
|
@@ -511,6 +523,7 @@
|
|
| 511 |
const current = document.documentElement.getAttribute('data-theme');
|
| 512 |
const next = current === 'dark' ? 'light' : 'dark';
|
| 513 |
document.documentElement.setAttribute('data-theme', next);
|
|
|
|
| 514 |
localStorage.setItem('theme', next);
|
| 515 |
updateThemeUI(next);
|
| 516 |
};
|
|
|
|
| 222 |
}
|
| 223 |
.btn-loading { pointer-events: none; opacity: .75; }
|
| 224 |
|
| 225 |
+
/* ── モーダル ─────────────────────────────────────── */
|
| 226 |
+
.modal-content {
|
| 227 |
+
background: var(--bg-card);
|
| 228 |
+
backdrop-filter: blur(20px);
|
| 229 |
+
-webkit-backdrop-filter: blur(20px);
|
| 230 |
+
color: var(--text);
|
| 231 |
+
border: 1.5px solid var(--border);
|
| 232 |
+
border-radius: var(--radius-lg) !important;
|
| 233 |
+
box-shadow: var(--shadow-lg);
|
| 234 |
+
}
|
| 235 |
+
|
| 236 |
/* ── ボトムナビ ───────────────────────────────────── */
|
| 237 |
.bottom-nav {
|
| 238 |
position: fixed; bottom: 0; left: 0; right: 0;
|
|
|
|
| 447 |
<i class="bi {{ icon }}"></i>
|
| 448 |
<div>
|
| 449 |
<div>{{ label }}</div>
|
| 450 |
+
<div style="font-size:.73rem;color:#94a3b8;font-weight:400;margin-top:1px">{{ desc }}</div>
|
| 451 |
</div>
|
| 452 |
</a>
|
| 453 |
{% endfor %}
|
|
|
|
| 456 |
<i class="bi bi-moon-stars-fill theme-toggle-icon"></i>
|
| 457 |
<div>
|
| 458 |
<div class="theme-text">ダークモード</div>
|
| 459 |
+
<div style="font-size:.73rem;color:#94a3b8;font-weight:400;margin-top:1px">外観テーマの切り替え</div>
|
| 460 |
</div>
|
| 461 |
</a>
|
| 462 |
{% if auth_enabled %}
|
|
|
|
| 465 |
<i class="bi bi-box-arrow-right" style="color:#f87171"></i>
|
| 466 |
<div>
|
| 467 |
<div style="color:#f87171">ログアウト</div>
|
| 468 |
+
<div style="font-size:.73rem;color:#94a3b8;font-weight:400;margin-top:1px">アクセスを終了する</div>
|
| 469 |
</div>
|
| 470 |
</a>
|
| 471 |
{% endif %}
|
|
|
|
| 477 |
<!-- 未保存離脱ガードモーダル(全ページ共通) -->
|
| 478 |
<div class="modal fade" id="unsavedModal" tabindex="-1">
|
| 479 |
<div class="modal-dialog modal-dialog-centered modal-sm">
|
| 480 |
+
<div class="modal-content">
|
| 481 |
<div class="modal-body p-4 text-center">
|
| 482 |
<i class="bi bi-exclamation-triangle-fill text-warning d-block mb-2" style="font-size:2.2rem"></i>
|
| 483 |
<div class="fw-semibold mb-1">未保存の変更があります</div>
|
| 484 |
+
<div class="text-muted small mb-3">保存せずに移動しますか?</div>
|
| 485 |
<div class="d-flex gap-2">
|
| 486 |
<button class="btn btn-secondary flex-grow-1" data-bs-dismiss="modal">戻る</button>
|
| 487 |
<button class="btn btn-danger flex-grow-1" id="unsaved-proceed-btn">移動する</button>
|
|
|
|
| 513 |
const systemDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
|
| 514 |
const initialTheme = savedTheme || (systemDark ? 'dark' : 'light');
|
| 515 |
document.documentElement.setAttribute('data-theme', initialTheme);
|
| 516 |
+
document.documentElement.setAttribute('data-bs-theme', initialTheme);
|
| 517 |
|
| 518 |
window.addEventListener('DOMContentLoaded', () => {
|
| 519 |
updateThemeUI(initialTheme);
|
|
|
|
| 523 |
const current = document.documentElement.getAttribute('data-theme');
|
| 524 |
const next = current === 'dark' ? 'light' : 'dark';
|
| 525 |
document.documentElement.setAttribute('data-theme', next);
|
| 526 |
+
document.documentElement.setAttribute('data-bs-theme', next);
|
| 527 |
localStorage.setItem('theme', next);
|
| 528 |
updateThemeUI(next);
|
| 529 |
};
|
templates/customers/history.html
CHANGED
|
@@ -16,9 +16,9 @@
|
|
| 16 |
<div class="content">
|
| 17 |
|
| 18 |
<div class="d-flex align-items-start gap-2 mb-3 p-3 rounded-3"
|
| 19 |
-
style="background:
|
| 20 |
<i class="bi bi-info-circle text-info mt-1" style="flex-shrink:0"></i>
|
| 21 |
-
<div style="font-size:.85rem;color:
|
| 22 |
運用開始前の紙の集計表などにある客数実績を入力すると、客数予測(β)の精度向上に利用されます。<br>
|
| 23 |
Excelなどで「朝食・ディナー」の2列を選択してコピーし、入力したい開始日の朝食欄をクリックして貼り付けると、複数日分をまとめて入力できます。
|
| 24 |
</div>
|
|
|
|
| 16 |
<div class="content">
|
| 17 |
|
| 18 |
<div class="d-flex align-items-start gap-2 mb-3 p-3 rounded-3"
|
| 19 |
+
style="background:var(--bg-card);border:1px solid var(--border);border-left:4px solid #38bdf8">
|
| 20 |
<i class="bi bi-info-circle text-info mt-1" style="flex-shrink:0"></i>
|
| 21 |
+
<div style="font-size:.85rem;color:var(--text);line-height:1.6">
|
| 22 |
運用開始前の紙の集計表などにある客数実績を入力すると、客数予測(β)の精度向上に利用されます。<br>
|
| 23 |
Excelなどで「朝食・ディナー」の2列を選択してコピーし、入力したい開始日の朝食欄をクリックして貼り付けると、複数日分をまとめて入力できます。
|
| 24 |
</div>
|
templates/customers/index.html
CHANGED
|
@@ -19,9 +19,9 @@
|
|
| 19 |
|
| 20 |
{% if needs_regen %}
|
| 21 |
<div class="d-flex align-items-start gap-2 mb-3 p-3 rounded-3"
|
| 22 |
-
style="background:
|
| 23 |
<i class="bi bi-arrow-repeat text-warning mt-1" style="flex-shrink:0"></i>
|
| 24 |
-
<div style="font-size:.85rem;color:
|
| 25 |
客数が更新されています。<br>
|
| 26 |
<strong style="color:#fbbf24">生成済みのシフトへの反映には再生成が必要です。</strong>
|
| 27 |
<a href="{{ url_for('generate.index') }}" class="btn btn-warning btn-sm ms-2 py-0 px-2"
|
|
@@ -47,9 +47,9 @@
|
|
| 47 |
|
| 48 |
{% if forecast_enabled %}
|
| 49 |
<div class="d-flex align-items-start gap-2 mb-3 p-3 rounded-3"
|
| 50 |
-
style="background:
|
| 51 |
<i class="bi bi-graph-up-arrow text-info mt-1" style="flex-shrink:0"></i>
|
| 52 |
-
<div style="font-size:.85rem;color:
|
| 53 |
未入力の日には客数予測(β)を表示しています。<br>
|
| 54 |
<button type="button" class="btn btn-info btn-sm mt-1" onclick="applyForecast()">
|
| 55 |
<i class="bi bi-magic me-1"></i>予測値を未入力欄に反映
|
|
@@ -154,7 +154,11 @@
|
|
| 154 |
<script>
|
| 155 |
function colorCell(input, threshold) {
|
| 156 |
const v = parseInt(input.value) || 0;
|
| 157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
const badge = input.parentElement.querySelector('.badge');
|
| 159 |
if (badge) {
|
| 160 |
badge.className = 'badge badge-sm ' + (v >= threshold ? 'bg-danger' : 'bg-success');
|
|
|
|
| 19 |
|
| 20 |
{% if needs_regen %}
|
| 21 |
<div class="d-flex align-items-start gap-2 mb-3 p-3 rounded-3"
|
| 22 |
+
style="background:var(--bg-card);border:1px solid var(--border);border-left:4px solid #f59e0b">
|
| 23 |
<i class="bi bi-arrow-repeat text-warning mt-1" style="flex-shrink:0"></i>
|
| 24 |
+
<div style="font-size:.85rem;color:var(--text);line-height:1.6">
|
| 25 |
客数が更新されています。<br>
|
| 26 |
<strong style="color:#fbbf24">生成済みのシフトへの反映には再生成が必要です。</strong>
|
| 27 |
<a href="{{ url_for('generate.index') }}" class="btn btn-warning btn-sm ms-2 py-0 px-2"
|
|
|
|
| 47 |
|
| 48 |
{% if forecast_enabled %}
|
| 49 |
<div class="d-flex align-items-start gap-2 mb-3 p-3 rounded-3"
|
| 50 |
+
style="background:var(--bg-card);border:1px solid var(--border);border-left:4px solid #38bdf8">
|
| 51 |
<i class="bi bi-graph-up-arrow text-info mt-1" style="flex-shrink:0"></i>
|
| 52 |
+
<div style="font-size:.85rem;color:var(--text);line-height:1.6;flex:1">
|
| 53 |
未入力の日には客数予測(β)を表示しています。<br>
|
| 54 |
<button type="button" class="btn btn-info btn-sm mt-1" onclick="applyForecast()">
|
| 55 |
<i class="bi bi-magic me-1"></i>予測値を未入力欄に反映
|
|
|
|
| 154 |
<script>
|
| 155 |
function colorCell(input, threshold) {
|
| 156 |
const v = parseInt(input.value) || 0;
|
| 157 |
+
const isDark = document.documentElement.getAttribute('data-theme') === 'dark';
|
| 158 |
+
const alertBg = isDark ? 'rgba(239, 68, 68, 0.25)' : '#fee2e2';
|
| 159 |
+
const alertColor = isDark ? '#f87171' : '';
|
| 160 |
+
input.style.background = (threshold > 0 && v >= threshold) ? alertBg : '';
|
| 161 |
+
input.style.color = (threshold > 0 && v >= threshold && isDark) ? alertColor : '';
|
| 162 |
const badge = input.parentElement.querySelector('.badge');
|
| 163 |
if (badge) {
|
| 164 |
badge.className = 'badge badge-sm ' + (v >= threshold ? 'bg-danger' : 'bg-success');
|
templates/dashboard/index.html
CHANGED
|
@@ -187,7 +187,9 @@
|
|
| 187 |
.ah-red .ah-icon, .ah-red .ah-title { color: #ef4444; }
|
| 188 |
.ah-red .ah-count { background: rgba(239, 68, 68, 0.15); color: #f87171; }
|
| 189 |
.ah-amber .ah-icon, .ah-amber .ah-title { color: #f59e0b; }
|
| 190 |
-
.ah-amber .ah-count { background: rgba(245, 158, 11, 0.15);
|
|
|
|
|
|
|
| 191 |
.alert-chevron { color: var(--text-muted); font-size: .75rem; transition: transform .2s; }
|
| 192 |
.alert-chevron.open { transform: rotate(180deg); }
|
| 193 |
.alert-body {
|
|
@@ -201,8 +203,10 @@
|
|
| 201 |
}
|
| 202 |
.day-chip {
|
| 203 |
background: rgba(245, 158, 11, 0.12); border-radius: 4px;
|
| 204 |
-
padding: 3px 8px; font-size: .78rem;
|
| 205 |
}
|
|
|
|
|
|
|
| 206 |
</style>
|
| 207 |
{% endblock %}
|
| 208 |
|
|
|
|
| 187 |
.ah-red .ah-icon, .ah-red .ah-title { color: #ef4444; }
|
| 188 |
.ah-red .ah-count { background: rgba(239, 68, 68, 0.15); color: #f87171; }
|
| 189 |
.ah-amber .ah-icon, .ah-amber .ah-title { color: #f59e0b; }
|
| 190 |
+
.ah-amber .ah-count { background: rgba(245, 158, 11, 0.15); }
|
| 191 |
+
[data-theme="light"] .ah-amber .ah-count { color: #b45309; }
|
| 192 |
+
[data-theme="dark"] .ah-amber .ah-count { color: #fbbf24; }
|
| 193 |
.alert-chevron { color: var(--text-muted); font-size: .75rem; transition: transform .2s; }
|
| 194 |
.alert-chevron.open { transform: rotate(180deg); }
|
| 195 |
.alert-body {
|
|
|
|
| 203 |
}
|
| 204 |
.day-chip {
|
| 205 |
background: rgba(245, 158, 11, 0.12); border-radius: 4px;
|
| 206 |
+
padding: 3px 8px; font-size: .78rem; font-weight: 600;
|
| 207 |
}
|
| 208 |
+
[data-theme="light"] .day-chip { color: #b45309; }
|
| 209 |
+
[data-theme="dark"] .day-chip { color: #fbbf24; }
|
| 210 |
</style>
|
| 211 |
{% endblock %}
|
| 212 |
|
templates/employees/form.html
CHANGED
|
@@ -6,28 +6,41 @@
|
|
| 6 |
.help-btn {
|
| 7 |
display: inline-flex; align-items: center; justify-content: center;
|
| 8 |
width: 18px; height: 18px; border-radius: 50%;
|
| 9 |
-
background:
|
|
|
|
| 10 |
font-size: .68rem; font-weight: 700;
|
| 11 |
-
border: 1px solid
|
|
|
|
| 12 |
vertical-align: middle; margin-left: 5px;
|
| 13 |
flex-shrink: 0; line-height: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
}
|
| 15 |
-
.help-btn:hover { background: #bae6fd; }
|
| 16 |
.popover { max-width: 280px; font-size: .82rem; }
|
| 17 |
.popover-header { font-size: .85rem; font-weight: 600; }
|
| 18 |
-
|
| 19 |
-
<style>
|
| 20 |
.pos-btn {
|
| 21 |
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
| 22 |
-
padding: .7rem .5rem; border: 1.5px solid
|
| 23 |
border-radius: 10px; cursor: pointer; font-size: .85rem; font-weight: 500;
|
| 24 |
-
color:
|
| 25 |
-
background:
|
| 26 |
}
|
| 27 |
-
.pos-btn:hover { border-color:
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
.pos-btn.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 31 |
@media (max-width: 767px) {
|
| 32 |
.pos-btn { padding: .4rem .25rem; min-height: 60px; font-size: .78rem; }
|
| 33 |
.pos-btn i { font-size: 1.1rem !important; }
|
|
|
|
| 6 |
.help-btn {
|
| 7 |
display: inline-flex; align-items: center; justify-content: center;
|
| 8 |
width: 18px; height: 18px; border-radius: 50%;
|
| 9 |
+
background: rgba(14, 165, 233, 0.12);
|
| 10 |
+
color: var(--accent);
|
| 11 |
font-size: .68rem; font-weight: 700;
|
| 12 |
+
border: 1px solid rgba(14, 165, 233, 0.3);
|
| 13 |
+
cursor: pointer;
|
| 14 |
vertical-align: middle; margin-left: 5px;
|
| 15 |
flex-shrink: 0; line-height: 1;
|
| 16 |
+
transition: all var(--transition);
|
| 17 |
+
}
|
| 18 |
+
.help-btn:hover {
|
| 19 |
+
background: rgba(14, 165, 233, 0.22);
|
| 20 |
+
border-color: rgba(14, 165, 233, 0.45);
|
| 21 |
}
|
|
|
|
| 22 |
.popover { max-width: 280px; font-size: .82rem; }
|
| 23 |
.popover-header { font-size: .85rem; font-weight: 600; }
|
| 24 |
+
|
|
|
|
| 25 |
.pos-btn {
|
| 26 |
display: flex; flex-direction: column; align-items: center; justify-content: center;
|
| 27 |
+
padding: .7rem .5rem; border: 1.5px solid var(--border);
|
| 28 |
border-radius: 10px; cursor: pointer; font-size: .85rem; font-weight: 500;
|
| 29 |
+
color: var(--text-muted); transition: all var(--transition); user-select: none;
|
| 30 |
+
background: var(--bg-card); min-height: 70px;
|
| 31 |
}
|
| 32 |
+
.pos-btn:hover { border-color: var(--text-muted); color: var(--text); background: rgba(148, 163, 184, 0.08); }
|
| 33 |
+
|
| 34 |
+
/* ライトテーマ用の選択状態 */
|
| 35 |
+
[data-theme="light"] .pos-btn.selected { border-color: #0ea5e9; background: #f0f9ff; color: #0284c7; font-weight: 600; }
|
| 36 |
+
[data-theme="light"] .pos-btn.pos-hall.selected { border-color: #1d4ed8; background: #eff6ff; color: #1d4ed8; }
|
| 37 |
+
[data-theme="light"] .pos-btn.pos-kitchen.selected { border-color: #15803d; background: #f0fdf4; color: #15803d; }
|
| 38 |
+
|
| 39 |
+
/* ダークテーマ用の選択状態 */
|
| 40 |
+
[data-theme="dark"] .pos-btn.selected { border-color: var(--accent); background: rgba(56, 189, 248, 0.12); color: var(--accent); font-weight: 600; }
|
| 41 |
+
[data-theme="dark"] .pos-btn.pos-hall.selected { border-color: #60a5fa; background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
|
| 42 |
+
[data-theme="dark"] .pos-btn.pos-kitchen.selected { border-color: #4ade80; background: rgba(74, 222, 128, 0.12); color: #4ade80; }
|
| 43 |
+
|
| 44 |
@media (max-width: 767px) {
|
| 45 |
.pos-btn { padding: .4rem .25rem; min-height: 60px; font-size: .78rem; }
|
| 46 |
.pos-btn i { font-size: 1.1rem !important; }
|
templates/employees/index.html
CHANGED
|
@@ -97,11 +97,11 @@
|
|
| 97 |
<!-- 完全削除確認モーダル -->
|
| 98 |
<div class="modal fade" id="purgeModal" tabindex="-1">
|
| 99 |
<div class="modal-dialog modal-dialog-centered modal-sm">
|
| 100 |
-
<div class="modal-content"
|
| 101 |
<div class="modal-body p-4 text-center">
|
| 102 |
<i class="bi bi-trash-fill text-danger d-block mb-2" style="font-size:2.2rem"></i>
|
| 103 |
<div class="fw-semibold mb-1" id="purge-emp-name" style="font-size:1rem"></div>
|
| 104 |
-
<div style="color:
|
| 105 |
を完全に削除しますか?<br><span class="text-danger fw-semibold">この操作は取り消せません。</span>
|
| 106 |
</div>
|
| 107 |
<div class="d-flex gap-2">
|
|
@@ -120,11 +120,11 @@
|
|
| 120 |
<!-- アーカイブ確認モーダル -->
|
| 121 |
<div class="modal fade" id="archiveModal" tabindex="-1">
|
| 122 |
<div class="modal-dialog modal-dialog-centered modal-sm">
|
| 123 |
-
<div class="modal-content"
|
| 124 |
<div class="modal-body p-4 text-center">
|
| 125 |
<i class="bi bi-archive-fill text-warning d-block mb-2" style="font-size:2.2rem"></i>
|
| 126 |
<div class="fw-semibold mb-1" id="archive-emp-name" style="font-size:1rem"></div>
|
| 127 |
-
<div style="color:
|
| 128 |
をアーカイブしますか?<br>後から復元できます。
|
| 129 |
</div>
|
| 130 |
<div class="d-flex gap-2">
|
|
|
|
| 97 |
<!-- 完全削除確認モーダル -->
|
| 98 |
<div class="modal fade" id="purgeModal" tabindex="-1">
|
| 99 |
<div class="modal-dialog modal-dialog-centered modal-sm">
|
| 100 |
+
<div class="modal-content">
|
| 101 |
<div class="modal-body p-4 text-center">
|
| 102 |
<i class="bi bi-trash-fill text-danger d-block mb-2" style="font-size:2.2rem"></i>
|
| 103 |
<div class="fw-semibold mb-1" id="purge-emp-name" style="font-size:1rem"></div>
|
| 104 |
+
<div style="color:var(--text-muted);font-size:.85rem;margin-bottom:1.25rem">
|
| 105 |
を完全に削除しますか?<br><span class="text-danger fw-semibold">この操作は取り消せません。</span>
|
| 106 |
</div>
|
| 107 |
<div class="d-flex gap-2">
|
|
|
|
| 120 |
<!-- アーカイブ確認モーダル -->
|
| 121 |
<div class="modal fade" id="archiveModal" tabindex="-1">
|
| 122 |
<div class="modal-dialog modal-dialog-centered modal-sm">
|
| 123 |
+
<div class="modal-content">
|
| 124 |
<div class="modal-body p-4 text-center">
|
| 125 |
<i class="bi bi-archive-fill text-warning d-block mb-2" style="font-size:2.2rem"></i>
|
| 126 |
<div class="fw-semibold mb-1" id="archive-emp-name" style="font-size:1rem"></div>
|
| 127 |
+
<div style="color:var(--text-muted);font-size:.85rem;margin-bottom:1.25rem">
|
| 128 |
をアーカイブしますか?<br>後から復元できます。
|
| 129 |
</div>
|
| 130 |
<div class="d-flex gap-2">
|
templates/generate/index.html
CHANGED
|
@@ -5,13 +5,19 @@
|
|
| 5 |
.help-btn {
|
| 6 |
display: inline-flex; align-items: center; justify-content: center;
|
| 7 |
width: 18px; height: 18px; border-radius: 50%;
|
| 8 |
-
background:
|
|
|
|
| 9 |
font-size: .68rem; font-weight: 700;
|
| 10 |
-
border: 1px solid
|
|
|
|
| 11 |
vertical-align: middle; margin-left: 5px;
|
| 12 |
flex-shrink: 0; line-height: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
-
.help-btn:hover { background: #bae6fd; }
|
| 15 |
/* ポップオーバーのスタイル調整 */
|
| 16 |
.popover { max-width: 280px; font-size: .82rem; }
|
| 17 |
.popover-header { font-size: .85rem; font-weight: 600; }
|
|
@@ -154,7 +160,7 @@ function applyChecklist(pid, d) {
|
|
| 154 |
: 'bi bi-exclamation-circle-fill text-danger';
|
| 155 |
rEl.querySelector('span').textContent =
|
| 156 |
`希望シフト入力:${d.filled} / ${d.total} 人`;
|
| 157 |
-
rEl.querySelector('span').
|
| 158 |
|
| 159 |
// 客数
|
| 160 |
const cEl = document.getElementById('chk-counts');
|
|
@@ -165,7 +171,7 @@ function applyChecklist(pid, d) {
|
|
| 165 |
cEl.querySelector('span').textContent = ok2
|
| 166 |
? '予約客数:入力済み'
|
| 167 |
: '予約客数:未入力(増員判定が無効になります)';
|
| 168 |
-
cEl.querySelector('span').
|
| 169 |
}
|
| 170 |
|
| 171 |
function updateChecklist(pid) {
|
|
|
|
| 5 |
.help-btn {
|
| 6 |
display: inline-flex; align-items: center; justify-content: center;
|
| 7 |
width: 18px; height: 18px; border-radius: 50%;
|
| 8 |
+
background: rgba(14, 165, 233, 0.12);
|
| 9 |
+
color: var(--accent);
|
| 10 |
font-size: .68rem; font-weight: 700;
|
| 11 |
+
border: 1px solid rgba(14, 165, 233, 0.3);
|
| 12 |
+
cursor: pointer;
|
| 13 |
vertical-align: middle; margin-left: 5px;
|
| 14 |
flex-shrink: 0; line-height: 1;
|
| 15 |
+
transition: all var(--transition);
|
| 16 |
+
}
|
| 17 |
+
.help-btn:hover {
|
| 18 |
+
background: rgba(14, 165, 233, 0.22);
|
| 19 |
+
border-color: rgba(14, 165, 233, 0.45);
|
| 20 |
}
|
|
|
|
| 21 |
/* ポップオーバーのスタイル調整 */
|
| 22 |
.popover { max-width: 280px; font-size: .82rem; }
|
| 23 |
.popover-header { font-size: .85rem; font-weight: 600; }
|
|
|
|
| 160 |
: 'bi bi-exclamation-circle-fill text-danger';
|
| 161 |
rEl.querySelector('span').textContent =
|
| 162 |
`希望シフト入力:${d.filled} / ${d.total} 人`;
|
| 163 |
+
rEl.querySelector('span').className = ok1 ? 'text-success' : 'text-danger';
|
| 164 |
|
| 165 |
// 客数
|
| 166 |
const cEl = document.getElementById('chk-counts');
|
|
|
|
| 171 |
cEl.querySelector('span').textContent = ok2
|
| 172 |
? '予約客数:入力済み'
|
| 173 |
: '予約客数:未入力(増員判定が無効になります)';
|
| 174 |
+
cEl.querySelector('span').className = ok2 ? 'text-success' : 'text-warning';
|
| 175 |
}
|
| 176 |
|
| 177 |
function updateChecklist(pid) {
|
templates/help/index.html
CHANGED
|
@@ -3,19 +3,20 @@
|
|
| 3 |
{% block head %}
|
| 4 |
<style>
|
| 5 |
.help-hero {
|
| 6 |
-
background:
|
| 7 |
-
color:
|
| 8 |
-
border-bottom: 1px solid
|
| 9 |
}
|
| 10 |
.help-hero .app-icon { font-size: 3rem; margin-bottom: .5rem; }
|
| 11 |
.help-hero h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 .25rem; }
|
| 12 |
-
.help-hero p { color:
|
| 13 |
|
| 14 |
.help-section { margin-bottom: 1rem; }
|
| 15 |
|
| 16 |
.help-card {
|
| 17 |
-
background:
|
| 18 |
-
|
|
|
|
| 19 |
}
|
| 20 |
.help-card-header {
|
| 21 |
display: flex; align-items: center; gap: .75rem;
|
|
@@ -23,53 +24,56 @@
|
|
| 23 |
border-bottom: 1px solid transparent;
|
| 24 |
transition: background .15s; user-select: none;
|
| 25 |
}
|
| 26 |
-
.help-card-header:hover { background:
|
| 27 |
-
.help-card-header.open { border-bottom-color:
|
| 28 |
.help-card-icon {
|
| 29 |
width: 36px; height: 36px; border-radius: 8px;
|
| 30 |
display: flex; align-items: center; justify-content: center;
|
| 31 |
font-size: 1.1rem; flex-shrink: 0;
|
| 32 |
}
|
| 33 |
.help-card-title { font-weight: 600; font-size: .95rem; flex-grow: 1; }
|
| 34 |
-
.help-card-chevron { color:
|
| 35 |
.help-card-chevron.open { transform: rotate(180deg); }
|
| 36 |
-
.help-card-body { padding: 1rem; display: none; font-size: .88rem; line-height: 1.7; }
|
| 37 |
.help-card-body.open { display: block; }
|
| 38 |
|
| 39 |
.step-list { list-style: none; padding: 0; margin: 0; }
|
| 40 |
.step-list li {
|
| 41 |
display: flex; gap: .75rem; padding: .5rem 0;
|
| 42 |
-
border-bottom: 1px solid
|
| 43 |
}
|
| 44 |
.step-list li:last-child { border-bottom: none; }
|
| 45 |
.step-num {
|
| 46 |
-
width: 22px; height: 22px; background:
|
| 47 |
border-radius: 50%; font-size: .72rem; font-weight: 700;
|
| 48 |
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
|
| 49 |
margin-top: 2px;
|
| 50 |
}
|
| 51 |
-
.
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
font-size: .82rem; color: #0c4a6e; margin-top: .75rem;
|
| 55 |
-
}
|
| 56 |
-
.warn-box {
|
| 57 |
-
background: #fffbeb; border-left: 3px solid #f59e0b;
|
| 58 |
-
border-radius: 0 8px 8px 0; padding: .6rem .85rem;
|
| 59 |
-
font-size: .82rem; color: #78350f; margin-top: .75rem;
|
| 60 |
-
}
|
| 61 |
-
.info-box {
|
| 62 |
-
background: #f0fdf4; border-left: 3px solid #22c55e;
|
| 63 |
border-radius: 0 8px 8px 0; padding: .6rem .85rem;
|
| 64 |
-
font-size: .82rem;
|
| 65 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
kbd {
|
| 67 |
-
background:
|
| 68 |
padding: 1px 6px; font-size: .78rem; font-family: monospace;
|
|
|
|
| 69 |
}
|
| 70 |
.sub-heading {
|
| 71 |
font-size: .72rem; font-weight: 700; letter-spacing: .05em;
|
| 72 |
-
text-transform: uppercase; color:
|
| 73 |
margin: 1rem 0 .5rem;
|
| 74 |
}
|
| 75 |
.sub-heading:first-child { margin-top: 0; }
|
|
|
|
| 3 |
{% block head %}
|
| 4 |
<style>
|
| 5 |
.help-hero {
|
| 6 |
+
background: var(--dark-card-bg);
|
| 7 |
+
color: var(--dark-card-text); padding: 2rem 1rem 1.5rem; text-align: center;
|
| 8 |
+
border-bottom: 1px solid var(--border);
|
| 9 |
}
|
| 10 |
.help-hero .app-icon { font-size: 3rem; margin-bottom: .5rem; }
|
| 11 |
.help-hero h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 .25rem; }
|
| 12 |
+
.help-hero p { color: var(--text-muted); font-size: .85rem; margin: 0; }
|
| 13 |
|
| 14 |
.help-section { margin-bottom: 1rem; }
|
| 15 |
|
| 16 |
.help-card {
|
| 17 |
+
background: var(--bg-card); border-radius: 12px;
|
| 18 |
+
border: 1px solid var(--border);
|
| 19 |
+
box-shadow: var(--shadow-sm); overflow: hidden;
|
| 20 |
}
|
| 21 |
.help-card-header {
|
| 22 |
display: flex; align-items: center; gap: .75rem;
|
|
|
|
| 24 |
border-bottom: 1px solid transparent;
|
| 25 |
transition: background .15s; user-select: none;
|
| 26 |
}
|
| 27 |
+
.help-card-header:hover { background: rgba(148, 163, 184, 0.08); }
|
| 28 |
+
.help-card-header.open { border-bottom-color: var(--border); }
|
| 29 |
.help-card-icon {
|
| 30 |
width: 36px; height: 36px; border-radius: 8px;
|
| 31 |
display: flex; align-items: center; justify-content: center;
|
| 32 |
font-size: 1.1rem; flex-shrink: 0;
|
| 33 |
}
|
| 34 |
.help-card-title { font-weight: 600; font-size: .95rem; flex-grow: 1; }
|
| 35 |
+
.help-card-chevron { color: var(--text-muted); font-size: .8rem; transition: transform .2s; }
|
| 36 |
.help-card-chevron.open { transform: rotate(180deg); }
|
| 37 |
+
.help-card-body { padding: 1rem; display: none; font-size: .88rem; line-height: 1.7; color: var(--text); }
|
| 38 |
.help-card-body.open { display: block; }
|
| 39 |
|
| 40 |
.step-list { list-style: none; padding: 0; margin: 0; }
|
| 41 |
.step-list li {
|
| 42 |
display: flex; gap: .75rem; padding: .5rem 0;
|
| 43 |
+
border-bottom: 1px solid var(--border);
|
| 44 |
}
|
| 45 |
.step-list li:last-child { border-bottom: none; }
|
| 46 |
.step-num {
|
| 47 |
+
width: 22px; height: 22px; background: var(--accent); color: #020617;
|
| 48 |
border-radius: 50%; font-size: .72rem; font-weight: 700;
|
| 49 |
display: flex; align-items: center; justify-content: center; flex-shrink: 0;
|
| 50 |
margin-top: 2px;
|
| 51 |
}
|
| 52 |
+
[data-theme="dark"] .step-num { color: #0f172a; }
|
| 53 |
+
|
| 54 |
+
.tip-box, .warn-box, .info-box {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
border-radius: 0 8px 8px 0; padding: .6rem .85rem;
|
| 56 |
+
font-size: .82rem; margin-top: .75rem;
|
| 57 |
}
|
| 58 |
+
|
| 59 |
+
/* tip-box / warn-box / info-box (ライトテーマ) */
|
| 60 |
+
[data-theme="light"] .tip-box { background: #f0f9ff; color: #0c4a6e; border-left: 3px solid #0ea5e9; }
|
| 61 |
+
[data-theme="light"] .warn-box { background: #fffbeb; color: #78350f; border-left: 3px solid #f59e0b; }
|
| 62 |
+
[data-theme="light"] .info-box { background: #f0fdf4; color: #14532d; border-left: 3px solid #22c55e; }
|
| 63 |
+
|
| 64 |
+
/* tip-box / warn-box / info-box (ダークテーマ) */
|
| 65 |
+
[data-theme="dark"] .tip-box { background: rgba(14, 165, 233, 0.12); color: #38bdf8; border-left: 3px solid #0ea5e9; }
|
| 66 |
+
[data-theme="dark"] .warn-box { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border-left: 3px solid #f59e0b; }
|
| 67 |
+
[data-theme="dark"] .info-box { background: rgba(34, 197, 94, 0.12); color: #4ade80; border-left: 3px solid #22c55e; }
|
| 68 |
+
|
| 69 |
kbd {
|
| 70 |
+
background: var(--bg-card); color: var(--text); border-radius: 4px;
|
| 71 |
padding: 1px 6px; font-size: .78rem; font-family: monospace;
|
| 72 |
+
border: 1px solid var(--border);
|
| 73 |
}
|
| 74 |
.sub-heading {
|
| 75 |
font-size: .72rem; font-weight: 700; letter-spacing: .05em;
|
| 76 |
+
text-transform: uppercase; color: var(--text-muted);
|
| 77 |
margin: 1rem 0 .5rem;
|
| 78 |
}
|
| 79 |
.sub-heading:first-child { margin-top: 0; }
|
templates/schedule/index.html
CHANGED
|
@@ -132,7 +132,9 @@
|
|
| 132 |
padding: 2px 6px; cursor: default; white-space: nowrap;
|
| 133 |
}
|
| 134 |
.chip-staff { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
|
| 135 |
-
.chip-leader { background: rgba(245, 158, 11, 0.15);
|
|
|
|
|
|
|
| 136 |
|
| 137 |
/* 土日・祝日ヘッダーの文字色 */
|
| 138 |
[data-theme="light"] .sched-grid thead th.sat { color: #1e40af !important; }
|
|
@@ -163,10 +165,12 @@
|
|
| 163 |
.ft-off { background-color: rgba(239, 68, 68, 0.25) !important; color: #ef4444 !important; }
|
| 164 |
/* スタッフ個別コメント表示 */
|
| 165 |
.cell-note-badge {
|
| 166 |
-
display: block; font-size: .6rem;
|
| 167 |
margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
| 168 |
max-width: 58px;
|
| 169 |
}
|
|
|
|
|
|
|
| 170 |
/* スタッフ名リンク */
|
| 171 |
.emp-name-link {
|
| 172 |
color: inherit; text-decoration: none; display: block;
|
|
@@ -329,10 +333,10 @@
|
|
| 329 |
{# ── 確定済みロックバナー ── #}
|
| 330 |
{% if period.status == 'confirmed' %}
|
| 331 |
<div class="d-flex align-items-start gap-2 mb-3 p-3 rounded-3"
|
| 332 |
-
style="background:
|
| 333 |
<i class="bi bi-lock-fill text-success mt-1" style="flex-shrink:0"></i>
|
| 334 |
-
<div style="font-size:.85rem;color:
|
| 335 |
-
このシフトは<strong style="color:#
|
| 336 |
変更するには「確定解除」ボタンを押してください。
|
| 337 |
</div>
|
| 338 |
</div>
|
|
@@ -341,10 +345,10 @@
|
|
| 341 |
{# ── 再生成推奨バナー ── #}
|
| 342 |
{% if needs_regen %}
|
| 343 |
<div class="d-flex align-items-start gap-2 mb-3 p-3 rounded-3"
|
| 344 |
-
style="background:
|
| 345 |
<i class="bi bi-arrow-repeat text-warning mt-1" style="flex-shrink:0"></i>
|
| 346 |
-
<div style="font-size:.85rem;color:
|
| 347 |
-
このシフトの生成後に<strong style="color:#
|
| 348 |
増員条件が変わっている可能性があります。
|
| 349 |
<a href="{{ url_for('generate.index') }}" class="btn btn-warning btn-sm ms-2 py-0 px-2"
|
| 350 |
style="font-size:.78rem">再生成する</a>
|
|
@@ -1151,13 +1155,13 @@ function editNote(el) {
|
|
| 1151 |
<!-- 確定確認ダイアログ -->
|
| 1152 |
<div class="modal fade" id="confirmDialog" tabindex="-1">
|
| 1153 |
<div class="modal-dialog modal-dialog-centered" style="max-width:360px">
|
| 1154 |
-
<div class="modal-content"
|
| 1155 |
-
<div class="modal-header
|
| 1156 |
<h6 class="modal-title"><i class="bi bi-check-circle me-2"></i>シフトを確定しますか?</h6>
|
| 1157 |
-
<button type="button" class="btn-close
|
| 1158 |
</div>
|
| 1159 |
<div class="modal-body px-3 py-3" id="confirm-dialog-body"></div>
|
| 1160 |
-
<div class="modal-footer border-
|
| 1161 |
<button type="button" class="btn btn-secondary btn-sm" data-bs-dismiss="modal">キャンセル</button>
|
| 1162 |
<button type="button" class="btn btn-success btn-sm" id="btn-do-confirm">
|
| 1163 |
<i class="bi bi-check-lg me-1"></i>確定する
|
|
@@ -1170,10 +1174,10 @@ function editNote(el) {
|
|
| 1170 |
<!-- 変更履歴モーダル -->
|
| 1171 |
<div class="modal fade" id="historyModal" tabindex="-1">
|
| 1172 |
<div class="modal-dialog modal-dialog-scrollable">
|
| 1173 |
-
<div class="modal-content"
|
| 1174 |
-
<div class="modal-header" style="border-color:
|
| 1175 |
<h6 class="modal-title"><i class="bi bi-clock-history me-2"></i>手動変更履歴(直近60件)</h6>
|
| 1176 |
-
<button type="button" class="btn-close
|
| 1177 |
</div>
|
| 1178 |
<div class="modal-body" id="historyBody" style="max-height:70vh"></div>
|
| 1179 |
</div>
|
|
|
|
| 132 |
padding: 2px 6px; cursor: default; white-space: nowrap;
|
| 133 |
}
|
| 134 |
.chip-staff { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
|
| 135 |
+
.chip-leader { background: rgba(245, 158, 11, 0.15); }
|
| 136 |
+
[data-theme="light"] .chip-leader { color: #b45309; }
|
| 137 |
+
[data-theme="dark"] .chip-leader { color: #fbbf24; }
|
| 138 |
|
| 139 |
/* 土日・祝日ヘッダーの文字色 */
|
| 140 |
[data-theme="light"] .sched-grid thead th.sat { color: #1e40af !important; }
|
|
|
|
| 165 |
.ft-off { background-color: rgba(239, 68, 68, 0.25) !important; color: #ef4444 !important; }
|
| 166 |
/* スタッフ個別コメント表示 */
|
| 167 |
.cell-note-badge {
|
| 168 |
+
display: block; font-size: .6rem; line-height: 1.2;
|
| 169 |
margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
|
| 170 |
max-width: 58px;
|
| 171 |
}
|
| 172 |
+
[data-theme="light"] .cell-note-badge { color: #b45309; }
|
| 173 |
+
[data-theme="dark"] .cell-note-badge { color: #fbbf24; }
|
| 174 |
/* スタッフ名リンク */
|
| 175 |
.emp-name-link {
|
| 176 |
color: inherit; text-decoration: none; display: block;
|
|
|
|
| 333 |
{# ── 確定済みロックバナー ── #}
|
| 334 |
{% if period.status == 'confirmed' %}
|
| 335 |
<div class="d-flex align-items-start gap-2 mb-3 p-3 rounded-3"
|
| 336 |
+
style="background:var(--bg-card);border:1px solid var(--border);border-left:4px solid #22c55e">
|
| 337 |
<i class="bi bi-lock-fill text-success mt-1" style="flex-shrink:0"></i>
|
| 338 |
+
<div style="font-size:.85rem;color:var(--text);line-height:1.6">
|
| 339 |
+
このシフトは<strong style="color:#22c55e">確定済み</strong>です。担当の追加・削除はロックされています。<br>
|
| 340 |
変更するには「確定解除」ボタンを押してください。
|
| 341 |
</div>
|
| 342 |
</div>
|
|
|
|
| 345 |
{# ── 再生成推奨バナー ── #}
|
| 346 |
{% if needs_regen %}
|
| 347 |
<div class="d-flex align-items-start gap-2 mb-3 p-3 rounded-3"
|
| 348 |
+
style="background:var(--bg-card);border:1px solid var(--border);border-left:4px solid #f59e0b">
|
| 349 |
<i class="bi bi-arrow-repeat text-warning mt-1" style="flex-shrink:0"></i>
|
| 350 |
+
<div style="font-size:.85rem;color:var(--text);line-height:1.6">
|
| 351 |
+
このシフトの生成後に<strong style="color:#f59e0b">予約客数が更新</strong>されました。<br>
|
| 352 |
増員条件が変わっている可能性があります。
|
| 353 |
<a href="{{ url_for('generate.index') }}" class="btn btn-warning btn-sm ms-2 py-0 px-2"
|
| 354 |
style="font-size:.78rem">再生成する</a>
|
|
|
|
| 1155 |
<!-- 確定確認ダイアログ -->
|
| 1156 |
<div class="modal fade" id="confirmDialog" tabindex="-1">
|
| 1157 |
<div class="modal-dialog modal-dialog-centered" style="max-width:360px">
|
| 1158 |
+
<div class="modal-content">
|
| 1159 |
+
<div class="modal-header py-2 px-3" style="border-color: var(--border) !important">
|
| 1160 |
<h6 class="modal-title"><i class="bi bi-check-circle me-2"></i>シフトを確定しますか?</h6>
|
| 1161 |
+
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
| 1162 |
</div>
|
| 1163 |
<div class="modal-body px-3 py-3" id="confirm-dialog-body"></div>
|
| 1164 |
+
<div class="modal-footer py-2" style="border-color: var(--border) !important">
|
| 1165 |
<button type="button" class="btn btn-secondary btn-sm" data-bs-dismiss="modal">キャンセル</button>
|
| 1166 |
<button type="button" class="btn btn-success btn-sm" id="btn-do-confirm">
|
| 1167 |
<i class="bi bi-check-lg me-1"></i>確定する
|
|
|
|
| 1174 |
<!-- 変更履歴モーダル -->
|
| 1175 |
<div class="modal fade" id="historyModal" tabindex="-1">
|
| 1176 |
<div class="modal-dialog modal-dialog-scrollable">
|
| 1177 |
+
<div class="modal-content">
|
| 1178 |
+
<div class="modal-header" style="border-color: var(--border) !important">
|
| 1179 |
<h6 class="modal-title"><i class="bi bi-clock-history me-2"></i>手動変更履歴(直近60件)</h6>
|
| 1180 |
+
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
| 1181 |
</div>
|
| 1182 |
<div class="modal-body" id="historyBody" style="max-height:70vh"></div>
|
| 1183 |
</div>
|
templates/settings/index.html
CHANGED
|
@@ -5,13 +5,19 @@
|
|
| 5 |
.help-btn {
|
| 6 |
display: inline-flex; align-items: center; justify-content: center;
|
| 7 |
width: 18px; height: 18px; border-radius: 50%;
|
| 8 |
-
background:
|
|
|
|
| 9 |
font-size: .68rem; font-weight: 700;
|
| 10 |
-
border: 1px solid
|
|
|
|
| 11 |
vertical-align: middle; margin-left: 5px;
|
| 12 |
flex-shrink: 0; line-height: 1;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
}
|
| 14 |
-
.help-btn:hover { background: #bae6fd; }
|
| 15 |
.popover { max-width: 280px; font-size: .82rem; }
|
| 16 |
.popover-header { font-size: .85rem; font-weight: 600; }
|
| 17 |
</style>
|
|
|
|
| 5 |
.help-btn {
|
| 6 |
display: inline-flex; align-items: center; justify-content: center;
|
| 7 |
width: 18px; height: 18px; border-radius: 50%;
|
| 8 |
+
background: rgba(14, 165, 233, 0.12);
|
| 9 |
+
color: var(--accent);
|
| 10 |
font-size: .68rem; font-weight: 700;
|
| 11 |
+
border: 1px solid rgba(14, 165, 233, 0.3);
|
| 12 |
+
cursor: pointer;
|
| 13 |
vertical-align: middle; margin-left: 5px;
|
| 14 |
flex-shrink: 0; line-height: 1;
|
| 15 |
+
transition: all var(--transition);
|
| 16 |
+
}
|
| 17 |
+
.help-btn:hover {
|
| 18 |
+
background: rgba(14, 165, 233, 0.22);
|
| 19 |
+
border-color: rgba(14, 165, 233, 0.45);
|
| 20 |
}
|
|
|
|
| 21 |
.popover { max-width: 280px; font-size: .82rem; }
|
| 22 |
.popover-header { font-size: .85rem; font-weight: 600; }
|
| 23 |
</style>
|
templates/shifts/index.html
CHANGED
|
@@ -87,10 +87,10 @@
|
|
| 87 |
<!-- 削除確認モーダル -->
|
| 88 |
<div class="modal fade" id="deleteModal" tabindex="-1">
|
| 89 |
<div class="modal-dialog modal-dialog-centered">
|
| 90 |
-
<div class="modal-content"
|
| 91 |
-
<div class="modal-header border-
|
| 92 |
<h5 class="modal-title"><i class="bi bi-exclamation-triangle text-warning me-2"></i>期間の削除</h5>
|
| 93 |
-
<button type="button" class="btn-close
|
| 94 |
</div>
|
| 95 |
<div class="modal-body">
|
| 96 |
<p id="deleteModalBody" class="mb-1"></p>
|
|
@@ -99,7 +99,7 @@
|
|
| 99 |
この期間の希望シフトデータもすべて削除されます。元に戻せません。
|
| 100 |
</p>
|
| 101 |
</div>
|
| 102 |
-
<div class="modal-footer border-
|
| 103 |
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">キャンセル</button>
|
| 104 |
<form id="deleteForm" method="post">
|
| 105 |
<button type="submit" class="btn btn-danger">
|
|
|
|
| 87 |
<!-- 削除確認モーダル -->
|
| 88 |
<div class="modal fade" id="deleteModal" tabindex="-1">
|
| 89 |
<div class="modal-dialog modal-dialog-centered">
|
| 90 |
+
<div class="modal-content">
|
| 91 |
+
<div class="modal-header" style="border-color: var(--border) !important">
|
| 92 |
<h5 class="modal-title"><i class="bi bi-exclamation-triangle text-warning me-2"></i>期間の削除</h5>
|
| 93 |
+
<button type="button" class="btn-close" data-bs-dismiss="modal"></button>
|
| 94 |
</div>
|
| 95 |
<div class="modal-body">
|
| 96 |
<p id="deleteModalBody" class="mb-1"></p>
|
|
|
|
| 99 |
この期間の希望シフトデータもすべて削除されます。元に戻せません。
|
| 100 |
</p>
|
| 101 |
</div>
|
| 102 |
+
<div class="modal-footer" style="border-color: var(--border) !important">
|
| 103 |
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">キャンセル</button>
|
| 104 |
<form id="deleteForm" method="post">
|
| 105 |
<button type="submit" class="btn btn-danger">
|
templates/shifts/input.html
CHANGED
|
@@ -17,14 +17,14 @@
|
|
| 17 |
flex-shrink: 0;
|
| 18 |
padding: 5px 12px;
|
| 19 |
border-radius: 20px;
|
| 20 |
-
border: 1.5px solid
|
| 21 |
font-size: .8rem;
|
| 22 |
cursor: pointer;
|
| 23 |
text-decoration: none;
|
| 24 |
-
color:
|
| 25 |
-
background:
|
| 26 |
white-space: nowrap;
|
| 27 |
-
transition:
|
| 28 |
}
|
| 29 |
.emp-chip.active {
|
| 30 |
background: #1e293b;
|
|
@@ -43,17 +43,39 @@
|
|
| 43 |
color: white;
|
| 44 |
}
|
| 45 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 46 |
/* ── 一括ボタン行 ──────────────────────────────────── */
|
| 47 |
.bulk-bar {
|
| 48 |
display: flex;
|
| 49 |
flex-wrap: wrap;
|
| 50 |
gap: 6px;
|
| 51 |
padding: 8px 12px;
|
| 52 |
-
border-top: 1px solid
|
| 53 |
-
border-bottom: 1px solid
|
| 54 |
-
background:
|
|
|
|
| 55 |
}
|
| 56 |
-
.bulk-bar .label { font-size: .75rem; color:
|
| 57 |
|
| 58 |
/* ── 日付行 ─────────────────────────────────────────── */
|
| 59 |
.day-row {
|
|
@@ -61,11 +83,15 @@
|
|
| 61 |
align-items: center;
|
| 62 |
gap: 8px;
|
| 63 |
padding: 5px 12px;
|
| 64 |
-
border-bottom: 1px solid
|
|
|
|
| 65 |
}
|
| 66 |
.day-row:last-of-type { border-bottom: none; }
|
| 67 |
-
|
| 68 |
-
.day-row.
|
|
|
|
|
|
|
|
|
|
| 69 |
|
| 70 |
.day-label {
|
| 71 |
width: 58px;
|
|
@@ -73,42 +99,59 @@
|
|
| 73 |
text-align: center;
|
| 74 |
line-height: 1.25;
|
| 75 |
}
|
| 76 |
-
.day-label .dt { font-size: .82rem; font-weight: 600; color:
|
| 77 |
-
.day-label .dw { font-size: .7rem; color:
|
| 78 |
-
|
| 79 |
-
.day-row.sat .day-label .
|
| 80 |
-
.day-row.
|
| 81 |
-
.day-row.sun .day-label .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
|
| 83 |
/* ── パターンボタン ───────────────────────────────── */
|
| 84 |
.pat-btn {
|
| 85 |
flex: 1;
|
| 86 |
padding: 9px 10px;
|
| 87 |
border-radius: 10px;
|
| 88 |
-
border: 1.5px solid
|
| 89 |
font-size: .82rem;
|
| 90 |
cursor: pointer;
|
| 91 |
text-align: left;
|
| 92 |
user-select: none;
|
| 93 |
-webkit-user-select: none;
|
| 94 |
-
transition: filter .1s;
|
| 95 |
line-height: 1.3;
|
| 96 |
min-height: 42px;
|
| 97 |
-
background:
|
| 98 |
-
color:
|
| 99 |
}
|
| 100 |
.pat-btn:active { filter: brightness(.88); }
|
| 101 |
|
| 102 |
-
/* パターンカテゴリ別カラー */
|
| 103 |
-
.pat-work { background: #dcfce7; color: #166534; border-color: #86efac; }
|
| 104 |
-
.pat-ofr { background: #fecaca; color: #991b1b; border-color: #f87171; }
|
| 105 |
-
.pat-leave{ background: #fef9c3; color: #854d0e; border-color: #fde047; }
|
| 106 |
-
.pat-am { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
|
| 107 |
-
.pat-pm { background: #fed7aa; color: #c2410c; border-color: #fb923c; }
|
| 108 |
-
.pat-b { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
|
| 109 |
-
.pat-d { background: #fed7aa; color: #c2410c; border-color: #fb923c; }
|
| 110 |
-
.pat-db { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
|
| 111 |
-
.pat-cust { background: #fef9c3; color: #854d0e; border-color: #fde047; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
|
| 113 |
/* 展開ボタン */
|
| 114 |
.pat-expand {
|
|
@@ -116,11 +159,11 @@
|
|
| 116 |
padding: 6px 8px;
|
| 117 |
border: none;
|
| 118 |
background: none;
|
| 119 |
-
color:
|
| 120 |
cursor: pointer;
|
| 121 |
font-size: .7rem;
|
| 122 |
}
|
| 123 |
-
.pat-expand:hover { color:
|
| 124 |
|
| 125 |
/* ピッカー */
|
| 126 |
.pat-picker {
|
|
@@ -141,10 +184,11 @@
|
|
| 141 |
.save-bar {
|
| 142 |
position: sticky;
|
| 143 |
bottom: 0;
|
| 144 |
-
background:
|
| 145 |
padding: 10px 12px;
|
| 146 |
-
border-top: 1px solid
|
| 147 |
z-index: 10;
|
|
|
|
| 148 |
}
|
| 149 |
</style>
|
| 150 |
{% endblock %}
|
|
@@ -331,11 +375,11 @@
|
|
| 331 |
<!-- 全休確認モーダル -->
|
| 332 |
<div class="modal fade" id="allOffModal" tabindex="-1">
|
| 333 |
<div class="modal-dialog modal-dialog-centered modal-sm">
|
| 334 |
-
<div class="modal-content"
|
| 335 |
<div class="modal-body p-4 text-center">
|
| 336 |
<i class="bi bi-question-circle-fill text-warning d-block mb-2" style="font-size:2.2rem"></i>
|
| 337 |
<div class="fw-semibold mb-1">全て休みで保存しますか?</div>
|
| 338 |
-
<div style="color:
|
| 339 |
<div class="d-flex gap-2">
|
| 340 |
<button class="btn btn-secondary flex-grow-1" data-bs-dismiss="modal">戻る</button>
|
| 341 |
<button type="button" class="btn btn-warning flex-grow-1" id="all-off-proceed-btn">保存する</button>
|
|
|
|
| 17 |
flex-shrink: 0;
|
| 18 |
padding: 5px 12px;
|
| 19 |
border-radius: 20px;
|
| 20 |
+
border: 1.5px solid var(--border);
|
| 21 |
font-size: .8rem;
|
| 22 |
cursor: pointer;
|
| 23 |
text-decoration: none;
|
| 24 |
+
color: var(--text-muted);
|
| 25 |
+
background: var(--bg-card);
|
| 26 |
white-space: nowrap;
|
| 27 |
+
transition: all var(--transition);
|
| 28 |
}
|
| 29 |
.emp-chip.active {
|
| 30 |
background: #1e293b;
|
|
|
|
| 43 |
color: white;
|
| 44 |
}
|
| 45 |
|
| 46 |
+
[data-theme="dark"] .emp-chip {
|
| 47 |
+
background: rgba(255, 255, 255, 0.05);
|
| 48 |
+
color: #94a3b8;
|
| 49 |
+
border-color: rgba(255, 255, 255, 0.1);
|
| 50 |
+
}
|
| 51 |
+
[data-theme="dark"] .emp-chip.active {
|
| 52 |
+
background: var(--accent);
|
| 53 |
+
color: #0f172a;
|
| 54 |
+
border-color: var(--accent);
|
| 55 |
+
}
|
| 56 |
+
[data-theme="dark"] .emp-chip.done {
|
| 57 |
+
border-color: rgba(34, 197, 94, 0.4);
|
| 58 |
+
color: #4ade80;
|
| 59 |
+
background: rgba(34, 197, 94, 0.1);
|
| 60 |
+
}
|
| 61 |
+
[data-theme="dark"] .emp-chip.done.active {
|
| 62 |
+
background: #22c55e;
|
| 63 |
+
border-color: #22c55e;
|
| 64 |
+
color: #0f172a;
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
/* ── 一括ボタン行 ──────────────────────────────────── */
|
| 68 |
.bulk-bar {
|
| 69 |
display: flex;
|
| 70 |
flex-wrap: wrap;
|
| 71 |
gap: 6px;
|
| 72 |
padding: 8px 12px;
|
| 73 |
+
border-top: 1px solid var(--border);
|
| 74 |
+
border-bottom: 1px solid var(--border);
|
| 75 |
+
background: var(--bg-card);
|
| 76 |
+
transition: background var(--transition);
|
| 77 |
}
|
| 78 |
+
.bulk-bar .label { font-size: .75rem; color: var(--text-muted); align-self: center; flex-shrink: 0; }
|
| 79 |
|
| 80 |
/* ── 日付行 ─────────────────────────────────────────── */
|
| 81 |
.day-row {
|
|
|
|
| 83 |
align-items: center;
|
| 84 |
gap: 8px;
|
| 85 |
padding: 5px 12px;
|
| 86 |
+
border-bottom: 1px solid var(--border);
|
| 87 |
+
transition: background var(--transition);
|
| 88 |
}
|
| 89 |
.day-row:last-of-type { border-bottom: none; }
|
| 90 |
+
|
| 91 |
+
[data-theme="light"] .day-row.sat { background: #fafcff; }
|
| 92 |
+
[data-theme="light"] .day-row.sun { background: #fff9f9; }
|
| 93 |
+
[data-theme="dark"] .day-row.sat { background: rgba(59, 130, 246, 0.06); }
|
| 94 |
+
[data-theme="dark"] .day-row.sun { background: rgba(239, 68, 68, 0.06); }
|
| 95 |
|
| 96 |
.day-label {
|
| 97 |
width: 58px;
|
|
|
|
| 99 |
text-align: center;
|
| 100 |
line-height: 1.25;
|
| 101 |
}
|
| 102 |
+
.day-label .dt { font-size: .82rem; font-weight: 600; color: var(--text); }
|
| 103 |
+
.day-label .dw { font-size: .7rem; color: var(--text-muted); }
|
| 104 |
+
|
| 105 |
+
[data-theme="light"] .day-row.sat .day-label .dt,
|
| 106 |
+
[data-theme="light"] .day-row.sat .day-label .dw { color: #1e40af; }
|
| 107 |
+
[data-theme="light"] .day-row.sun .day-label .dt,
|
| 108 |
+
[data-theme="light"] .day-row.sun .day-label .dw { color: #dc2626; }
|
| 109 |
+
|
| 110 |
+
[data-theme="dark"] .day-row.sat .day-label .dt,
|
| 111 |
+
[data-theme="dark"] .day-row.sat .day-label .dw { color: #60a5fa; }
|
| 112 |
+
[data-theme="dark"] .day-row.sun .day-label .dt,
|
| 113 |
+
[data-theme="dark"] .day-row.sun .day-label .dw { color: #f87171; }
|
| 114 |
|
| 115 |
/* ── パターンボタン ───────────────────────────────── */
|
| 116 |
.pat-btn {
|
| 117 |
flex: 1;
|
| 118 |
padding: 9px 10px;
|
| 119 |
border-radius: 10px;
|
| 120 |
+
border: 1.5px solid var(--border);
|
| 121 |
font-size: .82rem;
|
| 122 |
cursor: pointer;
|
| 123 |
text-align: left;
|
| 124 |
user-select: none;
|
| 125 |
-webkit-user-select: none;
|
| 126 |
+
transition: filter .1s, background var(--transition);
|
| 127 |
line-height: 1.3;
|
| 128 |
min-height: 42px;
|
| 129 |
+
background: var(--bg-card);
|
| 130 |
+
color: var(--text-muted);
|
| 131 |
}
|
| 132 |
.pat-btn:active { filter: brightness(.88); }
|
| 133 |
|
| 134 |
+
/* パターンカテゴリ別カラー (ライトテーマ) */
|
| 135 |
+
[data-theme="light"] .pat-work { background: #dcfce7; color: #166534; border-color: #86efac; }
|
| 136 |
+
[data-theme="light"] .pat-ofr { background: #fecaca; color: #991b1b; border-color: #f87171; }
|
| 137 |
+
[data-theme="light"] .pat-leave{ background: #fef9c3; color: #854d0e; border-color: #fde047; }
|
| 138 |
+
[data-theme="light"] .pat-am { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
|
| 139 |
+
[data-theme="light"] .pat-pm { background: #fed7aa; color: #c2410c; border-color: #fb923c; }
|
| 140 |
+
[data-theme="light"] .pat-b { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
|
| 141 |
+
[data-theme="light"] .pat-d { background: #fed7aa; color: #c2410c; border-color: #fb923c; }
|
| 142 |
+
[data-theme="light"] .pat-db { background: #d1fae5; color: #065f46; border-color: #6ee7b7; }
|
| 143 |
+
[data-theme="light"] .pat-cust { background: #fef9c3; color: #854d0e; border-color: #fde047; }
|
| 144 |
+
|
| 145 |
+
/* パターンカテゴリ別カラー (ダークテーマ) */
|
| 146 |
+
[data-theme="dark"] .pat-work { background: rgba(34, 197, 94, 0.15); color: #4ade80; border-color: rgba(34, 197, 94, 0.3); }
|
| 147 |
+
[data-theme="dark"] .pat-ofr { background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
|
| 148 |
+
[data-theme="dark"] .pat-leave { background: rgba(234, 179, 8, 0.15); color: #facc15; border-color: rgba(234, 179, 8, 0.3); }
|
| 149 |
+
[data-theme="dark"] .pat-am { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
|
| 150 |
+
[data-theme="dark"] .pat-pm { background: rgba(249, 115, 22, 0.15); color: #ff9d43; border-color: rgba(249, 115, 22, 0.3); }
|
| 151 |
+
[data-theme="dark"] .pat-b { background: rgba(59, 130, 246, 0.15); color: #60a5fa; border-color: rgba(59, 130, 246, 0.3); }
|
| 152 |
+
[data-theme="dark"] .pat-d { background: rgba(249, 115, 22, 0.15); color: #ff9d43; border-color: rgba(249, 115, 22, 0.3); }
|
| 153 |
+
[data-theme="dark"] .pat-db { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.3); }
|
| 154 |
+
[data-theme="dark"] .pat-cust { background: rgba(234, 179, 8, 0.15); color: #facc15; border-color: rgba(234, 179, 8, 0.3); }
|
| 155 |
|
| 156 |
/* 展開ボタン */
|
| 157 |
.pat-expand {
|
|
|
|
| 159 |
padding: 6px 8px;
|
| 160 |
border: none;
|
| 161 |
background: none;
|
| 162 |
+
color: var(--text-muted);
|
| 163 |
cursor: pointer;
|
| 164 |
font-size: .7rem;
|
| 165 |
}
|
| 166 |
+
.pat-expand:hover { color: var(--text); }
|
| 167 |
|
| 168 |
/* ピッカー */
|
| 169 |
.pat-picker {
|
|
|
|
| 184 |
.save-bar {
|
| 185 |
position: sticky;
|
| 186 |
bottom: 0;
|
| 187 |
+
background: var(--bg-card);
|
| 188 |
padding: 10px 12px;
|
| 189 |
+
border-top: 1px solid var(--border);
|
| 190 |
z-index: 10;
|
| 191 |
+
transition: background var(--transition);
|
| 192 |
}
|
| 193 |
</style>
|
| 194 |
{% endblock %}
|
|
|
|
| 375 |
<!-- 全休確認モーダル -->
|
| 376 |
<div class="modal fade" id="allOffModal" tabindex="-1">
|
| 377 |
<div class="modal-dialog modal-dialog-centered modal-sm">
|
| 378 |
+
<div class="modal-content">
|
| 379 |
<div class="modal-body p-4 text-center">
|
| 380 |
<i class="bi bi-question-circle-fill text-warning d-block mb-2" style="font-size:2.2rem"></i>
|
| 381 |
<div class="fw-semibold mb-1">全て休みで保存しますか?</div>
|
| 382 |
+
<div style="color:var(--text-muted);font-size:.85rem;margin-bottom:1.25rem">この期間、全ての日を「休み」として保存します。</div>
|
| 383 |
<div class="d-flex gap-2">
|
| 384 |
<button class="btn btn-secondary flex-grow-1" data-bs-dismiss="modal">戻る</button>
|
| 385 |
<button type="button" class="btn btn-warning flex-grow-1" id="all-off-proceed-btn">保存する</button>
|