@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!(ctx.1, email_or_name (text), "Username, or email", login_form, login_errs.clone(), "minlenght=\"1\"") @input!(ctx.1, password (password), "Password", login_form, login_errs, "minlenght=\"1\"")

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

@remote_msg

@input!(ctx.1, remote (text), "Username", "Example: user@plu.me", remote_form, remote_errs.clone(), "minlenght=\"1\"")
})