source: PostgreSqlDotnetCore/Views/Pets/Index.cshtml@ 72b1da2

main
Last change on this file since 72b1da2 was 8f8226c, checked in by ElenaMoskova <elena.moskova99@…>, 3 months ago

fix bugs and new pages

Fix BlogPostAnswers
fix present data in the lists

  • Property mode set to 100644
File size: 1.6 KB
Line 
1@model IEnumerable<PostgreSqlDotnetCore.Models.PetsClass>
2
3@{
4 ViewBag.Title = "PetsClass";
5}
6
7<h2>PetsClass</h2>
8
9<p>
10 @Html.ActionLink("Create New", "Create")
11</p>
12<table class="table">
13 <tr>
14 <th>
15 @Html.DisplayNameFor(model => model.name)
16 </th>
17
18 <th>
19 @Html.DisplayNameFor(model => model.color)
20 </th>
21 <th>
22 @Html.DisplayNameFor(model => model.description)
23 </th>
24 <th>
25 @Html.DisplayNameFor(model => model.dateofbirthday)
26 </th>
27 <th>
28 @Html.DisplayNameFor(model => model.usersid)
29 </th>
30 <th>
31 @Html.DisplayNameFor(model => model.typeofpetsid)
32 </th>
33
34
35 <th></th>
36
37 </tr>
38
39@foreach (var item in Model) {
40 <tr>
41 <td>
42 @Html.DisplayFor(modelItem => item.name)
43 </td>
44 <td>
45 @Html.DisplayFor(modelItem => item.color)
46 </td>
47 <td>
48 @Html.DisplayFor(modelItem => item.description)
49 </td>
50 <td>
51 @Html.DisplayFor(modelItem => item.dateofbirthday)
52 </td>
53
54 <td>
55 @Html.DisplayFor(modelItem => item.usersid)
56 </td>
57 <td>
58 @Html.DisplayFor(modelItem => item.typeofpetsid)
59 </td>
60
61
62
63
64 <td>
65 @Html.ActionLink("Edit", "Edit", new { id = item.id }) |
66 @Html.ActionLink("Details", "Details", new { id = item.id }) |
67 @Html.ActionLink("Delete", "Delete", new { id = item.id })
68 </td>
69 </tr>
70}
71
72</table>
Note: See TracBrowser for help on using the repository browser.