Clarified Co-Lead badging.
This commit is contained in:
parent
940cf29d04
commit
6eb72c5091
3 changed files with 15 additions and 4 deletions
|
|
@ -149,7 +149,7 @@
|
|||
<div class="kiosk-vol-name">{state.volunteer.name}</div>
|
||||
<div class="kiosk-vol-meta">
|
||||
{state.volunteer.email || ''}
|
||||
{state.volunteer.is_lead ? ' · Department Lead' : ''}
|
||||
{state.volunteer.is_lead ? ' · Co-Lead' : ''}
|
||||
</div>
|
||||
<div class="kiosk-token">Token: <code>{token}</code></div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -397,6 +397,9 @@
|
|||
{#each assigned as { vs, volunteer }}
|
||||
<div class="board-vol-chip">
|
||||
{volunteer.name}
|
||||
{#if volunteer.is_lead}
|
||||
<span class="chip-lead">Co-Lead</span>
|
||||
{/if}
|
||||
{#if checkConflict(volunteer.id, shift.id, $allVolunteerShifts ?? [], $allShifts ?? [])}
|
||||
<span title="Scheduling conflict" style="color:var(--c-warn)">⚠</span>
|
||||
{/if}
|
||||
|
|
@ -514,6 +517,14 @@
|
|||
font-size: 0.78rem;
|
||||
font-weight: 500;
|
||||
}
|
||||
.chip-lead {
|
||||
font-size: 0.68rem;
|
||||
font-weight: 600;
|
||||
background: rgba(245,158,11,0.2);
|
||||
color: var(--c-warn);
|
||||
padding: 0.05rem 0.3rem;
|
||||
border-radius: 99px;
|
||||
}
|
||||
.board-vol-remove {
|
||||
background: none;
|
||||
border: none;
|
||||
|
|
|
|||
|
|
@ -216,7 +216,7 @@
|
|||
<td>
|
||||
<strong>{v.name}</strong>
|
||||
{#if v.is_lead}
|
||||
<span class="badge badge-lead" style="margin-left:0.4rem">Lead</span>
|
||||
<span class="badge badge-lead" style="margin-left:0.4rem">Co-Lead</span>
|
||||
{/if}
|
||||
{#if !v.participant_id}
|
||||
<span class="badge badge-unchecked" style="margin-left:0.4rem" title="Not linked to a participant — no ticket record">No ticket</span>
|
||||
|
|
@ -253,8 +253,8 @@
|
|||
{#if canManage}
|
||||
<td>
|
||||
<button class="btn btn-ghost btn-sm" onclick={() => toggleLead(v)}
|
||||
title={v.is_lead ? 'Remove lead' : 'Mark as lead'}>
|
||||
{v.is_lead ? 'Unlead' : 'Lead'}
|
||||
title={v.is_lead ? 'Remove co-lead' : 'Mark as co-lead'}>
|
||||
{v.is_lead ? '− Co-Lead' : '+ Co-Lead'}
|
||||
</button>
|
||||
<button class="btn btn-danger btn-sm" onclick={() => deleteVolunteer(v)}>Delete</button>
|
||||
</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue