22 lines
472 B
Rust
22 lines
472 B
Rust
use chrono::NaiveDate;
|
|
use rinja::Template;
|
|
|
|
use crate::models::{Event, Location, Role, User};
|
|
|
|
pub mod get_edit;
|
|
pub mod get_new;
|
|
pub mod get_plan;
|
|
pub mod post_new;
|
|
|
|
#[derive(Template)]
|
|
#[template(path = "events/new_or_edit.html")]
|
|
pub struct NewEventTemplate {
|
|
user: User,
|
|
date: NaiveDate,
|
|
locations: Vec<Location>,
|
|
event: Option<Event>,
|
|
amount_of_planned_posten: usize,
|
|
is_fuehrungsassistent_planned: bool,
|
|
is_wachhabender_planned: bool,
|
|
}
|