93 lines
4.3 KiB
HTML
93 lines
4.3 KiB
HTML
{% extends "hosting/base_short.html" %}
|
|
{% load staticfiles bootstrap3 i18n %}
|
|
|
|
{% block css_extra %}
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/paymentfont/1.1.2/css/paymentfont.min.css"/>
|
|
{% endblock css_extra %}
|
|
|
|
{% block content %}
|
|
<div class="dashboard-container wide">
|
|
<div class="dashboard-container-head">
|
|
<h1 class="dashboard-title-thin"><img src="{% static 'hosting/img/dashboard_settings.svg' %}" class="un-icon wide"> {% trans "My Settings" %}</h1>
|
|
</div>
|
|
<!-- Credit card form -->
|
|
<div class="settings-container">
|
|
<div class="row">
|
|
<div class="col-sm-5 col-md-6 billing dcl-billing">
|
|
<h3>{%trans "Billing Address"%}</h3>
|
|
<hr>
|
|
<form role="form" id="billing-form" method="post" action="" novalidate>
|
|
{% for field in form %}
|
|
{% csrf_token %}
|
|
{% bootstrap_field field show_label=False type='fields' bound_css_class='' %}
|
|
{% endfor %}
|
|
<div class="form-group text-right">
|
|
<button type="submit" class="btn btn-vm-contact btn-wide">{% trans "UPDATE" %}</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<div class="col-sm-7 col-md-6 creditcard-box dcl-creditcard">
|
|
<h3>{%trans "Credit Card"%}</h3>
|
|
<hr>
|
|
<div>
|
|
{% for card in cards_list %}
|
|
<div class="credit-card-details">
|
|
<h5 class="billing-head">{% trans "Credit Card" %}</h5>
|
|
<h5 class="membership-lead">{% trans "Last" %} 4: *****{{card.last4}}</h5>
|
|
<h5 class="membership-lead">{% trans "Type" %}: {{card.cc_brand}}</h5>
|
|
{% comment %}
|
|
{% endcomment %}
|
|
<div class="credit-card-details-opt">
|
|
<div class="row">
|
|
<div class="col-xs-6">
|
|
<a class="caps-link" href=""><img src="{% static 'hosting/img/delete.svg' %}" class="svg-img">{% trans "REMOVE CARD" %}</a>
|
|
</div>
|
|
<div class="col-xs-6 text-right">
|
|
<a class="btn btn-vm-contact" href="">{% trans "EDIT CARD" %}</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
{% if credit_card_data.last4 %}
|
|
{% else %}
|
|
<div class="no-cards">
|
|
<h4>{% trans "No Credit Cards Added" %}</h4>
|
|
<p>{% blocktrans %}We are using <a href="https://stripe.com">Stripe</a> for payment and do not store your information in our database.{% endblocktrans %}</p>
|
|
</div>
|
|
|
|
<h4>{% trans "Add a new Card." %}</h4>
|
|
{% include "hosting/includes/_card_input.html" %}
|
|
{% comment %}
|
|
{% endcomment %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- stripe key data -->
|
|
{% if stripe_key %}
|
|
{% get_current_language as LANGUAGE_CODE %}
|
|
<script type="text/javascript">
|
|
window.processing_text = '{%trans "Processing" %}';
|
|
window.enter_your_card_text = '{%trans "Enter your credit card number" %}';
|
|
|
|
(function () {
|
|
window.stripeKey = "{{stripe_key}}";
|
|
window.current_lan = "{{LANGUAGE_CODE}}";
|
|
})();
|
|
</script>
|
|
{%endif%}
|
|
|
|
{% comment %}
|
|
{% if credit_card_data.last4 and credit_card_data.cc_brand %}
|
|
<script type="text/javascript">
|
|
(function () {
|
|
window.hasCreditcard = true;
|
|
})();
|
|
</script>
|
|
{%endif%}
|
|
{% endcomment %}
|
|
{%endblock%}
|