Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new template for home page and credit card page fix#507
- Loading branch information
Showing
4 changed files
with
40 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,6 @@ | ||
{% extends "base.html" %} | ||
|
||
{% extends 'base.html' %} | ||
{% load staticfiles %} | ||
{% block content %} | ||
<div class="row"> | ||
<div class="column medium-4 medium-offset-4 text-left"> | ||
{% if request.user.stripe_customer %} | ||
We saved your <b> {{request.user.card_brand}}</b> card ending in <b> {{ request.user.card_last4}} </b> with Stripe. | ||
|
||
<div class="reveal" id="credit_card_form" data-reveal> | ||
|
||
{% include "credit_card_form.html" %} | ||
|
||
<button class="close-button" data-close aria-label="Close modal" type="button"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
|
||
<p><a data-open="credit_card_form">Change this card.</a></p> | ||
|
||
{% else %} | ||
You need to register a credit card to be able to make offers. | ||
We use Stripe to handle this information and it is never stored in codesy's database. | ||
|
||
{% include "credit_card_form.html" %} | ||
|
||
{% endif %} | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="column medium-4 medium-offset-4 text-left"> | ||
<a href="https://stripe.com" target="_blank"> | ||
<img src="{% static 'img/stripe/powered_by_stripe.png' %}" alt="" /> | ||
</a> | ||
</div> | ||
</div> | ||
{% include "credit_card_row.html" %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{% load staticfiles %} | ||
{% block content %} | ||
<div class="row"> | ||
<div class="column medium-4 medium-offset-4 text-left"> | ||
{% if request.user.stripe_customer %} | ||
We saved your <b> {{request.user.card_brand}}</b> card ending in <b> {{ request.user.card_last4}} </b> with Stripe. | ||
|
||
<div class="reveal" id="credit_card_form" data-reveal> | ||
|
||
{% include "credit_card_form.html" %} | ||
|
||
<button class="close-button" data-close aria-label="Close modal" type="button"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
|
||
<p><a data-open="credit_card_form">Change this card.</a></p> | ||
|
||
{% else %} | ||
You need to register a credit card to be able to make offers. | ||
We use Stripe to handle this information and it is never stored in codesy's database. | ||
|
||
{% include "credit_card_form.html" %} | ||
|
||
{% endif %} | ||
</div> | ||
</div> | ||
<div class="row"> | ||
<div class="column medium-4 medium-offset-4 text-left"> | ||
<a href="https://stripe.com" target="_blank"> | ||
<img src="{% static 'img/stripe/powered_by_stripe.png' %}" alt="" /> | ||
</a> | ||
</div> | ||
</div> | ||
{% endblock %} |