Sha256: ab5dd8e745c4696babc12d8b5582b60c04bc062738e6d79d61cdbd095aa3c0c3

Contents?: true

Size: 988 Bytes

Versions: 11

Compression:

Stored size: 988 Bytes

Contents

<%= bootstrap_form_for @custom_field.new_record? ? [current_exhibit, @custom_field] : [@custom_field.exhibit, @custom_field], layout: :horizontal, label_col: 'col-md-3', control_col: 'col-sm-9', html: {class: 'col-md-9', id: 'edit-search'} do |f| %>

  <%= f.text_field :label %>
  <%= f.text_area :short_description %>

  <%= f.form_group :field_type, label: { text: t(:'.field_type.label') } do %>
    <% Spotlight::Engine.config.custom_field_types.each do |key, field_type| %>
      <%= f.radio_button :field_type, key, label: t(:".field_type.#{key}") %>
    <% end %>
  <% end %>

  <%= f.form_group :field_type, label: { text: t(:'.is_multiple.label') } do %>
    <%= f.check_box :is_multiple, disabled: @custom_field.persisted? %>
  <% end %>

  <div class="form-actions">
    <div class="primary-actions">
      <%= link_to t(:"cancel"), edit_exhibit_metadata_configuration_path(current_exhibit) %>
      <%= f.submit nil, class: 'btn btn-primary' %>
    </div>
  </div>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
blacklight-spotlight-3.0.0.rc4 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.0.0.rc3 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.0.0.rc2 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.0.0.rc1 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.0.0.alpha.10 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.0.0.alpha.9 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.0.0.alpha.8 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.0.0.alpha.7 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.0.0.alpha.6 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.0.0.alpha.5 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.0.0.alpha.4 app/views/spotlight/custom_fields/_form.html.erb