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