Actualiza formato del código aplicando cargo fmt
This commit is contained in:
parent
4b5caf06a7
commit
e6ea59785e
75 changed files with 1069 additions and 1160 deletions
|
|
@ -37,12 +37,12 @@ impl ModuleTrait for User {
|
|||
|
||||
async fn login() -> app::Result<Markup> {
|
||||
Page::new()
|
||||
.with_title(
|
||||
"Identificación del usuario"
|
||||
)
|
||||
.add_to("content", Container::new()
|
||||
.with_id("welcome")
|
||||
.with_component(form_login())
|
||||
.with_title("Identificación del usuario")
|
||||
.add_to(
|
||||
"content",
|
||||
Container::new()
|
||||
.with_id("welcome")
|
||||
.with_component(form_login()),
|
||||
)
|
||||
.render()
|
||||
}
|
||||
|
|
@ -50,18 +50,26 @@ async fn login() -> app::Result<Markup> {
|
|||
fn form_login() -> Form {
|
||||
Form::new()
|
||||
.with_id("user-login")
|
||||
.with_element(form::Input::textfield()
|
||||
.with_name("name")
|
||||
.with_label(l("username").as_str())
|
||||
.with_help_text(t("username_help", &args![
|
||||
"app" => SETTINGS.app.name.to_owned()
|
||||
]).as_str())
|
||||
.with_autofocus(true)
|
||||
.with_element(
|
||||
form::Input::textfield()
|
||||
.with_name("name")
|
||||
.with_label(l("username").as_str())
|
||||
.with_help_text(
|
||||
t(
|
||||
"username_help",
|
||||
&args![
|
||||
"app" => SETTINGS.app.name.to_owned()
|
||||
],
|
||||
)
|
||||
.as_str(),
|
||||
)
|
||||
.with_autofocus(true),
|
||||
)
|
||||
.with_element(form::Input::password()
|
||||
.with_name("pass")
|
||||
.with_label(l("password").as_str())
|
||||
.with_help_text(l("password_help").as_str())
|
||||
.with_element(
|
||||
form::Input::password()
|
||||
.with_name("pass")
|
||||
.with_label(l("password").as_str())
|
||||
.with_help_text(l("password_help").as_str()),
|
||||
)
|
||||
.with_element(form::Button::submit(l("login").as_str()))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue