app/views/imports/donations/_pending.html.haml in artfully_ose-1.2.0.pre.27 vs app/views/imports/donations/_pending.html.haml in artfully_ose-1.2.0
- old
+ new
@@ -15,11 +15,29 @@
.span9
%h3 This import is pending your approval
Click "Approve" to import this data into Artful.ly
.span3
= link_to "Approve", approve_import_path(import), :data => {:confirm => "Are you sure you want to approve this import?"}, :class => "btn btn-success btn-large"
-
- %center
- .alert.alert-info
- Import previews are temporarily not available.
- %br
- You can still apporve your import by clicking the green "Approve" button above.
+
+ %table.table.table-bordered.table-striped
+ %tr
+ %th Email
+ %th First
+ %th Last
+ %th Date
+ %th Amount
+ %th Type
+ %th
+
+ - @imported_rows.each_with_index do |imported_row, index|
+ - row = ParsedRow.new(@import.headers, imported_row.content)
+ %tr
+ %td=row.email
+ %td=row.first
+ %td=row.last
+ %td=row.donation_date
+ %td=number_as_cents row.amount
+ %td=row.donation_type
+ %td
+ =icon_link_to("", "#row#{index}", 'fa-search-plus', '', '', {'data-toggle' => 'modal'})
+ =render :partial => "imports/shared/inspect_modal", :locals => {:row => row, :index => index, :keys => ParsedRow::DONATION_FIELDS.keys }
+ = will_paginate @imported_rows