From 922440fb771a2087e0591f3719e87d958ed504e5 Mon Sep 17 00:00:00 2001 From: Rishabh Saxena Date: Wed, 10 Aug 2016 13:53:14 +0530 Subject: [PATCH] improve payment view styling --- app/assets/stylesheets/osem-payments.css.scss | 22 ------------------- app/views/payments/_payment.html.haml | 7 ++---- 2 files changed, 2 insertions(+), 27 deletions(-) diff --git a/app/assets/stylesheets/osem-payments.css.scss b/app/assets/stylesheets/osem-payments.css.scss index e0a05e8c..cfa451b4 100644 --- a/app/assets/stylesheets/osem-payments.css.scss +++ b/app/assets/stylesheets/osem-payments.css.scss @@ -1,25 +1,3 @@ -.price-tags { - list-style-type: none; -} -.price-tags li { - line-height: 40px; - position: relative; - margin-right: -3rem; -} -.price-tags a { - background: #2f991d; - color: #fff; - font-size: 1.5rem; - padding: 9px 10px; - text-decoration: none; -} -.price-tags a:after { - content: ""; - float: left; - border-top: 20px solid transparent; - border-right: 20px solid #2f991d; - border-bottom: 20px solid transparent; -} .stripe-button-el { float: right; } diff --git a/app/views/payments/_payment.html.haml b/app/views/payments/_payment.html.haml index 953d8334..52b7063c 100644 --- a/app/views/payments/_payment.html.haml +++ b/app/views/payments/_payment.html.haml @@ -20,16 +20,13 @@ = humanized_money_with_symbol ticket.quantity * ticket.price = form_tag conference_payments_path do - %ul.price-tags.pull-right - %li - %a - = humanized_money_with_symbol @total_amount_to_pay %script.stripe-button{ src: "https://checkout.stripe.com/checkout.js", data: { amount: @total_amount_to_pay.cents, + label: "Pay #{humanized_money_with_symbol @total_amount_to_pay}", email: current_user.email, currency: @total_amount_to_pay.currency, name: ENV['OSEM_NAME'] || 'OSEM', description: "book your tickets", key: Rails.application.secrets.stripe_publishable_key, locale: "auto"}} - = link_to 'Edit Purchase', conference_tickets_path(@conference.short_title), class: 'btn btn-primary' + = link_to 'Edit Purchase', conference_tickets_path(@conference.short_title), class: 'btn btn-default'