details for the admin

This commit is contained in:
Priec
2026-05-16 15:11:58 +02:00
parent 231b11b8b3
commit 40ee4cf398
4 changed files with 97 additions and 10 deletions

View File

@@ -54,6 +54,10 @@ pub struct Cell {
pub name: String,
/// Public-facing label shown on the calendar when set.
pub title: String,
/// Private — admin only. Shown in the dashboard's detailed view.
pub contact: String,
/// Private — admin only. Shown in the dashboard's detailed view.
pub note: String,
}
#[derive(Debug, Serialize)]
@@ -177,6 +181,8 @@ pub async fn build_calendar(
booking_id: b.id,
name: b.name.clone(),
title: b.title.clone().unwrap_or_default(),
contact: b.contact.clone().unwrap_or_default(),
note: b.note.clone().unwrap_or_default(),
},
None => Cell {
date: iso,
@@ -186,6 +192,8 @@ pub async fn build_calendar(
booking_id: 0,
name: String::new(),
title: String::new(),
contact: String::new(),
note: String::new(),
},
}
})