Changeset e9bb9d1 for PostgreSqlDotnetCore/Views/VetCenter
- Timestamp:
- 08/28/24 21:41:13 (3 months ago)
- Branches:
- main
- Children:
- a850333
- Parents:
- 118e414
- Location:
- PostgreSqlDotnetCore/Views/VetCenter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
PostgreSqlDotnetCore/Views/VetCenter/Details.cshtml
r118e414 re9bb9d1 1 @model PostgreSqlDotnetCore.Models.VetCenter 1 @model PostgreSqlDotnetCore.Models.VetCenterWithCity 2 2 3 3 @{ … … 5 5 } 6 6 7 <h2>Details </h2>7 <h2>Details for @Model.vet_center_name</h2> 8 8 9 <div> 10 <h4>VetCenter</h4> 11 <hr /> 12 <dl class="dl-horizontal"> 13 <dt> 14 @Html.DisplayNameFor(model => model.name) 15 </dt> 9 <table class="table"> 10 <tr> 11 <th>@Html.DisplayNameFor(model => model.vet_center_name)</th> 12 <td>@Html.DisplayFor(model => model.vet_center_name)</td> 13 </tr> 14 <tr> 15 <th>@Html.DisplayNameFor(model => model.adress)</th> 16 <td>@Html.DisplayFor(model => model.adress)</td> 17 </tr> 18 <tr> 19 <th>@Html.DisplayNameFor(model => model.workinghours)</th> 20 <td>@Html.DisplayFor(model => model.workinghours)</td> 21 </tr> 22 <tr> 23 <th>@Html.DisplayNameFor(model => model.description)</th> 24 <td>@Html.DisplayFor(model => model.description)</td> 25 </tr> 26 <tr> 27 <th>@Html.DisplayNameFor(model => model.phonenumber)</th> 28 <td>@Html.DisplayFor(model => model.phonenumber)</td> 29 </tr> 30 <tr> 31 <th>@Html.DisplayNameFor(model => model.latitude)</th> 32 <td>@Html.DisplayFor(model => model.latitude)</td> 33 </tr> 34 <tr> 35 <th>@Html.DisplayNameFor(model => model.longitude)</th> 36 <td>@Html.DisplayFor(model => model.longitude)</td> 37 </tr> 38 <tr> 39 <th>@Html.DisplayNameFor(model => model.city_name)</th> 40 <td>@Html.DisplayFor(model => model.city_name)</td> 41 </tr> 42 </table> 16 43 17 <dd> 18 @Html.DisplayFor(model => model.name) 19 </dd> 44 @if (ViewBag.hasAccess != null && ViewBag.hasAccess == true) 45 { 46 <p> 47 @Html.ActionLink("Edit", "Edit", new { id = Model.id }) | 48 @Html.ActionLink("Delete", "Delete", new { id = Model.id }) 49 </p> 50 } 20 51 21 <dt>22 @Html.DisplayNameFor(model => model.adress)23 </dt>24 25 <dd>26 @Html.DisplayFor(model => model.adress)27 </dd>28 <dt>29 @Html.DisplayNameFor(model => model.description)30 </dt>31 32 <dd>33 @Html.DisplayFor(model => model.description)34 </dd>35 <dt>36 @Html.DisplayNameFor(model => model.workinghours)37 </dt>38 39 <dd>40 @Html.DisplayFor(model => model.workinghours)41 </dd>42 <dt>43 @Html.DisplayNameFor(model => model.phonenumber)44 </dt>45 46 <dd>47 @Html.DisplayFor(model => model.phonenumber)48 </dd>49 <dt>50 @Html.DisplayNameFor(model => model.latitude)51 </dt>52 53 <dd>54 @Html.DisplayFor(model => model.latitude)55 </dd>56 <dt>57 @Html.DisplayNameFor(model => model.longitude)58 </dt>59 60 <dd>61 @Html.DisplayFor(model => model.longitude)62 </dd>63 <dt>64 @Html.DisplayNameFor(model => model.citiesid)65 </dt>66 67 <dd>68 @Html.DisplayFor(model => model.citiesid)69 </dd>70 71 72 </dl>73 </div>74 52 <p> 75 @Html.ActionLink("Edit", "Edit", new { id = Model.id }) |76 53 @Html.ActionLink("Back to List", "Index") 77 54 </p> -
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.