Reworked calendar form
Build and Publish / Build and Publish Docker Image (push) Successful in 2m17s

This commit is contained in:
Ultradesu
2026-05-18 17:07:43 +03:00
parent 90fd4f86f8
commit 43441ee430
6 changed files with 462 additions and 168 deletions
+3
View File
@@ -274,6 +274,7 @@ struct ScheduleNewTemplate<'a> {
clients: Vec<Client>,
users: Vec<User>,
current_user_id: i64,
timezone: String,
}
#[derive(Debug, Template)]
@@ -1110,6 +1111,7 @@ async fn schedule_new_page(
let current_user_id = get_admin_id(&session).await.unwrap_or(0);
let clients = query!(Client, $status == "active").all(&db).await?;
let users = query!(User, $status == "active").all(&db).await?;
let tz = crate::tz::load_tz(&db).await;
let body = ScheduleNewTemplate {
t: lang.t(),
lang,
@@ -1117,6 +1119,7 @@ async fn schedule_new_page(
clients,
users,
current_user_id,
timezone: tz.to_string(),
}
.render()?;
html_response(body, lang)