details for the admin
This commit is contained in:
@@ -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(),
|
||||
},
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user