Sha256: 7e52edcf50da7e00824b98d0c0e99a20bb70815429c3ed94fc92ca8af17778cc

Contents?: true

Size: 1.93 KB

Versions: 21

Compression:

Stored size: 1.93 KB

Contents

.row
  .span4
    %p This import was created at: <br> #{l import.created_at}
    %p= link_to "Back to imports/exports", imports_path, :class => "btn"
    %p= link_to "Recall this import", "#recall", :data => {:toggle => "modal"}, :class => "btn btn-danger"

  .span8
    .well
      %h3 This file has been imported into Artful.ly.
      %p="This import file had #{pluralize @import.rows.count, "person"}."

    -unless @messages.empty?
      %h4 Merged
      %p These people already existed, so we merged the records for you.
      %table.table.table-bordered.table-striped
        %tr
          %th{:width => 250} Email
          %th First
          %th Last
          %th 
        - @messages.each_with_index do |message, index|
          - unless message.person.nil?
            %tr
              %td=message.person.email
              %td=message.person.first_name
              %td=message.person.last_name
              %td=icon_link_to "", person_path(message.person), 'icon-share-alt', '', ''
      = will_paginate @messages, :param_name => 'messages_page'

    - unless @people.empty?
      %h4 Imported
      %p These people were imported.
      %table.table.table-bordered.table-striped
        %tr
          %th{:width => 250} Email
          %th First
          %th Last
          %th 
        - @people.each_with_index do |row, index|
          %tr
            %td=row.email
            %td=row.first_name
            %td=row.last_name
            %td=icon_link_to "", person_path(row), 'icon-share-alt', '', ''
            
      = will_paginate @people

#recall.modal
  .modal-header
    .close{'data-dismiss'=>'modal'} x
    %h3 Recall this import
  .modal-body
    %p Recalling deletes all the People records created by this import. If an action, order or ticket has been added to a record since it was imported, that record will be excluded from the recall.
  .modal-footer
    = link_to "Recall", recall_import_path(@import), :class => "btn btn-primary"

Version data entries

21 entries across 21 versions & 1 rubygems

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