Sha256: 5a166bae6a145557c18e2d3b453741e7317941b4738c01138691dced78f786a9

Contents?: true

Size: 961 Bytes

Versions: 2

Compression:

Stored size: 961 Bytes

Contents

= sts.form_for(@import) do |f|
  = f.input :kind, as: :hidden
  = sts.card title: t('.title'), icon: 'fad fa-file-spreadsheet' do |card|
    - card.action
      = f.submit

    .grid.grid-cols-12.gap-4
      .col-span-12
        .prose
          p= t('.explanation_html', name: @import.importer.class.friendly_name, sample_path: sample_import_path(kind: @import.kind))
          - if @import.allow_export?
            p= t('.export_html', export_path: export_path(kind: @import.kind))

      .col-span-12
        - @import.importer.overridable_columns.each do |column|
          = f.fields_for :column_overrides do |fff|
            - if column.collection
              = fff.input column.attribute, as: :select, label: column.name, collection: column.collection, include_blank: true, required: false
            - else
              =  fff.input column.attribute, label: column.name, required: false

      .col-span-12
        = f.input :original, as: :file

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
importo-2.0.5 app/views/importo/imports/new.html.slim
importo-2.0.4 app/views/importo/imports/new.html.slim