app/views/spotlight/exhibits/_import.html.erb in blacklight-spotlight-1.5.1 vs app/views/spotlight/exhibits/_import.html.erb in blacklight-spotlight-2.0.0.rc1
- old
+ new
@@ -1,10 +1,11 @@
-<div role="tabpanel" class="tab-pane" id="import">
+<div role="tabpanel" class="tab-pane <%= 'active' if @tab == 'import' %>" id="import">
<%= bootstrap_form_for [:import, current_exhibit], html: { class: 'clearfix', multipart: true } do |f| %>
<div class="row col-md-12">
<p class="instructions"><%= t :'.instructions' %></p>
<div class="form-group">
<%= file_field_tag :file, class: 'form-control' %>
+ <%= hidden_field_tag :tab, 'import' %>
</div>
<div class="form-actions">
<div class="primary-actions">
<%= f.submit t(:'.button'), class: 'btn btn-primary' %>
</div>