<div id="nutrition_facts">
<div class="frame">
    <table class="std_format_table">
      <thead>
      <th>Description</th>
      <th>Food Group</th>
      <th>Blood Type(s)</th>
      <th>Manage</th>
      </thead>
      <tbody>
        <tr>
          <td><%= @food.long_desc %></td>
          <td><%= FoodGroup.find(@food.food_group_id).name %></td>
          <td></td>
          <td class="manage_buttons">
          <%# link_to 'Edit', edit_admin_user_path(@user) %>
          </td>
        </tr>
        <tr style="background-color: #ede3b5">
          <td colspan="4">Nutrition Facts (<%=@amount%>g)</td>
        </tr>
        <tr>
          <td colspan="2">
            <table class="std_format_table">
              <tr>
                <td>Protein</td>
                <td><%= !@protein.nil? ? "#{sprintf("%.0f",@protein)}g" : 'n/a' %></td>
              </tr>
              <tr>
                <td>Carbohydrate</td>
                <td><%= !@starchy_carbs.nil? ? "#{sprintf("%.0f",@starchy_carbs)}g" : "n/a" %></td>
              </tr>
              <tr>
                <td>Fiber</td>
                <td><%= !@fiberous_carbs.nil? ? "#{sprintf("%.0f",@fiberous_carbs)}g" : "n/a" %></td>
              </tr>
                            <tr>
                <td>Sugars</td>
                <td><%= !@sugars.nil? ? "#{sprintf("%.0f",@sugars)}g" :"n/a" %></td>
              </tr>
              <tr>
                <td>Calories</td>
                <td><%= !@calories.nil? ? "#{sprintf("%.0f",@calories)}" : "n/a" %></td>
              </tr>
            </table>
          </td>

        </tr>
      </tbody>
    </table>
  </div>
</div>