m1m02530125 Claude Sonnet 4.6 commited on
Commit
228a8a3
Β·
1 Parent(s): 9653048

feat: employee names in schedule grid link to edit page

Browse files

Clicking a staff member's name in the schedule table navigates to
/employees/<id>/edit. Link styled to match the cell (no underline,
inherits text color; underline + sky-blue on hover).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. templates/schedule/index.html +11 -1
templates/schedule/index.html CHANGED
@@ -111,6 +111,13 @@
111
  .chip-hall { background: #dbeafe; color: #1e40af; border-radius: 4px; padding: 1px 5px; font-size: .75rem; }
112
  .chip-kitchen { background: #dcfce7; color: #166534; border-radius: 4px; padding: 1px 5px; font-size: .75rem; }
113
  .chip-empty { color: #cbd5e1; }
 
 
 
 
 
 
 
114
 
115
  /* ── 担当編集ヒーダル ── */
116
  .asgn-modal-content {
@@ -326,7 +333,10 @@
326
  </tr>
327
  {% for emp in employees %}
328
  <tr>
329
- <td class="emp-col">{{ emp.name }}</td>
 
 
 
330
  {% for d in dates %}
331
  {% set ds = d|string %}
332
  {% set dow = d.weekday() %}
 
111
  .chip-hall { background: #dbeafe; color: #1e40af; border-radius: 4px; padding: 1px 5px; font-size: .75rem; }
112
  .chip-kitchen { background: #dcfce7; color: #166534; border-radius: 4px; padding: 1px 5px; font-size: .75rem; }
113
  .chip-empty { color: #cbd5e1; }
114
+ /* スタッフ名γƒͺンク */
115
+ .emp-name-link {
116
+ color: inherit; text-decoration: none; display: block;
117
+ }
118
+ .emp-name-link:hover {
119
+ color: #0ea5e9; text-decoration: underline;
120
+ }
121
 
122
  /* ── 担当編集ヒーダル ── */
123
  .asgn-modal-content {
 
333
  </tr>
334
  {% for emp in employees %}
335
  <tr>
336
+ <td class="emp-col">
337
+ <a href="{{ url_for('employees.edit', emp_id=emp.id) }}"
338
+ class="emp-name-link">{{ emp.name }}</a>
339
+ </td>
340
  {% for d in dates %}
341
  {% set ds = d|string %}
342
  {% set dow = d.weekday() %}