add payment views, styling and its helper methods
This commit is contained in:
parent
81ef41be8b
commit
14594c7a4d
7 changed files with 118 additions and 0 deletions
14
app/views/payments/new.html.haml
Normal file
14
app/views/payments/new.html.haml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
.container
|
||||
.row
|
||||
.col-xs-6.col-xs-offset-3
|
||||
%h1
|
||||
Buy tickets for
|
||||
= @total_amount_to_pay.symbol
|
||||
= humanized_money @total_amount_to_pay
|
||||
- if @payment.errors.any?
|
||||
.alert.alert-danger
|
||||
%ul
|
||||
- @payment.errors.full_messages.each do |msg|
|
||||
%li= msg
|
||||
.col-xs-6.col-xs-offset-3.well
|
||||
= render partial: 'payment'
|
||||
Loading…
Add table
Add a link
Reference in a new issue