Sha256: 9cfc534394e43d3240453bb82e8576e5b9b9fadd4fc94cc93b3e1672c69ea0aa

Contents?: true

Size: 1.35 KB

Versions: 43

Compression:

Stored size: 1.35 KB

Contents

<%= 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| %>
<div class="col-md-12">
  <%= f.text_field :title, disabled: !default_language?, help: !default_language? ? t('.uneditable_non_default_language') : '' %>
  <%= f.text_field :subtitle %>
  <%= f.text_area :description %>
  <%= f.text_field :tag_list, value: f.object.tag_list.to_s %>
  <%= f.form_group(:contact_emails, label: { text: nil, class: nil, for: 'exhibit_contact_email_0' }, help: nil) do %>
    <%= f.fields_for :contact_emails do |contact| %>
      <%= render partial: 'contact', locals: {exhibit: @exhibit, contact: contact} %>
    <% end %>
    <button id='another-email' class="btn btn-sm btn-info"><%= t('.add_contact_email_button') %></button>
    <small class="form-text text-muted"><%= t(:'.fields.contact_emails.help_block') %></small>
  <% end %>
  <%= f.form_group :published, label: { text: nil, class: 'pt-0' }, help: nil do %>
    <%= f.check_box :published, label: "" %>
    <small class="form-text text-muted"><%= t(:'.fields.published.help_block') %></small>
  <% end %>

  <div class="form-actions">

    <div class="primary-actions">
      <%= f.submit nil, class: 'btn btn-primary' %>
    </div>
  </div>
</div>
<% end %>

Version data entries

43 entries across 43 versions & 1 rubygems

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