@use validator::ValidationErrors; @use crate::template_utils::*; @use crate::templates::base; @use crate::routes::session::NewPasswordForm; @(ctx: BaseContext, form: &NewPasswordForm, errors: ValidationErrors) @:base(ctx, i18n!(ctx.1, "Reset your password"), {}, {}, {

@i18n!(ctx.1, "Reset your password")

@(Input::new("password", i18n!(ctx.1, "New password")) .default(&form.password) .error(&errors) .set_prop("minlenght", 8) .input_type("password") .html(ctx.1)) @(Input::new("password_confirmation", i18n!(ctx.1, "Confirmation")) .default(&form.password_confirmation) .error(&errors) .set_prop("minlenght", 8) .input_type("password") .html(ctx.1))
})