Reworked calendar form
Build and Publish / Build and Publish Docker Image (push) Successful in 2m17s
Build and Publish / Build and Publish Docker Image (push) Successful in 2m17s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user