<% input_category = f.object %>

<%= input_category.name %>

<%= f.hidden_field :name, value: input_category.name %>
<%= f.label :columns %> <% options = input_category.columns || [] %> <%= f.select(:columns, options_for_select(options, options), { include_hidden: false }, { class: "selectize form-control", multiple: true }) %>
<%= f.label :format %> <% options = extract_inclusion_values(RocketJob::Category::Input, :format) %> <% value = input_category.format %> <%= f.select(:format, options, { include_blank: true, selected: value }, { class: "selectize form-control" }) %>
<%= f.label :format_options %> <% value = input_category.format_options %> <%= f.text_field(:format_options, value: value ? value.to_json : nil, class: "form-control", placeholder: '{"key1":"value1", "key2":"value2", "key3":"value3"}') %>
<%= f.label :mode %> <% options = extract_inclusion_values(RocketJob::Category::Input, :mode) %> <% value = input_category.mode %> <%= f.select(:mode, options, { include_blank: true, selected: value }, { class: "selectize form-control" }) %>
<%= f.label "Skip and Ignore Unknown Columns" %> <% options = extract_inclusion_values(RocketJob::Category::Input, :skip_unknown) %> <% value = input_category.skip_unknown %> <%= f.select(:skip_unknown, options, { include_blank: true, selected: value }, { class: "selectize form-control" }) %>
<%= f.label :slice_size %> <% value = input_category.slice_size %> <%= f.number_field(:slice_size, value: value, class: "form-control") %>