Advertisement
Guest User

Untitled

a guest
Nov 16th, 2015
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.79 KB | None | 0 0
  1. @model IEnumerable<iPlan.Model.Nutrient>
  2.  
  3.  
  4. <table id="tbl-companies" class="table table-condensed table-hover">
  5.     <thead>
  6.         <tr>
  7.             <th>@Html.DisplayNameFor(model => model.KeyID)</th>
  8.             <th>@Html.DisplayNameFor(model => model.Name)</th>
  9.             <th>@Html.DisplayNameFor(model => model.Quantity)</th>
  10.             <th>@Html.DisplayNameFor(model => model.Unit)</th>
  11.             <th>@Html.DisplayNameFor(model => model.Mass_g)</th>
  12.             <th>@Html.DisplayNameFor(model => model.Energy_kcal)</th>
  13.             <th>@Html.DisplayNameFor(model => model.Carbohydrates_g)</th>
  14.             <th>@Html.DisplayNameFor(model => model.Protein_g)</th>
  15.             <th>@Html.DisplayNameFor(model => model.Fat_g)</th>
  16.         </tr>
  17.     </thead>
  18.     <tbody>
  19.         @foreach (var item in Model)
  20.         {
  21.             <tr>
  22.                 <td>@Html.DisplayFor(modelItem => item.Key.Type)</td>
  23.                 <td>@Html.DisplayFor(modelItem => item.Name)</td>
  24.                 <td>@Html.DisplayFor(modelItem => item.Quantity)</td>
  25.                 <td>@Html.DisplayFor(modelItem => item.Unit)</td>
  26.                 <td>@Html.DisplayFor(modelItem => item.Mass_g)</td>
  27.                 <td>@Html.DisplayFor(modelItem => item.Energy_kcal)</td>
  28.                 <td>@Html.DisplayFor(modelItem => item.Carbohydrates_g)</td>
  29.                 <td>@Html.DisplayFor(modelItem => item.Protein_g)</td>
  30.                 <td>@Html.DisplayFor(modelItem => item.Fat_g)</td>
  31.                 <td>
  32.                     @Html.ActionLink("Edit", "Edit", new { id = item.ID }) |
  33.                     @Html.ActionLink("Details", "Details", new { id = item.ID }) |
  34.                     @Html.ActionLink("Delete", "Delete", new { id = item.ID })
  35.                 </td>
  36.             </tr>
  37.         }
  38.  
  39.     </tbody>
  40. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement