Sha256: 1712723f57e726447ea9b7f8f21094b026d84a0ee290a9e54d40c65a6750fd87

Contents?: true

Size: 1009 Bytes

Versions: 31

Compression:

Stored size: 1009 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), class: 'btn-sizing' %>
      <%= f.submit nil, class: 'btn btn-primary' %>
    </div>
  </div>
<% end %>

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
blacklight-spotlight-3.6.0.beta10 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.6.0.beta9 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.6.0.beta8 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.5.0.4 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.6.0.beta7 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.5.0.3 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.6.0.beta6 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.6.0.beta5 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.6.0.beta4 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.6.0.beta3 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.6.0.beta1 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.5.0.2 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.5.0.1 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.5.0 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.4.4.1 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.4.4 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.4.3 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.4.2.2 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.4.2.1 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-3.4.2 app/views/spotlight/custom_fields/_form.html.erb