source: PostgreSqlDotnetCore/Views/PetCares/Index.cshtml@ e90ba32

main
Last change on this file since e90ba32 was e90ba32, checked in by ElenaMoskova <elena.moskova99@…>, 4 weeks ago

fix issues

fix bugs with nested tables
fix delete nested fk items

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