<%= bootstrap_form_for form, url: record_form_action_url(form), html: {class: 'form-inline editor'} do |f| %>
<%= render 'records/form_header' %>
<% f.object.terms.each do |term| %> <%= render "records/edit_field", f: f, render_req: true, key: term %> <% end %>
<%= hidden_field_tag :type, params[:type] %>
<%= f.primary 'Save' %> <%= link_to t(:'helpers.action.cancel'), main_app.root_path, class: 'btn btn-link' %>
<% end %>