From 851b467235754cd7df0b46878dbb3ff631c69c6e Mon Sep 17 00:00:00 2001 From: Rishabh Saxena Date: Fri, 22 Jul 2016 00:05:30 +0530 Subject: [PATCH] payment view improvement --- app/assets/stylesheets/application.css | 1 - app/assets/stylesheets/osem-payments.css.scss | 23 ------------------- app/views/payments/_payment.html.haml | 10 ++------ 3 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 app/assets/stylesheets/osem-payments.css.scss diff --git a/app/assets/stylesheets/application.css b/app/assets/stylesheets/application.css index 84c0bd9a..d0447354 100644 --- a/app/assets/stylesheets/application.css +++ b/app/assets/stylesheets/application.css @@ -10,7 +10,6 @@ *= require osem-splash *= require font-awesome *= require osem-fonts - *= require osem-payments *= require bootstrap-markdown *= require bootstrap-datetimepicker *= require leaflet diff --git a/app/assets/stylesheets/osem-payments.css.scss b/app/assets/stylesheets/osem-payments.css.scss deleted file mode 100644 index d5337542..00000000 --- a/app/assets/stylesheets/osem-payments.css.scss +++ /dev/null @@ -1,23 +0,0 @@ -.price-tags { - list-style-type: none; - padding-top: 2rem; -} -.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; -} diff --git a/app/views/payments/_payment.html.haml b/app/views/payments/_payment.html.haml index d99c86d1..7f429189 100644 --- a/app/views/payments/_payment.html.haml +++ b/app/views/payments/_payment.html.haml @@ -20,12 +20,6 @@ = f.label :card_verification_value, 'Security Code (3 on back, AmEx: 4 on front)' = f.text_field :card_verification_value, class: "form-control", placeholder: "XXX", id: "card_verification_value" = f.number_field :amount, value: @total_amount_to_pay, class: "form-control", type: 'hidden' - %ul.price-tags.pull-right - %li.text-muted - you will pay - %li - %a - = number_to_currency @total_amount_to_pay - .form-group - = f.submit "Charge Card", class: "btn btn-primary" + .form-group.text-center + = f.submit "Pay #{number_to_currency @total_amount_to_pay, unit: @total_amount_to_pay.symbol}", class: "btn btn-primary" = link_to "Cancel", conference_conference_registration_path, class: "btn btn-danger"