%-
# TODO: Change Concept.labeling_classes to Collection.labeling_classes (in model
# too). If those two settings differ (e.g. in spez) don't forget to add
# migrations to update existing data.
-%>
<%= bootstrap_form_for collection, :as => :concept, :url => collection.new_record? ? collections_path : collection_path(collection, :published => 0), :layout => :horizontal, :label_col => 'col-sm-3', :control_col => 'col-sm-9' do |f| %>
<% Iqvoc::Collection.note_classes.each do |klass| %>
<%= render klass.edit_partial_name(@collection), :owner_klass => @collection, :assoc_klass => klass, :f => f %>
<% end %>
<%= f.submit t("txt.common.save"), :class => "btn btn-primary" %>
<%= link_to t("txt.common.cancel"), collection.new_record? ? dashboard_path : collection_path(collection, :published => 0), :class => "btn btn-default" %>
<% end %>