Sha256: a4f78a56db7b70c015422459f637f505530c7baaa518e13a828faa7123acf1bc

Contents?: true

Size: 1.55 KB

Versions: 11

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.table(:importo_mensa_imports, parameters: { kind: @import.kind })
      - else
        = card.with_table(:importo_imports, parameters: { kind: @import.kind }, custom_views: false)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
importo-3.0.21 app/views/importo/imports/new.html.slim
importo-3.0.20 app/views/importo/imports/new.html.slim
importo-3.0.19 app/views/importo/imports/new.html.slim
importo-3.0.18 app/views/importo/imports/new.html.slim
importo-3.0.17 app/views/importo/imports/new.html.slim
importo-3.0.16 app/views/importo/imports/new.html.slim
importo-3.0.15 app/views/importo/imports/new.html.slim
importo-3.0.14 app/views/importo/imports/new.html.slim
importo-3.0.13 app/views/importo/imports/new.html.slim
importo-3.0.12 app/views/importo/imports/new.html.slim
importo-3.0.11 app/views/importo/imports/new.html.slim