<%= bootstrap_form_for @exhibit, url: ((spotlight.exhibit_path(@exhibit) if @exhibit.persisted?) || spotlight.exhibits_path), layout: :horizontal, label_col: 'col-md-2', control_col: 'col-md-10', html: {class: "row"} do |f| %>
<%= f.text_field :title, disabled: !default_language?, help: !default_language? ? t('.uneditable_non_default_language') : '' %> <%= f.text_field :subtitle %> <%= f.text_area :description %> <%= render Spotlight::TagListFormComponent.new(form: f) %> <%= f.form_group(:contact_emails, label: { text: nil, class: nil, for: 'exhibit_contact_email_0' }, class: 'form-group mb-3', help: nil) do %> <%= f.fields_for :contact_emails do |contact| %> <%= render partial: 'contact', locals: {exhibit: @exhibit, contact: contact} %> <% end %>
<%= t(:'.fields.contact_emails.help_block') %>
<% end %> <%= f.form_group :published, label: { text: nil, class: 'pt-0' }, help: nil do %> <%= f.check_box :published, label: "" %>
<%= t(:'.fields.published.help_block') %>
<% end %>
<%= f.submit nil, class: 'btn btn-primary' %>
<% end %>