Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model IEnumerable<iPlan.Model.Nutrient>
- <table id="tbl-companies" class="table table-condensed table-hover">
- <thead>
- <tr>
- <th>@Html.DisplayNameFor(model => model.KeyID)</th>
- <th>@Html.DisplayNameFor(model => model.Name)</th>
- <th>@Html.DisplayNameFor(model => model.Quantity)</th>
- <th>@Html.DisplayNameFor(model => model.Unit)</th>
- <th>@Html.DisplayNameFor(model => model.Mass_g)</th>
- <th>@Html.DisplayNameFor(model => model.Energy_kcal)</th>
- <th>@Html.DisplayNameFor(model => model.Carbohydrates_g)</th>
- <th>@Html.DisplayNameFor(model => model.Protein_g)</th>
- <th>@Html.DisplayNameFor(model => model.Fat_g)</th>
- </tr>
- </thead>
- <tbody>
- @foreach (var item in Model)
- {
- <tr>
- <td>@Html.DisplayFor(modelItem => item.Key.Type)</td>
- <td>@Html.DisplayFor(modelItem => item.Name)</td>
- <td>@Html.DisplayFor(modelItem => item.Quantity)</td>
- <td>@Html.DisplayFor(modelItem => item.Unit)</td>
- <td>@Html.DisplayFor(modelItem => item.Mass_g)</td>
- <td>@Html.DisplayFor(modelItem => item.Energy_kcal)</td>
- <td>@Html.DisplayFor(modelItem => item.Carbohydrates_g)</td>
- <td>@Html.DisplayFor(modelItem => item.Protein_g)</td>
- <td>@Html.DisplayFor(modelItem => item.Fat_g)</td>
- <td>
- @Html.ActionLink("Edit", "Edit", new { id = item.ID }) |
- @Html.ActionLink("Details", "Details", new { id = item.ID }) |
- @Html.ActionLink("Delete", "Delete", new { id = item.ID })
- </td>
- </tr>
- }
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement