move admin templates to settings

This commit is contained in:
glyph 2021-11-15 17:53:51 +02:00
parent 03a746431e
commit 1506e89c5e
6 changed files with 2 additions and 2 deletions

View File

@ -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>")]