Sha256: d2b48dcecf7605ec94a3fc447f741df71cd69ffde6f3288b8a7cbc28d09f9ec1

Contents?: true

Size: 1.55 KB

Versions: 2

Compression:

Stored size: 1.55 KB

Contents

.grid.grid-cols-1.gap-4.sm:grid-cols-3.mt-4
  .col-span-3.sm:col-span-3
    = sts.form_for(@import) do |f|
      = f.input :kind, as: :hidden
      = sts.card :"importo_imports #{@import.kind}", title: t('.title'), icon: 'fad fa-file-spreadsheet' do |card|
        - card.with_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

.grid.grid-cols-1.gap-4.sm:grid-cols-3.mt-4
  .col-span-3.sm:col-span-3
    = sts.card :importo_imports, title: "#{@import.kind.humanize} imports", icon: 'fad fa-file-import', content_padding: false do |card|
      - if defined? Mensa
        = sts.mensa(:importo_mensa_imports, parameters: { kind: @import.kind })
      - else
        = card.with_table(:importo_imports, parameters: { kind: @import.kind }, custom_views: false)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
importo-3.0.10 app/views/importo/imports/new.html.slim
importo-3.0.9 app/views/importo/imports/new.html.slim