main
Last change
on this file since a3ce071 was e9bb9d1, checked in by ElenaMoskova <elena.moskova99@…>, 3 months ago |
Use of views
- Use of views in VetCenters.
- Ability to provide a response to a given response.
|
-
Property mode
set to
100644
|
File size:
2.1 KB
|
Line | |
---|
1 | @model IEnumerable<PostgreSqlDotnetCore.Models.PetDetailsProcedure>
|
---|
2 |
|
---|
3 | @{
|
---|
4 | ViewData["Title"] = "PetDiagnostics";
|
---|
5 | }
|
---|
6 |
|
---|
7 | <h2>PetDiagnostics</h2>
|
---|
8 |
|
---|
9 | <p>
|
---|
10 | <a asp-action="Create">Create New</a>
|
---|
11 | </p>
|
---|
12 | <table class="table">
|
---|
13 | <thead>
|
---|
14 | <tr>
|
---|
15 | <th>
|
---|
16 | @Html.DisplayNameFor(model => model.pet_id)
|
---|
17 | </th>
|
---|
18 | <th>
|
---|
19 | @Html.DisplayNameFor(model => model.pet_name)
|
---|
20 | </th>
|
---|
21 | <th>
|
---|
22 | @Html.DisplayNameFor(model => model.diagnosis_description)
|
---|
23 | </th>
|
---|
24 | <th>
|
---|
25 | @Html.DisplayNameFor(model => model.medicine_name)
|
---|
26 | </th>
|
---|
27 | <th>
|
---|
28 | @Html.DisplayNameFor(model => model.medicine_description)
|
---|
29 | </th>
|
---|
30 | <th>
|
---|
31 | @Html.DisplayNameFor(model => model.therapy_description)
|
---|
32 | </th>
|
---|
33 | <th>
|
---|
34 | @Html.DisplayNameFor(model => model.therapy_date)
|
---|
35 | </th>
|
---|
36 | <th></th>
|
---|
37 | </tr>
|
---|
38 | </thead>
|
---|
39 | <tbody>
|
---|
40 | @foreach (var item in Model) {
|
---|
41 | <tr>
|
---|
42 | <td>
|
---|
43 | @Html.DisplayFor(modelItem => item.pet_id)
|
---|
44 | </td>
|
---|
45 | <td>
|
---|
46 | @Html.DisplayFor(modelItem => item.pet_name)
|
---|
47 | </td>
|
---|
48 | <td>
|
---|
49 | @Html.DisplayFor(modelItem => item.diagnosis_description)
|
---|
50 | </td>
|
---|
51 | <td>
|
---|
52 | @Html.DisplayFor(modelItem => item.medicine_name)
|
---|
53 | </td>
|
---|
54 | <td>
|
---|
55 | @Html.DisplayFor(modelItem => item.medicine_description)
|
---|
56 | </td>
|
---|
57 | <td>
|
---|
58 | @Html.DisplayFor(modelItem => item.therapy_description)
|
---|
59 | </td>
|
---|
60 | <td>
|
---|
61 | @Html.DisplayFor(modelItem => item.therapy_date)
|
---|
62 | </td>
|
---|
63 | <td>
|
---|
64 | @Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) |
|
---|
65 | @Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) |
|
---|
66 | @Html.ActionLink("Delete", "Delete", new { /* id=item.PrimaryKey */ })
|
---|
67 | </td>
|
---|
68 | </tr>
|
---|
69 | }
|
---|
70 | </tbody>
|
---|
71 | </table>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.