From bd85b4a123b30afcee891772fc1f247190db2817 Mon Sep 17 00:00:00 2001 From: Srinivas Gumdelli Date: Sun, 31 May 2015 21:07:15 -0500 Subject: [PATCH] WIP: more changes --- app/views/recommendations/index.html.erb | 41 ++++++++++++++++++++---- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/app/views/recommendations/index.html.erb b/app/views/recommendations/index.html.erb index da8941a..a0b25b0 100644 --- a/app/views/recommendations/index.html.erb +++ b/app/views/recommendations/index.html.erb @@ -7,6 +7,7 @@
<%= label_tag 'I have the following health conditions' %>
+
<% @conditions.each do |condition| %> <%= check_box_tag 'conditions[]', condition.id, @@ -14,17 +15,45 @@ :id => 'condition-checkbox' %> <%= condition.condition_name %> <% end %> -

+ +
+
<%= label_tag 'I want to eat' %> - <%= text_field_tag 'food', nil, placeholder: 'Food, eg: Pizza', class: 'form-control' %> + <%= text_field_tag 'food', nil, placeholder: 'Food, eg: Pizza', class: 'form-control' %>
-

+ +
+
- <%= submit_tag 'Can I Eat it?', class: 'btn btn-block btn-success' %> + <%= submit_tag 'Can I eat it?', class: 'btn btn-block btn-success' %>
- <% end %> +
- +
+
+ +
+
+ +
+

+ +
+ + + + + + + + + + + +
IngredientRecommended?Reason
MilkNoLactose Intolerance
+
+ + <% end %> \ No newline at end of file