fix: schedule status labels, Open Day halls, unsaved data guards
Schedule: - Status badges use admin config labels (not hardcoded text) everywhere - DayCard: level badge moved next to status badge - Single location: hide "Все студии" tab, auto-select the only hall - Group view: hide per-card address when all share same location - Filter tooltip z-index fixed (above dropdowns) - Trainer bio: status labels from config, not raw keys Open Day: - Hall name + address shown in schedule grid headers - Only one class card editable at a time (edit/create mutually exclusive) - Bigger action buttons (cancel/delete) on class cards - Create as empty draft (not pre-filled with published status) - Fix discount threshold input (allow delete to empty) - Skip auto-save during partial date input Admin: - SectionEditor: unsaved data guard (force-save before navigation) - Open Day + Team: same navigation guards - Contact: removed working hours field - TimeRangeField: allow end time hour changes - Schedule cards: visible borders, 90min default duration - Trainer bio: RichTextarea for description - Open Day: RichTextarea for description
This commit is contained in:
@@ -62,13 +62,12 @@ export function GroupCard({
|
||||
<>
|
||||
<span className={`${dot} shrink-0 rounded-full ${dotColor}`} />
|
||||
<span className={`${typeCls} font-semibold text-white/90`}>{type}</span>
|
||||
{levelBadge}
|
||||
</>
|
||||
);
|
||||
|
||||
return (
|
||||
<div className="flex flex-col flex-1 gap-1.5">
|
||||
{/* Type + level + status badges + extras */}
|
||||
{/* Type + address + level + status badges */}
|
||||
<div className="flex items-center gap-1.5 flex-wrap">
|
||||
{onTypeClick ? (
|
||||
<button onClick={onTypeClick} className="flex items-center gap-1.5 cursor-pointer">
|
||||
@@ -83,11 +82,10 @@ export function GroupCard({
|
||||
{shortAddress(address || location || "")}
|
||||
</span>
|
||||
)}
|
||||
{hasSlots && <ScheduleBadge size={compact ? "sm" : "md"}>есть места</ScheduleBadge>}
|
||||
{recruiting && <ScheduleBadge size={compact ? "sm" : "md"}>набор</ScheduleBadge>}
|
||||
{status && status !== "hasSlots" && status !== "recruiting" && (
|
||||
{status && (
|
||||
<ScheduleBadge size={compact ? "sm" : "md"}>{statusLabel || status}</ScheduleBadge>
|
||||
)}
|
||||
{levelBadge}
|
||||
{extraBadges}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user