♻️ Atributos class e id explícitos en html!
Se usa `class="..."` e `id="..."` en lugar de `div.a #x`. El HTML generado es idéntico.
This commit is contained in:
parent
58d1fef4f1
commit
3f3634fdab
21 changed files with 80 additions and 74 deletions
|
|
@ -22,7 +22,7 @@ use pagetop::prelude::*;
|
|||
// formularios de autenticación y por los de administración.
|
||||
pub(crate) fn error_banner(error: Option<Lc>) -> Html {
|
||||
Html::with(move |cx| match &error {
|
||||
Some(e) => html! { div.user-form-error role="alert" { (e.clone().using(cx)) } },
|
||||
Some(e) => html! { div class="user-form-error" role="alert" { (e.clone().using(cx)) } },
|
||||
None => html! {},
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue