<% content_for :sidebar do %> <%= render :partial => 'body_trackers/sidebar' %> <% end %>
<%= link_to t(".heading_nutrient_view"), nutrients_project_ingredients_path(@project), :class => 'icon icon-stats' %> <% if User.current.allowed_to?(:manage_common, @project) %> <%= link_to t(".heading_import_ingredients"), '#', :class => 'icon icon-multiple', :onclick => 'showAndScrollTo("import-ingredients", "filename"); return false;' %> <%= link_to t(".heading_new_ingredient"), '#', :class => 'icon icon-add', :onclick => 'showAndScrollTo("add-ingredient", "ingredient_name"); return false;' %> <% end %>
>

<%= t ".heading_new_ingredient" %>

<%= labelled_form_for @ingredient, :url => project_ingredients_path(@project), :html => {:id => 'ingredient-form'} do |f| %> <%= render :partial => 'ingredients/form', :locals => { :f => f } %> <%= submit_tag l(:button_create) %> <%= link_to l(:button_cancel), "#", :onclick => '$("#add-ingredient").hide()' %> <% end %>

<%= t ".heading" %>

<%= render :partial => 'ingredients/list' %>