Mercurial > public > sg101
changeset 1169:8d785b6ee532
Fix for sudden broken donations form.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 20 Nov 2017 18:12:24 -0600 |
parents | 90e8cc6eff77 |
children | b213e4b333bb |
files | sg101/templates/donations/index.html |
diffstat | 1 files changed, 7 insertions(+), 19 deletions(-) [+] |
line wrap: on
line diff
--- a/sg101/templates/donations/index.html Sun Nov 05 14:59:26 2017 -0600 +++ b/sg101/templates/donations/index.html Mon Nov 20 18:12:24 2017 -0600 @@ -23,24 +23,11 @@ <form action="{{ form_action }}" method="post"> <fieldset class="fieldset"> <legend>Donation Form</legend> - <p>Please select an amount:</p> - <ul class="no-bullet"> - <li><input name="amount" type="radio" value="5.00" id="amount_5" /> - <label for="amount_5">$5</label></li> - <li><input name="amount" type="radio" value="10.00" id="amount_10" /> - <label for="amount_10">$10</label></li> - <li><input name="amount" type="radio" value="15.00" id="amount_15" /> - <label for="amount_15">$15</label></li> - <li><input name="amount" type="radio" value="20.00" id="amount_20" /> - <label for="amount_20">$20</label></li> - <li><input name="amount" type="radio" value="" id="amount_other_r" /> - <label for="amount_other">Other:</label> - <div class="input-group"> - <span class="input-group-label">$</span> - <input class="input-group-field" name="amount" type="number" value="25.00" id="amount_other" /> - </div> - </li> - </ul> + <p>Please enter an amount:</p> + <div class="input-group"> + <span class="input-group-label">$</span> + <input class="input-group-field" name="amount" type="number" value="5.00"/> + </div> {% if user.is_authenticated %} <input type="hidden" name="custom" value="{{ user.username }}" /> <p>You are currently logged in. Would you like your site username listed with your donation?</p> @@ -48,7 +35,8 @@ <li><input name="item_number" type="radio" value="{{ item_number }}" id="name_yes" /> <label for="name_yes">Yes, list me as {{ user.username }}</label></li> {% else %} - <p>You are not currently logged in. Please <a href="{% url 'accounts-login' %}">log in</a> + <p>You are not currently logged in. + Please <a href="{% url 'accounts-login' %}?next={% url 'donations-index' %}">log in</a> if you would like your site username listed with your donation. Otherwise you can have your actual name (from Paypal) listed, or you can be listed as {{ anonymous }}.</p> <ul class="no-bullet">