Add with_component() to region "content" in Page

This commit is contained in:
Manuel Cillero 2024-02-27 13:19:12 +01:00
parent 9be23d3cd8
commit e011cf7f62
8 changed files with 19 additions and 14 deletions

View file

@ -154,8 +154,7 @@ pub async fn summary(request: service::HttpRequest) -> ResultPage<Markup, ErrorP
//.with_context(ContextOp::Theme("Bootsier"))
.with_title(L10n::n("Admin"))
.with_component_in("top-menu", side_menu)
.with_component_in(
"content",
.with_component(
flex::Container::new()
.add_item(flex::Item::new().add_component(Html::with(html! {
p { "Columna 1"}

View file

@ -32,8 +32,7 @@ impl PackageTrait for User {
async fn login(request: service::HttpRequest) -> ResultPage<Markup, ErrorPage> {
Page::new(request)
.with_title(L10n::n("Identificación del usuario"))
.with_component_in(
"content",
.with_component(
Wrapper::new()
.with_id("welcome")
.add_component(form_login()),