app/views/spotlight/exhibits/edit.html.erb in blacklight-spotlight-0.0.3 vs app/views/spotlight/exhibits/edit.html.erb in blacklight-spotlight-0.1.0

- old
+ new

@@ -1,29 +1,31 @@ <%= 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 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' %> - <span id='another-email' class="input-group-addon">+</span> - </div> - <% else %> - <%= text_field_tag "#{contact.object_name}[email]", contact.object, class: 'exhibit-contact form-control' %> + <%= 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 %> - <p class="help-block"><%= t(:'.fields.contact_emails.help_block') %></p> - <% end %> - <div class="pull-right"> - <%= f.submit nil, class: 'btn btn-primary' %> + <div class="form-actions"> + + <div class="primary-actions"> + <%= f.submit nil, class: 'btn btn-primary' %> + </div> + </div> </div> + <% end %> + <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' %> + </div> </div> -<% end %> </div> -