Plume/templates/session/password_reset.rs.html

17 lines
611 B
HTML

@use template_utils::*;
@use templates::base;
@use routes::session::NewPasswordForm;
@use validator::ValidationErrors;
@(ctx: BaseContext, form: &NewPasswordForm, errors: ValidationErrors)
@:base(ctx, i18n!(ctx.1, "Reset your password"), {}, {}, {
<h1>@i18n!(ctx.1, "Reset your password")</h1>
<form method="POST">
@input!(ctx.1, password (password), "New password", form, errors.clone(), "minlenght=\"8\"")
@input!(ctx.1, password_confirmation (password), "Confirmation", form, errors.clone(), "minlenght=\"8\"")
<input type="submit" value="@i18n!(ctx.1, "Update password")" />
</form>
})