<%= form_for([:admin, @admin_menu]) do |f| %> <%= render partial: 'odania/shared/errors', locals: {obj: @admin_menu} %>
<%= f.label :title %>
<%= f.text_field :title %>
<%= f.label :published %>
<%= f.check_box :published %>
<%= f.label :site %>
<%= f.collection_select :site_id, Odania::Site.order('name ASC'), :id, :name %>
<%= f.label :language_id %>
<%= f.collection_select :language_id, Odania::Language.order('name ASC'), :id, :name %>
<%= f.submit %>
<% end %>