1 | @using Microsoft.AspNetCore.Identity
|
---|
2 | @inject SignInManager<IdentityUser> SignInManager
|
---|
3 | @model IEnumerable<PostgreSqlDotnetCore.Models.VetCenter>
|
---|
4 |
|
---|
5 | @{
|
---|
6 | ViewBag.Title = "VetCenter";
|
---|
7 | }
|
---|
8 |
|
---|
9 | <h2>Vet Center</h2>
|
---|
10 |
|
---|
11 | <p>
|
---|
12 | @Html.ActionLink("Create New", "Create")
|
---|
13 | </p>
|
---|
14 | <table class="table">
|
---|
15 | <tr>
|
---|
16 | <th>
|
---|
17 | @Html.DisplayNameFor(model => model.name)
|
---|
18 | </th>
|
---|
19 | <th>
|
---|
20 | @Html.DisplayNameFor(model => model.adress)
|
---|
21 | </th>
|
---|
22 |
|
---|
23 | <th>
|
---|
24 | @Html.DisplayNameFor(model => model.workinghours)
|
---|
25 | </th>
|
---|
26 | <th>
|
---|
27 | @Html.DisplayNameFor(model => model.description)
|
---|
28 | </th>
|
---|
29 | <th>
|
---|
30 | @Html.DisplayNameFor(model => model.phonenumber)
|
---|
31 | </th>
|
---|
32 | <th>
|
---|
33 | @Html.DisplayNameFor(model => model.latitude)
|
---|
34 | </th>
|
---|
35 | <th>
|
---|
36 | @Html.DisplayNameFor(model => model.longitude)
|
---|
37 | </th>
|
---|
38 | <th>
|
---|
39 | @Html.DisplayNameFor(model => model.citiesid)
|
---|
40 | </th>
|
---|
41 | <th></th>
|
---|
42 | </tr>
|
---|
43 |
|
---|
44 | @foreach (var item in Model)
|
---|
45 | {
|
---|
46 | <tr>
|
---|
47 | <td>
|
---|
48 | @Html.DisplayFor(modelItem => item.name)
|
---|
49 | </td>
|
---|
50 | <td>
|
---|
51 | @Html.DisplayFor(modelItem => item.adress)
|
---|
52 | </td>
|
---|
53 | <td>
|
---|
54 | @Html.DisplayFor(modelItem => item.workinghours)
|
---|
55 | </td>
|
---|
56 | <td>
|
---|
57 | @Html.DisplayFor(modelItem => item.description)
|
---|
58 | </td>
|
---|
59 |
|
---|
60 | <td>
|
---|
61 | @Html.DisplayFor(modelItem => item.phonenumber)
|
---|
62 | </td>
|
---|
63 | <td>
|
---|
64 | @Html.DisplayFor(modelItem => item.latitude)
|
---|
65 | </td>
|
---|
66 | <td>
|
---|
67 | @Html.DisplayFor(modelItem => item.longitude)
|
---|
68 | </td>
|
---|
69 | <td>
|
---|
70 | @Html.DisplayFor(modelItem => item.citiesid)
|
---|
71 | </td>
|
---|
72 | <td>
|
---|
73 | @*@Html.DisplayFor(modelItem => item.email)*@
|
---|
74 | </td>
|
---|
75 | <td>
|
---|
76 | @*@Html.DisplayFor(modelItem => item.number)*@
|
---|
77 | </td>
|
---|
78 |
|
---|
79 | @if (SignInManager.IsSignedIn(User))
|
---|
80 | {
|
---|
81 | <td>
|
---|
82 |
|
---|
83 | @Html.ActionLink("Edit", "Edit", new { id = item.id }) |
|
---|
84 | @Html.ActionLink("Details", "Details", new { id = item.id }) |
|
---|
85 | @Html.ActionLink("Delete", "Delete", new { id = item.id })
|
---|
86 |
|
---|
87 | </td>
|
---|
88 | }
|
---|
89 |
|
---|
90 | </tr>
|
---|
91 | }
|
---|
92 |
|
---|
93 | </table>
|
---|