Require subscribers to have JavaScript turned on
This commit is contained in:
parent
83ac907f24
commit
e1ace459cf
5 changed files with 34 additions and 11 deletions
|
@ -1,3 +1,11 @@
|
|||
<div class="alert alert-warning alert-dismissible" role="alert" id="js-warning">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<strong>Warning!</strong> If JavaScript was not enabled then no confirmation message was sent
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('js-warning').style.display = 'none';
|
||||
</script>
|
||||
|
||||
<h2>Almost finished.</h2>
|
||||
|
||||
<p>We need to confirm your email address. To complete the subscription process, please click the link in the email we just sent you.</p>
|
||||
|
|
|
@ -5,6 +5,14 @@
|
|||
</form>
|
||||
{{/if}}
|
||||
|
||||
<div class="alert alert-warning alert-dismissible" role="alert" id="js-warning">
|
||||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
|
||||
<strong>Warning!</strong> JavaScript must be enabled in order for the subscription form to work
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('js-warning').style.display = 'none';
|
||||
</script>
|
||||
|
||||
<form method="post" action="/subscription/{{cid}}/subscribe">
|
||||
|
||||
<input type="hidden" name="_csrf" value="{{csrfToken}}">
|
||||
|
@ -120,9 +128,12 @@
|
|||
</div>
|
||||
{{/each}}
|
||||
|
||||
<div class="form-group">
|
||||
<div class="form-group" id="js-subscribe" style="display: none">
|
||||
<button type="submit" class="btn btn-primary">Subscribe to list</button>
|
||||
</div>
|
||||
<script>
|
||||
document.getElementById('js-subscribe').style.display = 'block';
|
||||
</script>
|
||||
</form>
|
||||
|
||||
<script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue