Sha256: 5e74e74c28bb72f0a083375c40c4d9cc00d3da9871447218b202b351cf052869

Contents?: true

Size: 1.02 KB

Versions: 24

Compression:

Stored size: 1.02 KB

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, layout: :vertical, 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 btn-link', role: 'button' %>
      <%= f.submit nil, class: 'btn btn-primary' %>
    </div>
  </div>
<% end %>

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
blacklight-spotlight-5.0.0.pre.alpha3 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-5.0.0.pre.alpha2 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-5.0.0.pre.alpha1 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.7.1 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.7.0 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.6.1 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.6.0 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.5.0 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.4.0 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.3.6 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.3.5 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.3.4 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.3.3 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.3.2 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.3.1 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.3.0 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.2.0 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.1.2 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.1.1 app/views/spotlight/custom_fields/_form.html.erb
blacklight-spotlight-4.1.0 app/views/spotlight/custom_fields/_form.html.erb