Sha256: 150e29cf777bd94ef5cd22ade5a0bf15c3079970d1111a4c86609a3da7908d22

Contents?: true

Size: 1.73 KB

Versions: 60

Compression:

Stored size: 1.73 KB

Contents

.import-page
  .import-page__header 
    h1.header-title #{@model.name} Import
    p.header-description To import #{@model.name.underscore} data using the form below.
  .import-page__body 
    h6.body-title Import data
    - if flash[:notice]
      .success-card
        h6.success-title
          i.fa-solid.fa-circle-check
          | SUCCESS
        p.success-msg Your file has been uploaded and it will be processed soon.
        / p.success-msg-info An email will be sent once the process is completed. If there are any problems with the import, we'll let you know through an email.
      .actions-wrapper
        a.btn-secondary href="#{cm_admin.send(:"#{@model.name.underscore}_import_path")}" Import new data
        / button.cta-btn.ms-2 Back to Page_Name
    - else
      = simple_form_for(FileImport.new, url: "/admin/#{@model.ar_model.table_name}/import", method: :post, html: { class: "csv-import-form" }) do |f|
        .form-card
          = f.input :associated_model_name, as: :hidden, placeholder: 'Enter product title', label: false, input_html: { value: @model.name }
          = f.input :import_file, as: :file, placeholder: 'Enter product title', label: false
          .note-card
            h6.note-title
              i.fa.fa-info-circle
              | Note
            .steps-wrapper 
              h6.steps-title Follow these steps to import your data
              ul.steps-list
                li
                  | Download this 
                  a href="#{@model.importer.sample_file_path}" template file
                li Add your data on the file without changing the format
                li Save the file as a csv
                li Upload the file in the field above
        = f.button :submit, class: "btn-cta", value: 'Import data'

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
cm-admin-1.5.42 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.41 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.40 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.39 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.38 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.37 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.36 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.35 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.34 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.33 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.32 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.31 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.30 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.29 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.28 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.10 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.27 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.26 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.25 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.5.23 app/views/cm_admin/main/import_form.html.slim