show info, if scheckbuch is not yet paid
This commit is contained in:
@ -13,7 +13,7 @@ use crate::model::{
|
||||
logbook::Logbook,
|
||||
tripdetails::TripDetails,
|
||||
triptype::TripType,
|
||||
user::{AllowedForPlannedTripsUser, User, UserWithDetails},
|
||||
user::{AllowedForPlannedTripsUser, User, UserWithDetails, SCHECKBUCH},
|
||||
usertrip::{UserTrip, UserTripDeleteError, UserTripError},
|
||||
};
|
||||
|
||||
@ -46,6 +46,7 @@ async fn index(
|
||||
context.insert("fee", &user.fee(db).await);
|
||||
context.insert("loggedin_user", &UserWithDetails::from_user(user, db).await);
|
||||
context.insert("days", &days);
|
||||
context.insert("costs_scheckbuch", &SCHECKBUCH);
|
||||
Template::render("planned", context.into_json())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user