<%= form_for [:admin, @enrollment] do |f| %>
<%= f.hidden_field :user_id, :value => @user.id %>
<%= f.error_messages %>
- <%= f.label :program_id %><%= collection_select :enrollment, :program_id, Program.all, :id, :name, {:include_blank => 'Select One'} %>
- <%= label_tag :nutritional_plan %>
<%= select_tag "nutrition_plan", options_from_collection_for_select(NutritionPlan.find_all_by_user_id(@user.id), "id", "name") %>
- <%= f.label :session_time %>
<%= f.time_select :session, { :default => Time.now.change(:hour => 5), :simple_time_select => true, :minute_interval => 60, :time_separator => "" } %>
-
<%= f.label :goals %>
<%= f.text_area :goals %>
<%= f.submit %>
<% end %>