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
32
app/views/payments/index.html.haml
Normal file
32
app/views/payments/index.html.haml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
.container
|
||||
.row
|
||||
.col-md-12
|
||||
.page-header
|
||||
%h1
|
||||
Payment Attempts for
|
||||
= @conference.title
|
||||
- if !flash[:notice].blank?
|
||||
.alert.alert-success
|
||||
= flash[:notice]
|
||||
%table.table.table-bordered.table-striped
|
||||
%tr
|
||||
%th First Name
|
||||
%th Last Name
|
||||
%th Last 4
|
||||
%th Amount
|
||||
%th Status
|
||||
%th Authorization Code
|
||||
- if @payments.size > 0
|
||||
- @payments.each do |payment|
|
||||
%tr
|
||||
%td= payment.first_name
|
||||
%td= payment.last_name
|
||||
%td= payment.last4
|
||||
%td= number_to_currency payment.amount
|
||||
%td= payment.status
|
||||
%td= payment.authorization_code
|
||||
- else
|
||||
%tr
|
||||
%td{:colspan => "5"} No payments have been attempted.
|
||||
.pull-right
|
||||
= link_to "Conference Registration", conference_conference_registrations_path(@conference.short_title), class: 'btn btn-primary'
|
||||
Loading…
Add table
Add a link
Reference in a new issue