app/views/spotlight/exhibits/edit.html.erb in blacklight-spotlight-0.2.0 vs app/views/spotlight/exhibits/edit.html.erb in blacklight-spotlight-0.3.0
- old
+ new
@@ -1,31 +1,8 @@
<%= render 'spotlight/shared/curation_sidebar' %>
<div id="content" class="col-md-9 exhibit-admin">
<%= administration_page_title %>
- <%= bootstrap_form_for @exhibit, url: spotlight.exhibit_path(@exhibit), layout: :horizontal, label_col: 'col-md-2', control_col: 'col-md-10', html: {class: "row"} do |f| %>
- <div class="row col-md-12">
- <%= f.text_field :title %>
- <%= f.text_field :subtitle %>
- <%= f.text_area :description %>
- <%= f.form_group(:contact_emails, label: { text: nil, class: nil }, help: nil) do %>
- <%= f.fields_for :contact_emails do |contact| %>
- <%= render partial: 'contact', locals: {contact: contact} %>
- <% end %>
- <p class="help-block"><%= t(:'.fields.contact_emails.help_block') %></p>
- <% end %>
- <%= f.form_group :published, label: { text: nil, class: nil }, help: nil do %>
- <%= f.check_box :published, label: "" %>
- <p class="help-block"><%= t(:'.fields.published.help_block') %></p>
- <% end %>
-
- <div class="form-actions">
-
- <div class="primary-actions">
- <%= f.submit nil, class: 'btn btn-primary' %>
- </div>
- </div>
- </div>
- <% end %>
+ <%= render 'form' %>
<div class="callout callout-danger row">
<h4><%= t(:".delete_exhibit") %></h4>
<p class='col-md-9'><%= t(:".delete_exhibit_warning_html", export_link: link_to(t(:'spotlight.exhibits.import.export.download'), spotlight.import_exhibit_path(@exhibit))) %></p>
<div class='col-md-3'>
<%= delete_link @exhibit, class: 'btn btn-default' %>