Sha256: 1d0612b8ecf07289f64e61449cebb0dc73bf471adf51dffab09844119931a5f0

Contents?: true

Size: 1.72 KB

Versions: 18

Compression:

Stored size: 1.72 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.secondary-btn href="#{cm_admin.send(:"#{@model.name.underscore}_import_path")}" Import new data
        / button.cta-btn.ml-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="#" template file
                li Add your data on the file without changing the format
                li Save the file as a csv, xls or xlsx
                li Upload the file in the field above
        = f.button :submit, class: "cta-btn import-btn", value: 'Import data'

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
cm-admin-1.0.7 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.0.6 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.0.5 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.0.3 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.0.2 app/views/cm_admin/main/import_form.html.slim
cm-admin-1.0.0 app/views/cm_admin/main/import_form.html.slim
cm-admin-0.9.1 app/views/cm_admin/main/import_form.html.slim
cm-admin-0.9.0 app/views/cm_admin/main/import_form.html.slim
cm-admin-0.8.9 app/views/cm_admin/main/import_form.html.slim
cm-admin-0.8.8 app/views/cm_admin/main/import_form.html.slim
cm-admin-0.8.7 app/views/cm_admin/main/import_form.html.slim
cm-admin-0.8.6 app/views/cm_admin/main/import_form.html.slim
cm-admin-0.8.5 app/views/cm_admin/main/import_form.html.slim
cm-admin-0.8.4 app/views/cm_admin/main/import_form.html.slim
cm-admin-0.8.3 app/views/cm_admin/main/import_form.html.slim
cm-admin-0.8.2 app/views/cm_admin/main/import_form.html.slim
cm-admin-0.8.1 app/views/cm_admin/main/import_form.html.slim
cm-admin-0.8.0 app/views/cm_admin/main/import_form.html.slim