2016-09-09 04:24:52 +00:00
|
|
|
{% extends "new_base_glarus.html" %}
|
|
|
|
{% load staticfiles bootstrap3 i18n %}
|
|
|
|
{% block content %}
|
2016-12-05 15:24:46 +00:00
|
|
|
<style type="text/css">
|
|
|
|
|
|
|
|
|
|
|
|
@media only screen and (max-width: 320px) {
|
|
|
|
|
2016-12-19 14:33:15 +00:00
|
|
|
/*body { font-size: 2em; }*/
|
|
|
|
h2.section-heading {font-size: 2em !important;}
|
2016-12-05 15:24:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
}
|
2016-12-19 14:33:15 +00:00
|
|
|
|
2016-12-05 15:24:46 +00:00
|
|
|
</style>
|
2016-09-09 04:24:52 +00:00
|
|
|
|
|
|
|
<!-- Header -->
|
|
|
|
<!-- Services Section -->
|
|
|
|
<section id="price">
|
|
|
|
<div class="signup-container">
|
|
|
|
<div class="col-xs-12 col-sm-6 col-lg-8 text-center wow fadeInDown">
|
|
|
|
<div class="payment-box">
|
Reduced pixels needed to navbar transition color, Added membership deactivation form, Added membership deactivation view, Added membership status, Added membership charged.html, Added membership charged.txt, Extended class to send membership charge email, After membership, charge for first time an email is sent to the user, Fixed bug on redirecting, user to membership payment after signup, Fixed redirecting after buying a membership
2016-09-14 05:24:20 +00:00
|
|
|
<h2 class="section-heading payment-head">Your Membership History</h2>
|
2016-09-09 04:24:52 +00:00
|
|
|
<hr class="greyline-long">
|
|
|
|
<h2 class="order-head">Member Name</h2>
|
|
|
|
<h2 class="member-name">{{request.user.name}}</h2>
|
|
|
|
<hr class="greyline-long">
|
2016-10-19 04:29:07 +00:00
|
|
|
<h2 class="order-head">Current Membership</h2>
|
2016-10-23 23:09:01 +00:00
|
|
|
{% if membership_start_date and membership_end_date%}
|
|
|
|
<h2 class="member-name">{{membership_start_date|date}}-{{membership_end_date|date}}</h2>
|
|
|
|
{% else %}
|
2016-12-13 15:54:05 +00:00
|
|
|
<h2 class="member-name">You don't have an active membership</h2>
|
2016-10-23 23:09:01 +00:00
|
|
|
{% endif %}
|
2016-09-09 04:24:52 +00:00
|
|
|
<hr class="greyline-long">
|
Reduced pixels needed to navbar transition color, Added membership deactivation form, Added membership deactivation view, Added membership status, Added membership charged.html, Added membership charged.txt, Extended class to send membership charge email, After membership, charge for first time an email is sent to the user, Fixed bug on redirecting, user to membership payment after signup, Fixed redirecting after buying a membership
2016-09-14 05:24:20 +00:00
|
|
|
<h2 class="order-head">Orders history</h2>
|
2016-12-19 14:33:15 +00:00
|
|
|
<div style="overflow-x:auto;">
|
|
|
|
|
|
|
|
<table class="table" >
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>#</th>
|
|
|
|
<th>Valid Month</th>
|
|
|
|
<th>Date</th>
|
|
|
|
<th>Invoice</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for order in orders%}
|
|
|
|
<tr>
|
|
|
|
<th scope="row">{{order.id}}</th>
|
|
|
|
<td>{{order.created_at|date:"F"}}</td>
|
|
|
|
<td>{{order.created_at|date}}</td>
|
|
|
|
<td><a class="btn btn-xs btn-primary btn-darkgrey" href="{% url 'digitalglarus:membership_orders_detail' order.id %}">View</a></td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2016-10-14 04:33:48 +00:00
|
|
|
|
|
|
|
<h2 class="order-head">Billing Adress<a class="btn btn-primary btn-grey btn-edit" href="{% url 'digitalglarus:user_billing_address' %}">Edit</a></h2>
|
|
|
|
<h2 class="history-name">
|
|
|
|
{{request.user.name}}
|
|
|
|
</h2>
|
2016-10-23 23:09:01 +00:00
|
|
|
{% if billing_address %}
|
2016-10-14 04:33:48 +00:00
|
|
|
<h2 class="history-name">
|
|
|
|
{{billing_address.street_address}},{{billing_address.postal_code}}<br>
|
|
|
|
{{billing_address.city}}, {{billing_address.country}}.
|
2016-09-09 04:24:52 +00:00
|
|
|
</h2>
|
2016-10-23 23:09:01 +00:00
|
|
|
{% else %}
|
|
|
|
<h2 class="history-name">
|
|
|
|
Edit your billing address
|
|
|
|
</h2>
|
|
|
|
{% endif %}
|
Reduced pixels needed to navbar transition color, Added membership deactivation form, Added membership deactivation view, Added membership status, Added membership charged.html, Added membership charged.txt, Extended class to send membership charge email, After membership, charge for first time an email is sent to the user, Fixed bug on redirecting, user to membership payment after signup, Fixed redirecting after buying a membership
2016-09-14 05:24:20 +00:00
|
|
|
<hr class="greyline-long">
|
|
|
|
<h2 class="order-head">Your Next Membership</h2>
|
2016-11-01 04:01:43 +00:00
|
|
|
{% if next_membership_start_date and next_membership_end_date and current_membership.active %}
|
2016-10-23 23:09:01 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
Reduced pixels needed to navbar transition color, Added membership deactivation form, Added membership deactivation view, Added membership status, Added membership charged.html, Added membership charged.txt, Extended class to send membership charge email, After membership, charge for first time an email is sent to the user, Fixed bug on redirecting, user to membership payment after signup, Fixed redirecting after buying a membership
2016-09-14 05:24:20 +00:00
|
|
|
<h2 class="history-name">
|
2016-10-23 23:09:01 +00:00
|
|
|
Dates: {{next_membership_start_date|date}} - {{next_membership_end_date|date}}<br>
|
Reduced pixels needed to navbar transition color, Added membership deactivation form, Added membership deactivation view, Added membership status, Added membership charged.html, Added membership charged.txt, Extended class to send membership charge email, After membership, charge for first time an email is sent to the user, Fixed bug on redirecting, user to membership payment after signup, Fixed redirecting after buying a membership
2016-09-14 05:24:20 +00:00
|
|
|
</h2>
|
2016-11-01 04:01:43 +00:00
|
|
|
{% elif current_membership.active == False %}
|
|
|
|
<h2 class="history-name">
|
|
|
|
Your membership is deactivated
|
|
|
|
</h2>
|
2016-10-23 23:09:01 +00:00
|
|
|
{% else %}
|
|
|
|
<h2 class="history-name">
|
2016-11-01 04:01:43 +00:00
|
|
|
You are not a member.
|
2016-10-23 23:09:01 +00:00
|
|
|
</h2>
|
|
|
|
{% endif %}
|
2016-11-01 04:01:43 +00:00
|
|
|
{% if not current_membership == None %}
|
|
|
|
{% if current_membership.active %}
|
|
|
|
<div class="edit-button">
|
|
|
|
<a class="btn btn-primary btn-grey btn-deactivate print" href="{% url 'digitalglarus:membership_deactivate' %}">Deactivate</a>
|
|
|
|
</div>
|
|
|
|
{% elif not current_membership.active %}
|
|
|
|
<form method="POST" action="{% url 'digitalglarus:membership_reactivate' %}">
|
|
|
|
{% csrf_token %}
|
|
|
|
<div class="edit-button">
|
|
|
|
<button type="submit" class="btn btn-primary btn-grey btn-deactivate print" href="{% url 'digitalglarus:membership_reactivate' %}">Reactivate</button>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
<div class="edit-button">
|
|
|
|
<a class="btn btn-primary btn-blue" href="{% url 'digitalglarus:membership_pricing' %}">Become a member</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2016-10-14 04:33:48 +00:00
|
|
|
<hr class="greyline-long">
|
Reduced pixels needed to navbar transition color, Added membership deactivation form, Added membership deactivation view, Added membership status, Added membership charged.html, Added membership charged.txt, Extended class to send membership charge email, After membership, charge for first time an email is sent to the user, Fixed bug on redirecting, user to membership payment after signup, Fixed redirecting after buying a membership
2016-09-14 05:24:20 +00:00
|
|
|
<div class="row">
|
2016-10-14 04:33:48 +00:00
|
|
|
<div class="col-md-12 notice-box">
|
|
|
|
<p class="order-bottom-text">You will be charged on the first of the month until you
|
|
|
|
cancel your subscription. Previous charges won't be refunded.</p>
|
Reduced pixels needed to navbar transition color, Added membership deactivation form, Added membership deactivation view, Added membership status, Added membership charged.html, Added membership charged.txt, Extended class to send membership charge email, After membership, charge for first time an email is sent to the user, Fixed bug on redirecting, user to membership payment after signup, Fixed redirecting after buying a membership
2016-09-14 05:24:20 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-09-09 04:24:52 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-xs-12 col-sm-4 col-lg-4 wow fadeInDown">
|
2016-10-14 04:33:48 +00:00
|
|
|
|
2016-09-09 04:24:52 +00:00
|
|
|
<div class="order-summary">
|
2016-10-14 04:33:48 +00:00
|
|
|
|
|
|
|
{% if messages %}
|
|
|
|
<div class="order-box">
|
|
|
|
<h2 class="thankyou">Message</h2>
|
|
|
|
<hr class="greyline">
|
|
|
|
{% for message in messages %}
|
|
|
|
<h2 class="signup-lead text-center">{{ message }}</h2>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
|
|
|
|
<h2 class="thankyou">Thank You!</h2>
|
2016-09-09 04:24:52 +00:00
|
|
|
<div class="order-box">
|
|
|
|
<span class="glyphicon glyphicon-heart icon-up"></span>
|
2016-10-14 04:33:48 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-09 04:24:52 +00:00
|
|
|
<h2 class="signup-lead text-center">Digital Glarus lives with your love!<br>
|
|
|
|
Our coworking space is here because of your love and support.</h2>
|
|
|
|
|
|
|
|
<hr class="greyline">
|
2016-10-14 04:33:48 +00:00
|
|
|
<p class="order-bottom-text text-center">This box is here just to thank you</p>
|
|
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-09-09 04:24:52 +00:00
|
|
|
|
|
|
|
</div>
|
2016-10-14 04:33:48 +00:00
|
|
|
</div>
|
2016-09-09 04:24:52 +00:00
|
|
|
</div>
|
Reduced pixels needed to navbar transition color, Added membership deactivation form, Added membership deactivation view, Added membership status, Added membership charged.html, Added membership charged.txt, Extended class to send membership charge email, After membership, charge for first time an email is sent to the user, Fixed bug on redirecting, user to membership payment after signup, Fixed redirecting after buying a membership
2016-09-14 05:24:20 +00:00
|
|
|
</section>
|
2016-09-09 04:24:52 +00:00
|
|
|
|
|
|
|
{% endblock %}
|