|
|
@ -48,69 +48,56 @@ window.email = "{{user.email}}"; |
|
|
|
</form> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="container text-center" id="donation-stuff"> |
|
|
|
<div class="container text-center" id="donation-stuff"> |
|
|
|
<h3>How much?</h3> |
|
|
|
<h3>How much?</h3> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col-md-8 col-md-offset-2"> |
|
|
|
<div class="col-md-8 col-md-offset-2"> |
|
|
|
<div class="btn-group btn-group-justified amounts" role="group" aria-label="..."> |
|
|
|
<div class="btn-group btn-group-justified amounts" role="group" aria-label="..."> |
|
|
|
<div class="btn-group" role="group"> |
|
|
|
{% for amt in _cfg("default-amounts").split(" ") %} |
|
|
|
<button data-amount="5" type="button" |
|
|
|
<div class="btn-group" role="group"> |
|
|
|
class="btn btn-default {{"active" if _cfgi("default-amount") == 5 else ""}}"> |
|
|
|
<button data-amount="{{ amt }}" type="button" |
|
|
|
$5</button> |
|
|
|
class="btn btn-default {{"active" if _cfg("default-amount") == amt else ""}}" |
|
|
|
</div> |
|
|
|
>${{ amt }}</button> |
|
|
|
<div class="btn-group" role="group"> |
|
|
|
|
|
|
|
<button data-amount="10" type="button" |
|
|
|
|
|
|
|
class="btn btn-default {{"active" if _cfgi("default-amount") == 10 else ""}}"> |
|
|
|
|
|
|
|
$10</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="btn-group" role="group"> |
|
|
|
|
|
|
|
<button data-amount="20" type="button" |
|
|
|
|
|
|
|
class="btn btn-default {{"active" if _cfgi("default-amount") == 20 else ""}}"> |
|
|
|
|
|
|
|
$20</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="btn-group" role="group"> |
|
|
|
|
|
|
|
<button data-amount="50" type="button" |
|
|
|
|
|
|
|
class="btn btn-default {{"active" if _cfgi("default-amount") == 50 else ""}}"> |
|
|
|
|
|
|
|
$50</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="btn-group" role="group"> |
|
|
|
|
|
|
|
<button data-amount="custom" type="button" class="btn btn-default">Custom</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
{% endfor %} |
|
|
|
<div class="row hidden" id="custom-amount" style="margin-top: 20px;"> |
|
|
|
<div class="btn-group" role="group"> |
|
|
|
<div class="col-md-4 col-md-offset-4"> |
|
|
|
<button data-amount="custom" type="button" class="btn btn-default">Custom</button> |
|
|
|
<div class="form-group"> |
|
|
|
|
|
|
|
<div class="input-group"> |
|
|
|
|
|
|
|
<span class="input-group-addon">$</span> |
|
|
|
|
|
|
|
<input id="custom-amount-text" type="text" value="13.37" |
|
|
|
|
|
|
|
class="form-control" placeholder="Amount" /> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<h3>How often?</h3> |
|
|
|
</div> |
|
|
|
<div class="row"> |
|
|
|
<div class="row hidden" id="custom-amount" style="margin-top: 20px;"> |
|
|
|
<div class="col-md-4 col-md-offset-4"> |
|
|
|
<div class="col-md-4 col-md-offset-4"> |
|
|
|
{% if _cfg("enable-bitcoin") == "yes" %} |
|
|
|
<div class="form-group"> |
|
|
|
<p class="text-muted"><small>Bitcoin is only supported for one-time donations.</small></p> |
|
|
|
<div class="input-group"> |
|
|
|
{% endif %} |
|
|
|
<span class="input-group-addon">$</span> |
|
|
|
<div class="form-group"> |
|
|
|
<input id="custom-amount-text" type="text" value="13.37" |
|
|
|
<div class="btn-group btn-group-justified frequencies" role="group" aria-label="..."> |
|
|
|
class="form-control" placeholder="Amount" /> |
|
|
|
<div class="btn-group" role="group"> |
|
|
|
|
|
|
|
<button data-frequency="once" type="button" |
|
|
|
|
|
|
|
class="btn btn-default {{"active" if _cfg("default-type")=="once" else ""}}"> |
|
|
|
|
|
|
|
Once</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="btn-group" role="group"> |
|
|
|
|
|
|
|
<button data-frequency="monthly" type="button" |
|
|
|
|
|
|
|
class="btn btn-default {{"active" if _cfg("default-type")=="monthly" else ""}}"> |
|
|
|
|
|
|
|
Monthly</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<h3>How often?</h3> |
|
|
|
|
|
|
|
<div class="row"> |
|
|
|
|
|
|
|
<div class="col-md-4 col-md-offset-4"> |
|
|
|
|
|
|
|
{% if _cfg("enable-bitcoin") == "yes" %} |
|
|
|
|
|
|
|
<p class="text-muted"><small>Bitcoin is only supported for one-time donations.</small></p> |
|
|
|
|
|
|
|
{% endif %} |
|
|
|
|
|
|
|
<div class="form-group"> |
|
|
|
|
|
|
|
<div class="btn-group btn-group-justified frequencies" role="group" aria-label="..."> |
|
|
|
|
|
|
|
<div class="btn-group" role="group"> |
|
|
|
|
|
|
|
<button data-frequency="once" type="button" |
|
|
|
|
|
|
|
class="btn btn-default {{"active" if _cfg("default-type")=="once" else ""}}" |
|
|
|
|
|
|
|
>Once</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="btn-group" role="group"> |
|
|
|
|
|
|
|
<button data-frequency="monthly" type="button" |
|
|
|
|
|
|
|
class="btn btn-default {{"active" if _cfg("default-type")=="monthly" else ""}}" |
|
|
|
|
|
|
|
>Monthly</button> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
{% if len(projects) > 1 %} |
|
|
|
{% if len(projects) > 1 %} |
|
|
|
<h3>What project?</h3> |
|
|
|
<h3>What project?</h3> |
|
|
|
<div class="row"> |
|
|
|
<div class="row"> |
|
|
|