Add resend confirmation functionality for petition signatures
Add link to resend confirmation page from main form Add new resend confirmation page with form Implement backend logic to handle resend requests Add translations for new functionality Update thank you page with resend confirmation link
This commit is contained in:
parent
fffd51422c
commit
c8efa479bc
7 changed files with 208 additions and 1 deletions
|
|
@ -1,4 +1,7 @@
|
|||
<h1 id="sign-now">Signer her for å vise din støtte</h1>
|
||||
|
||||
<?= $petition_form ?? '' ?>
|
||||
|
||||
<p class="text-small text-muted">Har du allerede signert, men ikke mottatt bekreftelsesmail? <a href="send-bekreftelse-pa-nytt/">Send bekreftelse på nytt</a></p>
|
||||
|
||||
<?= $petition_signatures ?? '' ?>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,21 @@
|
|||
<h1>Send bekreftelse på nytt</h1>
|
||||
|
||||
<p>Skriv inn e-postadressen du brukte da du signerte, så sender vi en ny bekreftelseslenke.</p>
|
||||
|
||||
<?php if (!empty($petition_resend_message)): ?>
|
||||
<div class="form-message form-message--<?= htmlspecialchars($petition_resend_message['type']) ?>" role="alert">
|
||||
<p><?= htmlspecialchars($petition_resend_message['text']) ?></p>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="post" action="" class="resend-form">
|
||||
<div class="form-group">
|
||||
<label for="resend_email">E-post</label>
|
||||
<input type="email" id="resend_email" name="resend_email" placeholder="din@epost.no" required maxlength="100">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<button type="submit" name="petition_resend" class="button">Send på nytt</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<p><a href="../">Tilbake til underskriftskampanjen</a></p>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
title = "Send bekreftelse på nytt"
|
||||
plugins = "petition-form"
|
||||
petition_id = "medisinsk-cannabis-pa-resept"
|
||||
petition_title = "Underskriftskampanje: Ja til medisinsk cannabis på resept!"
|
||||
|
||||
[en]
|
||||
title = "Resend confirmation"
|
||||
petition_title = "Petition: Yes to medical cannabis on prescription!"
|
||||
|
|
@ -0,0 +1 @@
|
|||
@import url("../styles.css");
|
||||
|
|
@ -8,4 +8,6 @@
|
|||
<?php endif; ?>
|
||||
</div>
|
||||
|
||||
<p>Fikk du ikke e-posten? <a href="../send-bekreftelse-pa-nytt/">Send bekreftelse på nytt</a></p>
|
||||
|
||||
<p><a href="../">Tilbake til underskriftskampanjen</a></p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue