mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-29 23:11:02 +00:00
20 lines
589 B
HTML
20 lines
589 B
HTML
@use validator::ValidationErrors;
|
|
@use crate::template_utils::*;
|
|
@use crate::templates::base;
|
|
@use crate::routes::session::ResetForm;
|
|
|
|
@(ctx: BaseContext, form: &ResetForm, errors: ValidationErrors)
|
|
|
|
@:base(ctx, i18n!(ctx.1, "Reset your password"), {}, {}, {
|
|
<h1>@i18n!(ctx.1, "Reset your password")</h1>
|
|
|
|
<form method="POST">
|
|
@(Input::new("email", i18n!(ctx.1, "Email"))
|
|
.default(&form.email)
|
|
.error(&errors)
|
|
.set_prop("minlenght", 1)
|
|
.input_type("email")
|
|
.html(ctx.1))
|
|
<input type="submit" value="@i18n!(ctx.1, "Send password reset link")" />
|
|
</form>
|
|
})
|