app / templates /help /index.html
Ryo_Shimano
fix: 戻るボタンにaria-labelを追加、既知の不具合バッジの楕円崩れを修正
e88761f
Raw History Blame Contribute Delete
35.3 kB
{% extends "base.html" %}
{% block title %}ヘルプ - SDU-Shift{% endblock %}
{% block head %}
<style>
.help-hero {
background: var(--dark-card-bg);
color: var(--dark-card-text); padding: 2rem 1rem 1.5rem; text-align: center;
border-bottom: 1px solid var(--border);
}
.help-hero h2 { font-size: 1.3rem; font-weight: 700; margin: 0 0 .25rem; }
.help-hero p { color: var(--text-muted); font-size: .85rem; margin: 0; }
.help-section { margin-bottom: 1rem; }
.help-card {
background: var(--bg-card); border-radius: 12px;
border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden;
}
.help-card-header {
display: flex; align-items: center; gap: .75rem;
padding: .85rem 1rem; cursor: pointer;
border-bottom: 1px solid transparent;
transition: background .15s; user-select: none;
}
.help-card-header:hover { background: rgba(148,163,184,.08); }
.help-card-header:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.help-card-header.open { border-bottom-color: var(--border); }
.help-card-icon {
width: 36px; height: 36px; border-radius: 8px;
display: flex; align-items: center; justify-content: center;
font-size: 1.1rem; flex-shrink: 0;
}
.help-card-title { font-weight: 600; font-size: .95rem; flex-grow: 1; color: var(--text); }
.help-card-chevron { color: var(--text-muted); font-size: .8rem; transition: transform .2s; }
.help-card-chevron.open { transform: rotate(180deg); }
.help-card-body { padding: 1rem; display: none; font-size: .88rem; line-height: 1.7; color: var(--text); }
.help-card-body.open { display: block; }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { display: flex; gap: .75rem; padding: .5rem 0; border-bottom: 1px solid var(--border); }
.step-list li:last-child { border-bottom: none; }
.step-num {
width: 22px; height: 22px; background: var(--accent); color: #020617;
border-radius: 50%; font-size: .72rem; font-weight: 700;
display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px;
}
[data-theme="dark"] .step-num { color: #0f172a; }
/* 更新履歴タイムライン */
.changelog-timeline { position: relative; padding-left: 1rem; margin: 0; }
.changelog-timeline::before {
content: ''; position: absolute; left: 3px; top: 6px; bottom: 6px;
width: 2px; background: var(--border);
}
.changelog-group { position: relative; margin-bottom: 1.1rem; }
.changelog-group:last-child { margin-bottom: 0; }
.changelog-date {
position: relative; display: inline-block;
font-size: .72rem; font-weight: 700; color: var(--text-muted);
font-family: monospace; letter-spacing: .02em; margin: 0 0 .35rem;
}
.changelog-date::before {
content: ''; position: absolute; left: -1rem; top: 50%; transform: translateY(-50%);
width: 8px; height: 8px; border-radius: 50%;
background: #64748b; box-shadow: 0 0 0 3px var(--bg-card);
}
.changelog-items { list-style: none; margin: 0; padding: 0; }
.changelog-items li {
font-size: .82rem; padding: .2rem 0; color: var(--text); border-bottom: none;
}
.tip-box, .warn-box, .info-box {
border-radius: 0 8px 8px 0; padding: .6rem .85rem; font-size: .82rem; margin-top: .75rem;
}
[data-theme="light"] .tip-box { background: #f0f9ff; color: #0c4a6e; border-left: 3px solid #0ea5e9; }
[data-theme="light"] .warn-box { background: #fffbeb; color: #78350f; border-left: 3px solid #f59e0b; }
[data-theme="light"] .info-box { background: #f0fdf4; color: #14532d; border-left: 3px solid #22c55e; }
[data-theme="dark"] .tip-box { background: rgba(14,165,233,.12); color: #38bdf8; border-left: 3px solid #0ea5e9; }
[data-theme="dark"] .warn-box { background: rgba(245,158,11,.12); color: #fbbf24; border-left: 3px solid #f59e0b; }
[data-theme="dark"] .info-box { background: rgba(34,197,94,.12); color: #4ade80; border-left: 3px solid #22c55e; }
.sub-heading {
font-size: .72rem; font-weight: 700; letter-spacing: .05em;
text-transform: uppercase; color: var(--text-muted); margin: 1rem 0 .5rem;
}
.sub-heading:first-child { margin-top: 0; }
.badge-skill { display: inline-block; border-radius: 4px; padding: 1px 7px; font-size: .75rem; font-weight: 600; }
/* 目次チップ */
.toc-chip {
display: inline-flex; align-items: center; gap: .4rem;
background: var(--bg-card); border: 1px solid var(--border);
border-radius: 20px; padding: 4px 12px;
font-size: .78rem; font-weight: 600; color: var(--text);
text-decoration: none; transition: all .15s;
}
.toc-chip:hover { border-color: #0ea5e9; color: #0ea5e9; }
.toc-chip-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
/* スクリーンショット */
.ss-row {
display: flex; gap: 1rem; align-items: flex-start; margin: .6rem 0;
}
.ss-body { flex: 1; min-width: 0; }
.ss-phone {
flex-shrink: 0; width: 148px;
border-radius: 16px; overflow: hidden;
border: 1.5px solid rgba(148,163,184,.25);
box-shadow: 0 4px 20px rgba(0,0,0,.22);
background: #0f172a;
}
.ss-phone img { width: 100%; height: auto; display: block; }
.ss-caption {
text-align: center; font-size: .62rem; color: var(--text-muted);
padding: 3px 4px 4px; background: var(--bg-card);
border-top: 1px solid var(--border);
}
.ss-duo { display: flex; gap: .6rem; margin-top: .75rem; }
.ss-duo .ss-phone { width: 130px; flex-shrink: 0; }
@media (max-width: 540px) {
.ss-row { flex-direction: column; }
.ss-phone { width: 100%; max-width: 220px; margin: 0 auto; }
.ss-duo { justify-content: center; }
.ss-duo .ss-phone { width: calc(50% - .3rem); max-width: 160px; }
}
</style>
{% endblock %}
{% set SS = "https://raw.githubusercontent.com/Richiesss/shift-tool/main/static/help/%23" %}
{% block content %}
<div class="help-hero">
<div style="margin-bottom:.5rem">
<img src="/static/icons/icon-192.png" alt="SDU-Shift"
style="width:64px;height:64px;object-fit:contain;border-radius:12px">
</div>
<h2>SDU-Shift</h2>
<p>スタッフシフト管理 ヘルプ</p>
</div>
<div class="content">
<!-- 目次 -->
<div class="d-flex flex-wrap gap-2 mb-3">
{% for anchor, label, dot_color in [
('#home', 'ホーム', '#0ea5e9'),
('#staff', 'スタッフ管理', '#0ea5e9'),
('#shift', '希望シフト', '#0ea5e9'),
('#generate', '自動生成', '#0ea5e9'),
('#schedule', 'シフト表', '#0ea5e9'),
('#customer', '客数管理', '#0ea5e9'),
('#settings', '設定', '#64748b'),
('#changelog', '更新履歴', '#64748b'),
('#known-issues', '既知の不具合', '#ef4444'),
] %}
<a href="{{ anchor }}" class="toc-chip">
<span class="toc-chip-dot" style="background:{{ dot_color }}"></span>
{{ label }}
</a>
{% endfor %}
</div>
{% macro section(id, icon, icon_bg, icon_color, title, content_id) %}
<div class="help-section" id="{{ id }}">
<div class="help-card">
<div class="help-card-header" onclick="toggleCard(this,'{{ content_id }}')"
role="button" tabindex="0"
onkeydown="if(event.key==='Enter'||event.key===' ')toggleCard(this,'{{ content_id }}')">
<div class="help-card-icon" style="background:{{ icon_bg }}">
<i class="bi {{ icon }}" style="color:{{ icon_color }}"></i>
</div>
<span class="help-card-title">{{ title }}</span>
<i class="bi bi-chevron-down help-card-chevron"></i>
</div>
<div class="help-card-body" id="{{ content_id }}">
{% endmacro %}
{# ── ホーム ── #}
{{ section('home','bi-house-door-fill','rgba(14,165,233,.13)','#0ea5e9','ホーム(ダッシュボード)','body-home') }}
<div class="ss-row">
<div class="ss-body">
<p style="font-size:.82rem;margin-bottom:.6rem">ログイン後に最初に表示される画面です。「今やるべきこと」と「今日の状況」をひとめで確認できます。</p>
<div class="sub-heading" style="margin-top:.5rem">TODO</div>
<p style="font-size:.82rem">優先度の高い順に対応すべき項目が並びます。タップすると該当画面に移動します。</p>
<ul class="step-list mb-2" style="font-size:.82rem">
<li><span class="step-num" style="background:#ef4444"><i class="bi bi-exclamation-lg"></i></span><div>直近の<strong>人員不足</strong>を解消する</div></li>
<li><span class="step-num" style="background:#f59e0b"><i class="bi bi-exclamation-lg"></i></span><div><strong>希望シフト未提出</strong>のスタッフへの対応</div></li>
<li><span class="step-num" style="background:#38bdf8"><i class="bi bi-arrow-right"></i></span><div>シフトの<strong>自動生成</strong>・確定がまだ</div></li>
<li><span class="step-num" style="background:#a78bfa"><i class="bi bi-arrow-right"></i></span><div><strong>予約客数</strong>の入力・更新</div></li>
</ul>
<div class="sub-heading">今日の状況</div>
<p style="font-size:.82rem">本日の予約客数と、現在の時間帯の出勤予定人数(ホール・キッチン別)を表示します。</p>
</div>
<div class="ss-phone">
<img src="{{ SS }}5.jpg" alt="ホーム画面" loading="lazy">
<div class="ss-caption">ホーム画面</div>
</div>
</div>
<div class="sub-heading">期間ステータス</div>
<p style="font-size:.82rem">直近のシフト期間について「希望収集 → 自動生成 → 確定」の進行状況をバーで表示します。提出済みスタッフ数もここで確認できます。</p>
<div class="info-box">
<i class="bi bi-check-circle-fill me-1"></i>
対応が必要な項目がなければ「対応が必要な項目はありません」と表示されます。
</div>
</div>
</div>
</div>
{# ── スタッフ管理 ── #}
{{ section('staff','bi-people-fill','rgba(14,165,233,.13)','#0ea5e9','スタッフ管理','body-staff') }}
<div class="ss-row">
<div class="ss-body">
<div class="sub-heading" style="margin-top:0">基本操作</div>
<ul class="step-list">
<li><span class="step-num">1</span><div><strong>スタッフを追加</strong> — 右上「+ 新規登録」をタップします。</div></li>
<li><span class="step-num">2</span><div><strong>並び順を変更</strong> — 各行左端の <i class="bi bi-grip-vertical text-muted"></i> をドラッグして入れ替えます。自動保存されます。</div></li>
<li><span class="step-num">3</span><div><strong>編集</strong> — <i class="bi bi-pencil text-primary"></i> ボタンをタップして編集フォームを開きます。</div></li>
<li><span class="step-num">4</span><div><strong>アーカイブ</strong> — <i class="bi bi-archive text-muted"></i> ボタンで非表示にします。データは保持されます。</div></li>
</ul>
</div>
<div class="ss-phone">
<img src="{{ SS }}8.jpg" alt="スタッフ管理一覧" loading="lazy">
<div class="ss-caption">スタッフ一覧</div>
</div>
</div>
<div class="sub-heading">複数選択での一括操作</div>
<p style="font-size:.82rem">各行のチェックボックス(または「全選択」)で複数のスタッフを選ぶと、画面上部に<strong>一括アーカイブ・復元・削除</strong>のバーが表示されます。</p>
<div class="sub-heading">編集フォームの主な項目</div>
<div class="ss-row">
<div class="ss-body">
<table class="table table-sm table-bordered mb-2" style="font-size:.82rem">
<thead class="table-light"><tr><th>項目</th><th>内容</th></tr></thead>
<tbody>
<tr><td>雇用形態</td><td>正社員 / アルバイト・パートで自動生成のルールが変わります。</td></tr>
<tr><td>所属ポジション</td><td>ホール / キッチン / 両方。シフト表の表示先を決めます。</td></tr>
<tr>
<td>習熟度</td>
<td>
<span class="badge-skill" style="background:#fde68a;color:#92400e">リーダー</span>
<span class="badge-skill" style="background:#dbeafe;color:#1e40af">ベテラン</span>
<span class="badge-skill" style="background:#dcfce7;color:#166534">メンバー</span>
<span class="badge-skill" style="background:#f1f5f9;color:#475569">ビギナー</span><br>
<span style="font-size:.78rem">「リーダー」が設定のリーダー最少人数制約の対象になります。</span>
</td>
</tr>
<tr><td>勤務時間帯</td><td>どちらでも / 朝食専任 / ディナー専任。自動生成の配置対象を絞ります。</td></tr>
<tr><td>希望提出不要</td><td>チェックすると毎日その時間帯に出勤可能として扱われます。</td></tr>
</tbody>
</table>
</div>
<div class="ss-phone">
<img src="{{ SS }}9.jpg" alt="スタッフ編集フォーム" loading="lazy">
<div class="ss-caption">編集フォーム</div>
</div>
</div>
<div class="warn-box" style="margin-top:.5rem">
<i class="bi bi-exclamation-triangle-fill me-1"></i>
「完全削除」を実行するとスタッフと関連する全データが消えます。<strong>元に戻せません。</strong>退職・休職の場合は「アーカイブ」を使ってください。
</div>
</div>
</div>
</div>
{# ── 希望シフト入力 ── #}
{{ section('shift','bi-pencil-square','rgba(14,165,233,.13)','#0ea5e9','希望シフト入力','body-shift') }}
<div class="ss-row">
<div class="ss-body">
<ul class="step-list">
<li><span class="step-num">1</span><div><strong>期間を作成</strong> — 年月と「前半(1〜15日)」「後半(16〜末日)」を選びます。</div></li>
<li><span class="step-num">2</span><div><strong>スタッフを切替</strong> — 上部のチップをタップして対象者を切り替えます。<span style="color:#166534;font-weight:600">緑</span>が提出済み、白が未提出です。</div></li>
<li><span class="step-num">3</span><div><strong>希望を入力</strong> — 各日の行をタップしてシフトパターンを選択します。</div></li>
</ul>
<div class="tip-box" style="margin-top:.6rem">
<i class="bi bi-lightbulb-fill me-1"></i>
右上のプログレスバーで提出の進捗が一目でわかります。
</div>
</div>
<div class="ss-phone">
<img src="{{ SS }}6.jpg" alt="希望シフト入力" loading="lazy">
<div class="ss-caption">希望シフト入力</div>
</div>
</div>
<div class="sub-heading">一括設定ボタン</div>
<p style="font-size:.82rem">各スタッフの入力欄上部にある一括ボタンで、全日分をまとめてパターン設定できます。正社員は「出勤」「休希望」「有休」など、アルバイト/パートは「全日休み」や過去の利用頻度が高いパターン(最大3件)から選べます。</p>
<div class="sub-heading">外部フォーム&CSV連携(β)</div>
<p style="font-size:.82rem">画面下部のパネルから <strong>Google フォームでの希望収集</strong>と<strong>CSVインポート</strong>が利用できます。Googleフォーム連携は、設定ページであらかじめGoogleアカウントとの連携が必要です。</p>
<ul class="step-list mb-2" style="font-size:.82rem">
<li><span class="step-num">1</span><div>「フォームを自動作成」で期間専用フォームを生成 → URLをスタッフへ共有</div></li>
<li><span class="step-num">2</span><div>「回答データを同期」で回答を取り込み(未入力のみ追加 or 全て上書き)</div></li>
</ul>
</div>
</div>
</div>
{# ── 自動生成 ── #}
{{ section('generate','bi-lightning-fill','rgba(14,165,233,.13)','#0ea5e9','シフト自動生成','body-generate') }}
<div class="ss-row">
<div class="ss-body">
<ul class="step-list">
<li><span class="step-num">1</span><div><strong>対象期間を選択</strong> — ドロップダウンから希望シフト入力済みの期間を選びます。</div></li>
<li><span class="step-num">2</span><div><strong>前提条件を確認</strong> — 希望シフト入力人数と予約客数の入力状況が自動チェックされます。</div></li>
<li><span class="step-num">3</span><div><strong>優先度を調整</strong> — 各項目を「低・中・高」で設定します。<span style="display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#e0f2fe;color:#0369a1;font-size:.65rem;font-weight:700;border:1px solid #7dd3fc">?</span> をタップすると詳細を確認できます。</div></li>
<li><span class="step-num">4</span><div><strong>「シフトを生成する」</strong>をタップします。数十秒で完了します。</div></li>
</ul>
</div>
<div class="ss-phone">
<img src="{{ SS }}7.jpg" alt="シフト自動生成" loading="lazy">
<div class="ss-caption">自動生成画面</div>
</div>
</div>
<div class="sub-heading">優先度設定の意味</div>
<table class="table table-sm table-bordered mb-2" style="font-size:.82rem">
<thead class="table-light"><tr><th style="width:45%">設定項目</th><th>内容</th></tr></thead>
<tbody>
<tr><td>人件費最小化</td><td>総勤務時間が少なくなるよう調整します。</td></tr>
<tr><td>アルバイト/パート希望充当</td><td>希望した時間帯にできるだけアサインします。</td></tr>
<tr><td>人員バランス均等化</td><td>各スタッフの勤務回数が均等になるよう調整します。</td></tr>
<tr><td>深夜勤務分散</td><td>ディナー遅番が特定のスタッフに集中しないよう分散します。</td></tr>
</tbody>
</table>
<div class="info-box">
<i class="bi bi-arrow-repeat me-1"></i>
生成はバックグラウンドで実行されます。生成中でも他の画面に移動できます。完了後に「シフト表」から結果を確認してください。
</div>
<div class="warn-box">
<i class="bi bi-exclamation-triangle-fill me-1"></i>
「生成失敗」になる場合は、設定の最少人数を下げるか、希望シフトの入力を増やして再試行してください。
</div>
</div>
</div>
</div>
{# ── シフト表 ── #}
{{ section('schedule','bi-calendar3','rgba(14,165,233,.13)','#0ea5e9','シフト表','body-schedule') }}
<div class="ss-row">
<div class="ss-body">
<ul class="step-list">
<li><span class="step-num">1</span><div>上部の<strong>「ホール」「キッチン」ボタン</strong>でポジションを切り替えます(再読み込みなし)。</div></li>
<li><span class="step-num">2</span><div>各セルに<strong>朝食(上段)とディナー(下段)</strong>が並んで表示されます。タップして担当を追加・変更できます。</div></li>
<li><span class="step-num">3</span><div><strong>日付ヘッダーをタップ</strong>するとその日の全員のタイムラインを確認できます。</div></li>
<li><span class="step-num">4</span><div>内容が固まったら<strong>「確定」ボタン</strong>を押します。確定後に出力が可能になります。</div></li>
</ul>
<div class="sub-heading">人員状況グリッド</div>
<p style="font-size:.82rem">ページ上部の4マスで、朝食/ディナー × ホール/キッチン別の人員状況を一覧できます。問題のあるマスをタップすると不足日が展開されます。担当を追加・削除するとリアルタイムで更新されます。</p>
<div class="d-flex gap-2 flex-wrap" style="font-size:.78rem;margin-top:.4rem">
<span style="background:#ef4444;color:white;border-radius:4px;padding:2px 8px;font-weight:600">赤:人員不足</span>
<span style="background:#f59e0b;color:white;border-radius:4px;padding:2px 8px;font-weight:600">黄:リーダー不足</span>
<span style="background:#22c55e;color:white;border-radius:4px;padding:2px 8px;font-weight:600">緑:充足</span>
</div>
</div>
<div class="ss-phone">
<img src="{{ SS }}1.jpg" alt="シフト表全体" loading="lazy">
<div class="ss-caption">シフト表</div>
</div>
</div>
<div class="sub-heading">確定・確定解除</div>
<table class="table table-sm table-bordered mb-2" style="font-size:.82rem">
<thead class="table-light"><tr><th>操作</th><th>内容</th></tr></thead>
<tbody>
<tr>
<td><i class="bi bi-check-lg text-success me-1"></i>確定</td>
<td>確認ダイアログで人員不足の日数・希望未提出人数を確認してから確定できます。確定後はセル編集がロックされます。</td>
</tr>
<tr>
<td><i class="bi bi-lock-fill text-danger me-1"></i>確定解除</td>
<td>再び編集可能な状態に戻します。修正後は再度「確定」を押してください。</td>
</tr>
</tbody>
</table>
<div class="sub-heading">Excel / PDF 出力</div>
<div class="ss-row">
<div class="ss-body">
<p style="font-size:.82rem">右上の<strong>「出力」ボタン</strong>をタップするとメニューが開きます。</p>
<ul style="font-size:.82rem;padding-left:1.2rem;line-height:1.9;margin-bottom:.4rem">
<li><strong>PDFプレビュー</strong> — ブラウザ上で内容を事前確認できます</li>
<li><strong>Excel出力 / PDF出力</strong> — <strong>確定済みの場合のみ</strong>有効になります</li>
</ul>
</div>
<div class="ss-phone">
<img src="{{ SS }}3.jpg" alt="出力ドロップダウン" loading="lazy">
<div class="ss-caption">出力メニュー</div>
</div>
</div>
<div class="sub-heading">担当の追加・変更</div>
<p style="font-size:.82rem">セルをタップすると担当編集モーダルが開きます。ポジション(ホール/キッチン)と勤務時間を選んで「担当として追加」を押します。</p>
<div class="ss-duo">
<div class="ss-phone">
<img src="{{ SS }}2_2.jpg" alt="希望シフト通りモード" loading="lazy">
<div class="ss-caption">希望シフト通り</div>
</div>
<div class="ss-phone">
<img src="{{ SS }}2_1.jpg" alt="応援モード" loading="lazy">
<div class="ss-caption">応援をお願いする</div>
</div>
</div>
<table class="table table-sm table-bordered mb-2 mt-2" style="font-size:.82rem">
<thead class="table-light"><tr><th style="width:40%">モード</th><th>使いどころ</th></tr></thead>
<tbody>
<tr><td>希望シフト通り</td><td>希望を提出済みのスタッフに表示。希望時間のままアサインします。</td></tr>
<tr><td>時間を変更する<sup>変</sup></td><td>希望時間から短縮・延長する場合。プリセット(全時間 / 前半 / 後半)で素早く設定できます。</td></tr>
<tr><td>応援をお願いする<sup>応</sup></td><td>希望を提出していない日に出勤してもらう場合。時間を指定してアサインします。</td></tr>
</tbody>
</table>
<div class="tip-box">
<i class="bi bi-lightbulb-fill me-1"></i>
担当の追加・削除はページリロードなしで即時反映されます。人員バッジ・不足グリッドも自動で更新されます。
</div>
<div class="sub-heading">タイムライン</div>
<div class="ss-row">
<div class="ss-body">
<p style="font-size:.82rem">日付ヘッダーをタップするとその日の全スタッフの勤務時間帯がグリッドで表示されます。<strong>H</strong>=ホール、<strong>K</strong>=キッチンで色分けされます。</p>
</div>
<div class="ss-phone">
<img src="{{ SS }}4.jpg" alt="タイムライン" loading="lazy">
<div class="ss-caption">タイムライン</div>
</div>
</div>
<div class="sub-heading">その他の機能</div>
<table class="table table-sm table-bordered mb-0" style="font-size:.82rem">
<thead class="table-light"><tr><th style="width:40%">機能</th><th>内容</th></tr></thead>
<tbody>
<tr><td><i class="bi bi-chat-fill me-1"></i>セルコメント</td><td>担当編集モーダル下部の「コメント(任意)」欄に補足メモを残せます。セルに <i class="bi bi-chat-fill"></i> アイコンで表示されます。</td></tr>
<tr><td><i class="bi bi-clock-history me-1"></i>変更履歴</td><td>右上の <i class="bi bi-clock-history"></i> ボタンから手動変更の履歴(直近60件)を確認できます。</td></tr>
<tr><td>予約行のインライン編集</td><td>「予約」行のセルをタップするとその場で予約客数を編集できます。</td></tr>
<tr><td>メモ1 / メモ2</td><td>日付ごとに自由にメモを入力できます。PDF/Excel出力にも反映されます。</td></tr>
<tr><td>天気・気温</td><td>「設定」で店舗の緯度・経度を登録すると、日付ヘッダーに天気と気温が表示されます。</td></tr>
</tbody>
</table>
</div>
</div>
</div>
{# ── 客数管理 ── #}
{{ section('customer','bi-cup-hot-fill','rgba(14,165,233,.13)','#0ea5e9','客数管理','body-customer') }}
<div class="ss-row">
<div class="ss-body">
<ul class="step-list">
<li><span class="step-num">1</span><div>期間を選択して各日の<strong>予約客数(朝食・ディナー)</strong>を入力します。</div></li>
<li><span class="step-num">2</span><div>閾値を超えた日は<strong>赤</strong>(↑マーク)、以下は<strong>緑</strong>(↓マーク)で表示されます。</div></li>
<li><span class="step-num">3</span><div>閾値は「設定」の<strong>予約客数による増員設定</strong>から変更できます。</div></li>
</ul>
<div class="tip-box" style="margin-top:.6rem">
<i class="bi bi-lightbulb-fill me-1"></i>
予約客数を入力しておくと、自動生成時に閾値超過日は人数が自動増員されます。シフト表の「予約」行からも直接編集できます。
</div>
</div>
<div class="ss-phone">
<img src="{{ SS }}10.jpg" alt="客数管理" loading="lazy">
<div class="ss-caption">客数管理</div>
</div>
</div>
<div class="sub-heading">客数予測(β)</div>
<p style="font-size:.82rem">「設定」で客数予測を有効にすると、過去のデータと天気予報から各日の予測客数が表示されます。未入力の日に「予測値を未入力欄に反映」で一括入力できます(入力済みの値は上書きされません)。</p>
</div>
</div>
</div>
{# ── 設定 ── #}
{{ section('settings','bi-gear-fill','rgba(100,116,139,.13)','#64748b','設定','body-settings') }}
<div class="sub-heading" style="margin-top:0">シフト人員制約</div>
<p style="font-size:.82rem">時間帯(朝食・ディナー)×ポジション(ホール・キッチン)ごとに人数の最少・最多・リーダー最少を設定します。自動生成と人員状況グリッドに使われます。</p>
<div class="sub-heading">社員デフォルト勤務時間</div>
<p style="font-size:.82rem">正社員は希望シフトを提出しないため、シフト表・PDF・Excelに表示するデフォルト時間をポジション×時間帯別に設定します。</p>
<div class="sub-heading">予約客数による増員設定</div>
<table class="table table-sm table-bordered mb-2" style="font-size:.82rem">
<thead class="table-light"><tr><th style="width:40%">項目</th><th>内容</th></tr></thead>
<tbody>
<tr><td>閾値(人)</td><td>この予約客数を超えた日に増員が発動します(朝食・ディナー別)。</td></tr>
<tr><td>増員数(人)</td><td>閾値を超えた日に追加で配置する最低人数(朝食・ディナー別)。</td></tr>
</tbody>
</table>
<div class="sub-heading">人件費設定</div>
<table class="table table-sm table-bordered mb-2" style="font-size:.82rem">
<thead class="table-light"><tr><th style="width:40%">項目</th><th>内容</th></tr></thead>
<tbody>
<tr><td>基本給(円/時)</td><td>全アルバイト/パート共通の基本時給。</td></tr>
<tr><td>早朝手当(円/時)</td><td>朝食シフトへの追加手当。実効時給 = 基本給+個人昇給額+早朝手当。</td></tr>
</tbody>
</table>
<p style="font-size:.82rem;margin-bottom:.75rem">個人昇給額はスタッフ編集フォームでスタッフごとに設定します。正社員は人件費計算の対象外です。</p>
<div class="sub-heading">バックアップ / リストア</div>
<table class="table table-sm table-bordered mb-0" style="font-size:.82rem">
<thead class="table-light"><tr><th style="width:40%">操作</th><th>内容</th></tr></thead>
<tbody>
<tr><td>バックアップ</td><td>全データをJSONファイルでダウンロードします。</td></tr>
<tr><td>リストア</td><td>バックアップJSONからデータを復元します。<strong>既存データはすべて上書きされます。</strong></td></tr>
</tbody>
</table>
<div class="warn-box">
<i class="bi bi-exclamation-triangle-fill me-1"></i>
リストアを実行すると既存のデータはすべて置き換わります。事前にバックアップを取ることを強く推奨します。
</div>
</div>
</div>
</div>
{# ── 更新履歴 ── #}
{{ section('changelog','bi-clock-history','rgba(100,116,139,.13)','#64748b','更新履歴','body-changelog') }}
<p style="font-size:.82rem">直近の更新内容です(コミットログより自動表示)。</p>
{% if commits is none %}
<div class="info-box"><i class="bi bi-exclamation-circle-fill me-1"></i>更新履歴を取得できませんでした。</div>
{% elif changelog_groups %}
<div class="changelog-timeline">
{% for group in changelog_groups %}
<div class="changelog-group">
<div class="changelog-date">{{ group.date }}</div>
<ul class="changelog-items">
{% for subject in group.subjects %}
<li>{{ subject }}</li>
{% endfor %}
</ul>
</div>
{% endfor %}
</div>
{% else %}
<div class="info-box"><i class="bi bi-info-circle-fill me-1"></i>更新履歴がありません。</div>
{% endif %}
<div class="text-end mt-2">
<a href="https://github.com/Richiesss/shift-tool/commits/main" target="_blank" rel="noopener" style="font-size:.8rem">
GitHubで全履歴を見る <i class="bi bi-box-arrow-up-right"></i>
</a>
</div>
</div>
</div>
</div>
{# ── 既知の不具合 ── #}
{{ section('known-issues','bi-bug-fill','rgba(239,68,68,.13)','#ef4444','既知の不具合','body-known-issues') }}
<p style="font-size:.82rem">現在オープン中の未対応Issueです(GitHub Issuesより自動表示)。</p>
<div class="d-grid mb-2">
<a href="{{ url_for('feedback.index') }}" class="btn btn-outline-danger btn-sm">
<i class="bi bi-send-fill me-1"></i>不具合を報告する・要望を送る
</a>
</div>
{% if known_issues is none %}
<div class="info-box"><i class="bi bi-exclamation-circle-fill me-1"></i>一覧を取得できませんでした。</div>
{% elif known_issues %}
<ul class="step-list" style="font-size:.82rem">
{% for issue in known_issues %}
<li>
<span class="step-num" style="background:#ef4444;width:auto;min-width:22px;padding:1px 8px;font-size:.68rem;border-radius:20px">#{{ issue.number }}</span>
<div><a href="{{ issue.url }}" target="_blank" rel="noopener">{{ issue.title }}</a></div>
</li>
{% endfor %}
</ul>
{% else %}
<div class="info-box"><i class="bi bi-check-circle-fill me-1"></i>現在報告されている不具合はありません。</div>
{% endif %}
<div class="text-end mt-2">
<a href="https://github.com/Richiesss/shift-tool/issues?q=is%3Aopen+is%3Aissue" target="_blank" rel="noopener" style="font-size:.8rem">
GitHubで確認する <i class="bi bi-box-arrow-up-right"></i>
</a>
</div>
</div>
</div>
</div>
<div style="height:1rem"></div>
</div>
{% endblock %}
{% block scripts %}
<script>
function toggleCard(header, bodyId) {
const body = document.getElementById(bodyId);
const chevron = header.querySelector('.help-card-chevron');
const isOpen = body.classList.contains('open');
body.classList.toggle('open', !isOpen);
header.classList.toggle('open', !isOpen);
chevron.classList.toggle('open', !isOpen);
}
(function() {
const hash = location.hash;
if (!hash) return;
const section = document.querySelector(hash);
if (!section) return;
const header = section.querySelector('.help-card-header');
if (header) {
const m = header.getAttribute('onclick').match(/'([^']+)'\s*\)/);
if (m) {
toggleCard(header, m[1]);
setTimeout(() => section.scrollIntoView({ behavior: 'smooth', block: 'start' }), 100);
}
}
})();
</script>
{% endblock %}