Sha256: 45bf0fff8a52e313b85ec744395e78fb6869f1c04884e2ab7425f871ed882b32

Contents?: true

Size: 1.81 KB

Versions: 21

Compression:

Stored size: 1.81 KB

Contents

.row
  .span3
    %p="#{pluralize(@import.import_rows.length, 'person')} in this import file."
    %p This import was created at: <br> #{l import.created_at}
    %p To discard this import and start over, click "Delete"
    %p To pause this import and come back later, click "Back"

    .btn-group
      = icon_link_to "Back", new_import_path(:type => import.kind), 'icon-share-alt', 'btn', ''
      = link_to "Delete", import_path(import), :data => {:confirm => "Are you sure you want to delete this import?"}, :method => :delete, :class => "btn btn-danger"

  .span9
    .well
      .row-fluid
        .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"
    -if @under_limit
      %table.table.table-bordered.table-striped
        %tr
          %th Email
          %th First
          %th Last
          %th Company
          %th Website
          %th 
        - @parsed_rows.each_with_index do |row, index|
          %tr
            %td=row.email
            %td=row.first
            %td=row.last
            %td=row.company
            %td=row.website
            %td
              =icon_link_to("", "#row#{index}", ' icon-zoom-in', '', '', {'data-toggle' => 'modal'})
              =render :partial => "imports/shared/inspect_modal", :locals => {:row => row, :index => index, :keys => ParsedRow::PEOPLE_FIELDS.merge(ParsedRow::ADDRESS_FIELDS).keys}
      = will_paginate @parsed_rows
    -else    
      %center
        .alert.alert-info
          Import previews are temporarily not available.  
          %br
          You can still apporve your import by clicking the green "Approve" button above.

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
artfully_ose-1.2.0.pre.23 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.21 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.20 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.19 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.18 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.17 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.16 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.15 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.12 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.11 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.10 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.9 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.8 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.7 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.6 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.5 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.4 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.3 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.2 app/views/imports/people/_pending.html.haml
artfully_ose-1.2.0.pre.1 app/views/imports/people/_pending.html.haml