use chrono::{NaiveDate, NaiveTime}; use rinja::Template; use crate::filters; use crate::models::{AvailabilityTime, Role, User}; pub mod delete; pub mod get_new; pub mod get_overview; pub mod get_update; pub mod post_new; pub mod post_update; #[derive(Template)] #[template(path = "availability/new_or_edit.html")] struct NewOrEditAvailabilityTemplate<'a> { user: User, date: NaiveDate, id: Option, time: Option, whole_day_selected: bool, comment: Option<&'a str>, slot_suggestions: Vec<(NaiveTime, NaiveTime)>, }