Sha256: 81db1998ffe9a0e2a7bf00b1ec2cb9158c626809e42ac55931e9e52c61a84b52

Contents?: true

Size: 1.3 KB

Versions: 10

Compression:

Stored size: 1.3 KB

Contents

<% output_category = f.object %>

<div class="nested-fields">
  <div class="panel panel-success">
    <div class="panel-heading">
      <div class="row">
        <div class="col-sm-12">
          <h4 class="pull-left"><%= output_category.name %></h4>
        </div>
      </div>
    </div>

    <div class="panel-body">
      <%= f.hidden_field :name, value: output_category.name %>

      <div class="form-group">
        <%= f.label :columns %>
        <% options = output_category.columns || [] %>
        <%= f.select(:columns, options_for_select(options, options), { include_hidden: false }, { class: "selectize form-control", multiple: true }) %>
      </div>

      <div class="form-group">
        <%= f.label :format %>
        <% options = extract_inclusion_values(RocketJob::Category::Output, :format) %>
        <% value = output_category.format %>
        <%= f.select(:format, options, { include_blank: true, selected: value }, { class: "selectize form-control" }) %>
      </div>

      <div class="form-group">
        <%= f.label :format_options %>
        <% value = output_category.format_options %>
        <%= f.text_field(:format_options, value: value ? value.to_json : nil, class: "form-control", placeholder: '{"key1":"value1", "key2":"value2", "key3":"value3"}') %>
      </div>
    </div>
  </div>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rocketjob_mission_control-6.1.0 app/views/rocket_job_mission_control/jobs/_output_category_fields.html.erb
rocketjob_mission_control-6.0.7 app/views/rocket_job_mission_control/jobs/_output_category_fields.html.erb
rocketjob_mission_control-6.0.6 app/views/rocket_job_mission_control/jobs/_output_category_fields.html.erb
rocketjob_mission_control-6.0.5 app/views/rocket_job_mission_control/jobs/_output_category_fields.html.erb
rocketjob_mission_control-6.0.4 app/views/rocket_job_mission_control/jobs/_output_category_fields.html.erb
rocketjob_mission_control-6.0.3 app/views/rocket_job_mission_control/jobs/_output_category_fields.html.erb
rocketjob_mission_control-6.0.2 app/views/rocket_job_mission_control/jobs/_output_category_fields.html.erb
rocketjob_mission_control-6.0.1 app/views/rocket_job_mission_control/jobs/_output_category_fields.html.erb
rocketjob_mission_control-6.0.0 app/views/rocket_job_mission_control/jobs/_output_category_fields.html.erb
rocketjob_mission_control-6.0.0.beta app/views/rocket_job_mission_control/jobs/_output_category_fields.html.erb