Changeset e9bb9d1 for PostgreSqlDotnetCore/Views/VetCenter/Index.cshtml
- Timestamp:
- 08/28/24 21:41:13 (4 weeks ago)
- Branches:
- main
- Children:
- a850333
- Parents:
- 118e414
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
PostgreSqlDotnetCore/Views/VetCenter/Index.cshtml
r118e414 re9bb9d1 1 1 @using Microsoft.AspNetCore.Identity 2 2 @inject SignInManager<IdentityUser> SignInManager 3 @model IEnumerable<PostgreSqlDotnetCore.Models.VetCenter> 3 @* IEnumerable<PostgreSqlDotnetCore.Models.VetCenter>*@ 4 @model IEnumerable<PostgreSqlDotnetCore.Models.VetCenterWithCity> 5 4 6 5 7 @{ … … 23 25 <tr> 24 26 <th> 25 @Html.DisplayNameFor(model => model. name)27 @Html.DisplayNameFor(model => model.vet_center_name) 26 28 </th> 27 29 <th> … … 45 47 </th> 46 48 <th> 47 @Html.DisplayNameFor(model => model.cit iesid)49 @Html.DisplayNameFor(model => model.city_name) 48 50 </th> 49 51 <th></th> … … 54 56 <tr> 55 57 <td> 56 @Html.DisplayFor(modelItem => item. name)58 @Html.DisplayFor(modelItem => item.vet_center_name) 57 59 </td> 58 60 <td> … … 76 78 </td> 77 79 <td> 78 @Html.DisplayFor(modelItem => item.cit iesid)80 @Html.DisplayFor(modelItem => item.city_name) 79 81 </td> 80 82 <td> … … 85 87 </td> 86 88 87 88 89 89 @* @if ((SignInManager.IsSignedIn(User)))90 {91 <td>92 90 93 @Html.ActionLink("Edit", "Edit", new { id = item.id }) |94 @Html.ActionLink("Details", "Details", new { id = item.id }) |95 @Html.ActionLink("Delete", "Delete", new { id = item.id })91 @* @if ((SignInManager.IsSignedIn(User))) 92 { 93 <td> 96 94 97 </td> 98 } 99 *@ 95 @Html.ActionLink("Edit", "Edit", new { id = item.id }) | 96 @Html.ActionLink("Details", "Details", new { id = item.id }) | 97 @Html.ActionLink("Delete", "Delete", new { id = item.id }) 98 99 </td> 100 } 101 *@ 100 102 101 103 @* Додадете условие за проверка на улогите *@
Note:
See TracChangeset
for help on using the changeset viewer.