Skip to content

Commit

Permalink
WIP: more changes
Browse files Browse the repository at this point in the history
  • Loading branch information
srinivasgumdelli committed Jun 1, 2015
1 parent ad1a6c3 commit bd85b4a
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions app/views/recommendations/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,53 @@
<div class="row">
<%= label_tag 'I have the following health conditions' %>
</div>

<div class="row">
<% @conditions.each do |condition| %>
<%= check_box_tag 'conditions[]', condition.id,
(not @condition_ids.nil?) && @condition_ids.include?(condition.id.to_s) ? true : false,
:id => 'condition-checkbox' %>
<%= condition.condition_name %>
<% end %>
</div><br/>
</div>
<br/>

<div class="row">
<div class="col-lg-15">
<%= 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' %>
</div>
</div><br/>
</div>
<br/>

<div class="row">
<%= submit_tag 'Can I Eat it?', class: 'btn btn-block btn-success' %>
<%= submit_tag 'Can I eat it?', class: 'btn btn-block btn-success' %>
</div>
<% end %>
<br/>

</div>
<div class="row">
<div class="col-xs-6 col-md-6">
<span class="glyphicon glyphicon-ok-circle text-success center-block" style="font-size:6.5em; text-align:center;"></span>
</div>
<div class="col-xs-6 col-md-6">
<span class="glyphicon glyphicon-remove-circle text-muted center-block" style="font-size:6.5em; text-align:center;"></span>
</div>
</div><br/>

<div class="row text-center table-responsive">
<table class="table table-bordered table-striped table-condensed">
<tr>
<th class="text-center">Ingredient</th>
<th class="text-center">Recommended?</th>
<th class="text-center">Reason</th>
</tr>
<tr>
<td>Milk</td>
<td>No</td>
<td>Lactose Intolerance</td>
</tr>
</table>
</div>
</div>
<% end %>
</div>

0 comments on commit bd85b4a

Please sign in to comment.