131 lines
6 KiB
HTML
131 lines
6 KiB
HTML
{% extends "nosystemd/base.html" %}
|
|
{% load staticfiles bootstrap3 %}
|
|
{% block content %}
|
|
<!-- Credit card form -->
|
|
|
|
<header class="donation-container">
|
|
<div class="header-content ">
|
|
<div class="header-content-inner ">
|
|
|
|
<div class="container">
|
|
<form role="form" id="donation-form" name="donation-form" method="post" action="{% url 'nosystemd:make_donation' %}" novalidate>
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-4 col-md-offset-3" >
|
|
<h3><b>Monthly Donation</b></h3>
|
|
<hr>
|
|
<!-- <form role="form" novalidate> -->
|
|
<div class="row">
|
|
<div class="col-xs-9 col-md-4 col-md-offset-4">
|
|
<div class="form-group">
|
|
{% bootstrap_field form.donation_amount show_label=False type='fields'%}
|
|
<!-- <input type="number" class="form-control" placeholder="Amount to donate" name="donation" /> -->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- </form> -->
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-12 col-md-4 col-md-offset-3 billing">
|
|
<h3><b>Billing Address</b></h3>
|
|
<hr>
|
|
{% for field in form %}
|
|
{% csrf_token %}
|
|
|
|
{% if not field.name == 'donation_amount' %}
|
|
{% bootstrap_field field show_label=False type='fields'%}
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% bootstrap_form_errors form type='non_fields'%}
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-6 col-md-4 col-md-offset-3 creditcard-box">
|
|
<h3><b>Payment Details</b></h3>
|
|
<hr>
|
|
<div>
|
|
<div>
|
|
<form role="form" id="payment-form" novalidate>
|
|
<div class="row">
|
|
<div class="col-xs-9 col-md-12">
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" name="cardName" placeholder="Name on card" required autofocus data-stripe="name" />
|
|
<span class="input-group-addon"><i class="fa fa-user" aria-hidden="true"></i></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-9 col-md-12">
|
|
<div class="form-group">
|
|
<div class="input-group">
|
|
<input type="text" class="form-control" name="cardNumber" placeholder="Valid Card Number" required data-stripe="number" />
|
|
<span class="input-group-addon"><i class="fa fa-credit-card"></i></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-6 col-md-7">
|
|
<div class="form-group">
|
|
<label for="expMonth">EXPIRATION DATE</label><br/>
|
|
<div class="col-xs-6 col-lg-6 col-md-6 pl-ziro">
|
|
<input type="text" class="form-control" name="expMonth" placeholder="MM" required data-stripe="exp_month" />
|
|
</div>
|
|
<div class="col-xs-6 col-lg-6 col-md-6 pl-ziro">
|
|
<input type="text" class="form-control" name="expYear" placeholder="YY" required data-stripe="exp_year" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-xs-4 col-md-5 pull-right">
|
|
<div class="form-group">
|
|
<label for="cvCode">CV CODE</label>
|
|
<input type="password" class="form-control" name="cvCode" placeholder="CV" required data-stripe="cvc" />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<button class="btn btn-success btn-lg btn-block" type="submit">Submit Donation</button>
|
|
</div>
|
|
</div>
|
|
<div class="row" style="display:none;">
|
|
<div class="col-xs-12">
|
|
<p class="payment-errors"></p>
|
|
</div>
|
|
</div>
|
|
{% if paymentError %}
|
|
<div class="row">
|
|
<div class="col-xs-12">
|
|
<p>
|
|
{% bootstrap_alert paymentError alert_type='danger' %}
|
|
</p>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
|
|
<!-- stripe key data -->
|
|
{% if stripe_key %}
|
|
<script type="text/javascript">
|
|
(function () {window.stripeKey = "{{stripe_key}}";})();
|
|
</script>
|
|
{%endif%}
|
|
|
|
{%endblock%}
|
|
|
|
|
|
|
|
|