From 18206c9369afcd95be517f8f41af1d50719bf9e5 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Wed, 18 Jul 2018 11:42:07 +0100 Subject: [PATCH] Remove old view file --- app/views/admin/product_import/save.html.haml | 63 ------------------- 1 file changed, 63 deletions(-) delete mode 100644 app/views/admin/product_import/save.html.haml diff --git a/app/views/admin/product_import/save.html.haml b/app/views/admin/product_import/save.html.haml deleted file mode 100644 index 4d88bef979..0000000000 --- a/app/views/admin/product_import/save.html.haml +++ /dev/null @@ -1,63 +0,0 @@ -- content_for :page_title do - #{t('admin.product_import.title')} - -= render partial: 'spree/admin/shared/product_sub_menu' - -%h5= t('admin.product_import.save.final_results') -%br - -%div.post-save-results{ng: {app: 'admin.productImport'}} - - - if @importer.products_created_count > 0 - %p - %i.fa{ng: {class: "{'fa-info-circle': #{@importer.products_created_count} == 0, 'fa-check-circle': #{@importer.products_created_count} != 0}"}} - %strong.created-count= @importer.products_created_count - = t('admin.product_import.save.products_created') - - - if @importer.products_updated_count > 0 - %p - %i.fa{ng: {class: "{'fa-info-circle': #{@importer.products_updated_count} == 0, 'fa-check-circle': #{@importer.products_updated_count} != 0}"}} - %strong.updated-count= @importer.products_updated_count - = t('admin.product_import.save.products_updated') - - - if @importer.inventory_created_count > 0 - %p - %i.fa{ng: {class: "{'fa-info-circle': #{@importer.inventory_created_count} == 0, 'fa-check-circle': #{@importer.inventory_created_count} != 0}"}} - %strong.inv-created-count= @importer.inventory_created_count - = t('admin.product_import.save.inventory_created') - - - if @importer.inventory_updated_count > 0 - %p - %i.fa{ng: {class: "{'fa-info-circle': #{@importer.inventory_updated_count} == 0, 'fa-check-circle': #{@importer.inventory_updated_count} != 0}"}} - %strong.inv-updated-count= @importer.inventory_updated_count - = t('admin.product_import.save.inventory_updated') - - - if @importer.products_reset_count > 0 - %p - %i.fa.fa-info-circle - %strong.reset-count= @importer.products_reset_count - - if @import_into == 'inventories' - = t('admin.product_import.save.inventory_reset') - - else - = t('admin.product_import.save.products_reset') - - %br - - - if @importer.errors.count == 0 - %p= t('admin.product_import.save.all_saved', { num: "#{@importer.total_saved_count}" }) - - else - %p= t('admin.product_import.save.total_saved', { num: "#{@importer.total_saved_count}" }) - %br - %h5= t('admin.product_import.save.save_errors') - - @importer.errors.full_messages.each do |error| - %p.save-error -  -  #{error} - - %br - - if @importer.total_saved_count > 0 - - if @import_into == 'inventories' - %a.button{href: main_app.admin_inventory_path}= t('admin.product_import.save.view_inventory') - - else - %a.button{href: admin_products_path + '?latest_import=true'}= t('admin.product_import.save.view_products') - - %a.button{href: main_app.admin_product_import_path}= t('admin.back')