Bug 34478: (follow-up) Move resend link out of form for display reasons

This improves display. This only comes up when you try to reset your
password after you did already.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Marcel de Rooy 2024-03-01 07:27:00 +00:00 committed by Jonathan Druart
parent c9375e746b
commit 18b046598c
No known key found for this signature in database
GPG Key ID: A085E712BEF0E0F0
1 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@
$("fieldset#" + $(this).val() ).show();
});
$("#resendmail").click(function() {
$("#resendform").get(0).submit();
$("#resendform").submit();
});
[% IF (new_password) %]
$("#mainform").validate({
@ -97,9 +97,9 @@
[% END %]
<br/>You should have received an email with a link to reset your password.
<br/>If you did not receive this email, you can request a new one:
<form style="display:inline-block;" method="post" id="resendform" action="/cgi-bin/koha/opac-password-recovery.pl">
<a href="#" id="resendmail">Get new password recovery link</a>
<form method="post" id="resendform" action="/cgi-bin/koha/opac-password-recovery.pl">
[% INCLUDE 'csrf-token.inc' %]
<a href="#" id="resendmail">Get new password recovery link</a>
<input type="hidden" name="op" value="cud-resendEmail" />
<input type="hidden" name="email" value="[% email | url %]" />
<input type="hidden" name="username" value="[% username | uri %]" />