app/views/spotlight/exhibits/edit.html.erb in blacklight-spotlight-0.0.2 vs app/views/spotlight/exhibits/edit.html.erb in blacklight-spotlight-0.0.3
- old
+ new
@@ -1,22 +1,13 @@
<%= render 'spotlight/shared/curation_sidebar' %>
<div id="content" class="col-md-9 exhibit-admin">
-<%= bootstrap_form_for @exhibit, url: spotlight.exhibit_path(@exhibit), style: :horizontal, right: "col-sm-5" do |f| %>
- <div class="row">
- <h1><%= t :'spotlight.administration.header' %></h1>
- </div>
- <div class="row">
- <div class="col-sm-5">
- <h2><small><%= t :'spotlight.administration.settings.header' %></small></h2>
- </div>
- <div class="col-sm-2">
- <%= f.submit nil %>
- </div>
- </div>
- <div class="row">
+<%= bootstrap_form_for @exhibit, url: spotlight.exhibit_path(@exhibit), style: :horizontal do |f| %>
+<%= administration_page_title %>
+ <div class="row col-md-9">
<%= 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, @exhibit.contact_emails do |contact| %>
<% if contact.index == 0 %>
<div class="input-group">
<%= text_field_tag "#{contact.object_name}[email]", contact.object, class: 'exhibit-contact form-control' %>
@@ -24,11 +15,15 @@
</div>
<% else %>
<%= text_field_tag "#{contact.object_name}[email]", contact.object, class: 'exhibit-contact form-control' %>
<% end %>
<% end %>
+ <p class="help-block"><%= t(:'.fields.contact_emails.help_block') %></p>
<% end %>
- <%= f.text_area :description %>
+
+ <div class="pull-right">
+ <%= f.submit nil, class: 'btn btn-primary' %>
+ </div>
</div>
<% end %>
</div>