From 1648d9558cfe458c9f7f5609171feb9542d8ffb3 Mon Sep 17 00:00:00 2001
From: unknown
Date: Tue, 20 Dec 2016 11:15:09 -0400
Subject: [PATCH] credit card, button, modal size fixed
---
.../static/digitalglarus/js/payment.js | 6 +-
.../digitalglarus/booking_orders_detail.html | 2 +-
.../digitalglarus/membership_payment.html | 78 ++++++++++++++-----
.../digitalglarus/new_credit_card.html | 8 +-
.../digitalglarus/reset_password.html | 2 +-
digitalglarus/urls.py | 2 +-
digitalglarus/views.py | 16 ++--
7 files changed, 75 insertions(+), 39 deletions(-)
diff --git a/digitalglarus/static/digitalglarus/js/payment.js b/digitalglarus/static/digitalglarus/js/payment.js
index 90e922b1..2b06759a 100644
--- a/digitalglarus/static/digitalglarus/js/payment.js
+++ b/digitalglarus/static/digitalglarus/js/payment.js
@@ -19,7 +19,6 @@ $( document ).ready(function() {
}
if (!(/^http:.*/.test(settings.url) || /^https:.*/.test(settings.url))) {
// Only send the token to relative URLs i.e. locally.
- alert("POR AQUI");
xhr.setRequestHeader("X-CSRFToken", getCookie('csrftoken'));
}
}
@@ -34,7 +33,6 @@ $( document ).ready(function() {
function submit_payment(e){
$('#billing-form').submit();
- alert("POR AQUI2");
// $form.submit();
}
@@ -44,7 +42,7 @@ $( document ).ready(function() {
/* If you're using Stripe for payments */
function payWithStripe(e) {
- console.log("submiting33");
+ console.log("submiting");
e.preventDefault();
if (!$('.agree-terms').is(':checked')){
@@ -55,7 +53,6 @@ $( document ).ready(function() {
/* Visual feedback */
$form.find('[type=submit]').html('Validating ');
- alert("POR AQUI3");
console.log("submiting2");
var PublishableKey = window.stripeKey;
alert(PublishableKey);
@@ -63,7 +60,6 @@ $( document ).ready(function() {
Stripe.card.createToken($form, function stripeResponseHandler(status, response) {
if (response.error) {
/* Visual feedback */
- alert("POR AQUI32345");
$form.find('[type=submit]').html('Try again');
/* Show Stripe errors on the form */
$form.find('.payment-errors').text(response.error.message);
diff --git a/digitalglarus/templates/digitalglarus/booking_orders_detail.html b/digitalglarus/templates/digitalglarus/booking_orders_detail.html
index a91ec55a..a84428bd 100644
--- a/digitalglarus/templates/digitalglarus/booking_orders_detail.html
+++ b/digitalglarus/templates/digitalglarus/booking_orders_detail.html
@@ -84,7 +84,7 @@
Go to my page
-
+
diff --git a/digitalglarus/templates/digitalglarus/membership_payment.html b/digitalglarus/templates/digitalglarus/membership_payment.html
index 70e987f4..e7b88f07 100644
--- a/digitalglarus/templates/digitalglarus/membership_payment.html
+++ b/digitalglarus/templates/digitalglarus/membership_payment.html
@@ -19,18 +19,17 @@
padding-right: 1.5em
}
- @media screen and (min-width: 768px) {
- }
+@media screen and (min-width: 768px) {
- #cancel-subscription-modal .modal-dialog {width:1000px;}
-
-.glyphicon-flag {
+ cancel-subscription-modal .modal-dialog {width:1000px;}
+
+ .glyphicon-flag {
font-size: 44px;
display: block;
text-align: center;
margin: 30px auto 30px;
color: #88c7d7;
-}
+ }
.price2 {
@@ -38,6 +37,45 @@
-moz-background-size: cover;
}
+
+ cancel-subscription-modal .modal-body {
+ max-height: 800px;
+ }
+
+}
+@media screen and (min-width: 780px) {
+
+ cancel-subscription-modal .modal-dialog {width:1000px;}
+
+ .glyphicon-flag {
+ font-size: 44px;
+ display: block;
+ text-align: center;
+ margin: 30px auto 30px;
+ color: #88c7d7;
+
+ }
+ .price2 {
+
+
+ -webkit-background-size: cover;
+ -moz-background-size: cover;
+
+}
+
+
+}
+
+
+@media screen and (min-width: 982px) {
+
+ cancel-subscription-modal .modal-dialog {width:600px;}
+
+
+ cancel-subscription-modal .modal-body {
+ max-height: 600px;
+ }
+
}
@@ -212,19 +250,23 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
General Terms & Conditions of Digital Glarus Membership
Valid from 31 October 2016, v1.0 dated 31 October 2016
diff --git a/digitalglarus/templates/digitalglarus/new_credit_card.html b/digitalglarus/templates/digitalglarus/new_credit_card.html
index 6d262cb4..a8686755 100644
--- a/digitalglarus/templates/digitalglarus/new_credit_card.html
+++ b/digitalglarus/templates/digitalglarus/new_credit_card.html
@@ -72,14 +72,15 @@
{% else %}
-
Credit Card (New One)