<%= bootstrap_form_for [collections, @collection], html: {class: 'form-inline editor'} do |f| %>
  <div id="descriptions_display">
    <h2 class="non lower">Descriptions <small class="pull-right"><span class="error">*</span> indicates required fields</small> </h2>
    <div class="well">
      <% @collection.terms_for_editing.each do |term| %>
        <%= render partial: "records/edit_field", locals: {record: @collection, f: f, render_req: true, key: term } %>
      <% end %>
    </div><!-- /well -->
  </div>
  <%= hidden_field_tag :type, params[:type] %>
  <% if params[:batch_document_ids].present? %>
    <% params[:batch_document_ids].each do |batch_item| %>
      <input type="hidden" name="batch_document_ids[]" value="<%= batch_item %>"/>
    <% end %>
  <% end %>
  <%= f.actions do %>
    <% if params[:action] == "new" %>
      <%= f.submit 'Create Collection' %>
    <% else %>
      <%= f.submit 'Update Collection' %>
    <% end %>
    <%= f.cancel %>
  <% end %>
<% end %>

<%= bootstrap_form_for [collections, @collection], html: {class: 'form-inline editor'} do |f| %>
  <div id="descriptions_display">
    <h2 class="non lower">Descriptions <small class="pull-right"><span class="error">*</span> indicates required fields</small> </h2>
    <div class="well">
      <% @collection.terms_for_editing.each do |term| %>
        <%= render partial: "records/edit_field", locals: {record: @collection, f: f, render_req: true, key: term } %>
      <% end %>
    </div><!-- /well -->
  </div>
  <%= hidden_field_tag :type, params[:type] %>
  <% if params[:batch_document_ids].present? %>
    <% params[:batch_document_ids].each do |batch_item| %>
      <input type="hidden" name="batch_document_ids[]" value="<%= batch_item %>"/>
    <% end %>
  <% end %>
  
  <div class="form-actions">
    <div class="primary-actions">
      <% if params[:action] == "new" %>
        <%= f.primary 'Create Collection' %>
      <% else %>
        <%= f.primary 'Update Collection' %>
      <% end %>
      <%= link_to t(:'helpers.action.cancel'), main_app.root_path, class: 'btn btn-link' %>
    </div>
  </div>
<% end %>

Use the bootstrap_form helpers (bootstrap_forms is no longer available)
Use the bootstrap_form helpers (bootstrap_forms is no longer available)
