<%= Iqvoc::Concept.base_class.model_name.human %>

<%= form_for @concept, :as => 'concept', :url => @concept.new_record? ? concepts_path : concept_path(:published => 0, :id => @concept), :html => {:class => "form"} do |f| %>
<%= t("txt.common.attributes") %>
  1. <%= f.label :follow_up %> <%= f.text_field :follow_up, :class => "datepicker" %>
  2. <%= f.label :expired_at %> <%= f.text_field :expired_at, :class => "datepicker" %>
  3. <%- Iqvoc::Concept.additional_association_classes.keys.each do |assoc_class| -%> <%= render assoc_class.edit_partial_name(@concept), :concept => @concept, :klass => assoc_class, :f => f %> <%- end -%>
<%= Labeling::Base.model_name.human(:count => 2) %>
    <%- Iqvoc::Concept.labeling_classes.each do |labeling_class, languages| -%> <%- languages.each do |language| -%> <%= render labeling_class.edit_partial_name(@concept), :f => f, :concept => @concept, :klass => labeling_class, :language => language %> <%- end -%> <%- end -%>
<% Iqvoc::Concept.note_classes.each do |note_class| %> <%= render :partial => note_class.edit_partial_name(@concept), :locals => { :owner_klass => @concept, :assoc_klass => note_class, :f => f } %> <% end %>
<%= Concept::Relation::Base.model_name.human(:count => 2) %>
    <%- if Iqvoc::Concept.broader_relation_class.narrower_editable -%> <%= render Iqvoc::Concept.broader_relation_class.narrower_class.edit_partial_name(@concept), :concept => @concept, :klass => Iqvoc::Concept.broader_relation_class.narrower_class %> <%- end -%>
  1. <%= render Iqvoc::Concept.broader_relation_class.edit_partial_name(@concept), :concept => @concept, :klass => Iqvoc::Concept.broader_relation_class %> <%- Iqvoc::Concept.further_relation_classes.each do |relation_class| -%> <%= render relation_class.edit_partial_name(@concept), :concept => @concept, :klass => relation_class %> <%- end -%>
<%= Match::Base.model_name.human(:count => 2) %>
    <% Iqvoc::Concept.match_classes.each do |match_class| %> <%= render :partial => match_class.edit_partial_name(@concept), :locals => { :owner_klass => @concept, :assoc_klass => match_class, :f => f } %> <% end %>
<%= f.submit t("txt.common.save") %> <% unless controller.action_name == "new" || controller.action_name == "create" %> <%= link_to t("txt.common.reset"), nil, :class => "button" %> <% end %> <% end %>