<%= form_for [:admin, @nutrition_plan] do |f| %>
<%= f.error_messages %>
<%= f.hidden_field :user_id, :value => @user.id %>
Prepare Nutritional Plan
- <%= f.label :name %><%= f.text_field :name, :value => "#{@user.lastname} Nutritional Plan #{Time.now.strftime("%b %d, %Y")}" %>
- <%= f.label :meal_plan_id %> <%= collection_select :nutrition_plan, :meal_plan_id, @meal_plans,
:id, :name, {:include_blank => 'Select One'} %>
- <%= f.label :supplement_plan_id %> <%= collection_select :nutrition_plan, :supplement_plan_id, @supplement_plans,
:id, :name, {:include_blank => 'Select One'} %>
-
<%= f.label 'Yes / No Foods' %>
<%= f.select :meal_addition, { '42 Diet' => 0, 'Disable' => 1 }, {:prompt => 'Select One'} %>
-
<%= f.label 'ReForm Addition' %>
<%= f.check_box :reform_addition %>
-
<%= f.label 'Extra Instructions' %>
<% if @nutrition_plan.special_instructions.blank? %>
<%= f.text_area :special_instructions, :rows=>3, :value => "Drink 1 gallon or more of water per day.
Cardio: Perform 60 minutes of cardiovascular exercise 7 days per week; interval style in 5 minute segments; 4 minutes moderate, 1 minute high intensity;" %>
<% else %>
<%= f.text_area :special_instructions, :rows=>3 %>
<% end %>
<%= f.submit %>
<% end %>