Ignore:
Timestamp:
08/28/24 21:41:13 (4 weeks ago)
Author:
ElenaMoskova <elena.moskova99@…>
Branches:
main
Children:
a850333
Parents:
118e414
Message:

Use of views

  1. Use of views in VetCenters.
  2. Ability to provide a response to a given response.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • PostgreSqlDotnetCore/Views/VetCenter/Details.cshtml

    r118e414 re9bb9d1  
    1 @model PostgreSqlDotnetCore.Models.VetCenter
     1@model PostgreSqlDotnetCore.Models.VetCenterWithCity
    22
    33@{
     
    55}
    66
    7 <h2>Details</h2>
     7<h2>Details for @Model.vet_center_name</h2>
    88
    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>
    1643
    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}
    2051
    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>
    7452<p>
    75     @Html.ActionLink("Edit", "Edit", new { id = Model.id }) |
    7653    @Html.ActionLink("Back to List", "Index")
    7754</p>
Note: See TracChangeset for help on using the changeset viewer.