Ignore:
Timestamp:
08/20/24 15:04:19 (6 weeks ago)
Author:
ElenaMoskova <elena.moskova99@…>
Branches:
main
Children:
6782104
Parents:
ae6c071
Message:

fix bugs and new pages

Fix BlogPostAnswers
fix present data in the lists

Location:
PostgreSqlDotnetCore/Views
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • PostgreSqlDotnetCore/Views/PetCares/Edit.cshtml

    rae6c071 r8f8226c  
    4848        </div>
    4949
    50     <div class="form-group">
     50        <div class="form-group">
     51            @Html.LabelFor(model => model.vetcentersid, htmlAttributes: new { @class = "control-label col-md-2" })
     52            <div class="col-md-10">
     53                @Html.DropDownListFor(model => model.vetcentersid, (SelectList)ViewBag.VetCenters, "Select VetCenter", new { @class = "form-control" })
     54                @Html.ValidationMessageFor(model => model.vetcentersid, "", new { @class = "text-danger" })
     55            </div>
     56        </div>
     57
     58
     59   @*<div class="form-group">
    5160        @Html.LabelFor(model => model.vetcentersid, htmlAttributes: new { @class = "control-label col-md-2" })
    5261        <div class="col-md-10">
     
    5564        </div>
    5665    </div>
     66    *@
     67        @*
     68        <div class="form-group">
     69            <label class="control-label col-md-2" for="vetcentersid">VetCenter:</label>
     70            <div class="col-md-10">
     71                @Html.DropDownList("vetcentersid", (SelectList)ViewBag.VetCenters, "Select VetCenter", new { @class = "form-control" })
     72            </div>
     73        </div>
     74    *@
    5775
    5876
  • PostgreSqlDotnetCore/Views/Pets/Create.cshtml

    rae6c071 r8f8226c  
    1616    <hr />
    1717    @Html.ValidationSummary(true, "", new { @class = "text-danger" })
     18
     19        <div class="form-group">
     20            @Html.LabelFor(model => model.name, htmlAttributes: new { @class = "control-label col-md-2" })
     21            <div class="col-md-10">
     22                @Html.EditorFor(model => model.name, new { htmlAttributes = new { @class = "form-control" } })
     23                @Html.ValidationMessageFor(model => model.name, "", new { @class = "text-danger" })
     24            </div>
     25        </div>
    1826
    1927    <div class="form-group">
  • PostgreSqlDotnetCore/Views/Pets/Delete.cshtml

    rae6c071 r8f8226c  
    1212    <hr />
    1313    <dl class="dl-horizontal">
     14
     15        <dt>
     16            @Html.DisplayNameFor(model => model.name)
     17        </dt>
     18
     19        <dd>
     20            @Html.DisplayFor(model => model.name)
     21        </dd>
    1422        <dt>
    1523            @Html.DisplayNameFor(model => model.color)
  • PostgreSqlDotnetCore/Views/Pets/Details.cshtml

    rae6c071 r8f8226c  
    1111    <hr />
    1212    <dl class="dl-horizontal">
     13        <dt>
     14            @Html.DisplayNameFor(model => model.name)
     15        </dt>
     16
     17        <dd>
     18            @Html.DisplayFor(model => model.name)
     19        </dd>
    1320        <dt>
    1421            @Html.DisplayNameFor(model => model.color)
  • PostgreSqlDotnetCore/Views/Pets/Edit.cshtml

    rae6c071 r8f8226c  
    1818    @Html.HiddenFor(model => model.id)
    1919
     20        <div class="form-group">
     21            @Html.LabelFor(model => model.name, htmlAttributes: new { @class = "control-label col-md-2" })
     22            <div class="col-md-10">
     23                @Html.EditorFor(model => model.name, new { htmlAttributes = new { @class = "form-control" } })
     24                @Html.ValidationMessageFor(model => model.name, "", new { @class = "text-danger" })
     25            </div>
     26        </div>
    2027    <div class="form-group">
    2128        @Html.LabelFor(model => model.color, htmlAttributes: new { @class = "control-label col-md-2" })
  • PostgreSqlDotnetCore/Views/Pets/Index.cshtml

    rae6c071 r8f8226c  
    1212<table class="table">
    1313    <tr>
     14        <th>
     15            @Html.DisplayNameFor(model => model.name)
     16        </th>
    1417
    1518        <th>
     
    3639@foreach (var item in Model) {
    3740    <tr>
     41            <td>
     42                @Html.DisplayFor(modelItem => item.name)
     43            </td>
    3844        <td>
    3945            @Html.DisplayFor(modelItem => item.color)
Note: See TracChangeset for help on using the changeset viewer.