@use templates::base; @use routes::session::LoginForm; @use routes::RemoteForm; @use template_utils::*; @use validator::ValidationErrors; @(ctx: BaseContext, title: String, login_msg: String, remote_msg: String, header: Content, login_form: LoginForm, login_errs: ValidationErrors, remote_form: RemoteForm, remote_errs: ValidationErrors) @:base(ctx, title, {}, {}, {
@:header()

@i18n!(ctx.1, "I'm from this instance")

@login_msg

@(Input::new("email_or_name", i18n!(ctx.1, "Username, or email")) .default(&login_form.email_or_name) .error(&login_errs) .set_prop("minlenght", 1) .html(ctx.1)) @(Input::new("password", i18n!(ctx.1, "Password")) .default(login_form.password) .error(&login_errs) .set_prop("minlength", 1) .html(ctx.1))

@i18n!(ctx.1, "I'm from another instance")

@remote_msg

@(Input::new("remote", i18n!(ctx.1, "Username")) .details("Example: user@plu.me") .default(&remote_form.remote) .error(&remote_errs) .set_prop("minlenght", 1) .html(ctx.1))
})