forked from Ruderverein-Donau-Linz/rowt
implement is_locked for trip_details
This commit is contained in:
@ -47,6 +47,7 @@ struct UpdatePlannedEventForm<'r> {
|
||||
max_people: i32,
|
||||
notes: Option<&'r str>,
|
||||
always_show: bool,
|
||||
is_locked: bool,
|
||||
}
|
||||
|
||||
#[put("/planned-event", data = "<data>")]
|
||||
@ -64,6 +65,7 @@ async fn update(
|
||||
data.max_people,
|
||||
data.notes,
|
||||
data.always_show,
|
||||
data.is_locked,
|
||||
)
|
||||
.await;
|
||||
Flash::success(Redirect::to("/"), "Successfully edited the event")
|
||||
|
Reference in New Issue
Block a user