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