move admin templates to settings
This commit is contained in:
parent
03a746431e
commit
1506e89c5e
|
@ -52,7 +52,7 @@ pub fn configure_admin(flash: Option<FlashMessage>, _auth: Authenticated) -> Tem
|
|||
context.flash_name = Some(flash.kind().to_string());
|
||||
context.flash_msg = Some(flash.message().to_string());
|
||||
};
|
||||
Template::render("admin/configure_admin", &context)
|
||||
Template::render("settings/admin/configure_admin", &context)
|
||||
}
|
||||
|
||||
// HELPERS AND ROUTES FOR /settings/admin/add
|
||||
|
@ -99,7 +99,7 @@ pub fn add_admin(flash: Option<FlashMessage>, _auth: Authenticated) -> Template
|
|||
context.flash_msg = Some(flash.message().to_string());
|
||||
};
|
||||
// template_dir is set in Rocket.toml
|
||||
Template::render("admin/add_admin", &context)
|
||||
Template::render("settings/admin/add_admin", &context)
|
||||
}
|
||||
|
||||
#[post("/add", data = "<add_admin_form>")]
|
||||
|
|
Loading…
Reference in New Issue