Ignore:
Timestamp:
08/15/24 20:01:13 (3 months ago)
Author:
ElenaMoskova <elena.moskova99@…>
Branches:
main
Children:
8f8226c
Parents:
2639fab
Message:

Аutomating the process

automating the process of updating the list of veterinary centers

Location:
PostgreSqlDotnetCore/Views/PetCares
Files:
5 edited

Legend:

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

    r2639fab rae6c071  
    3737        </div>
    3838    </div>
     39        <div class="form-group">
     40            @Html.LabelFor(model => model.start_date, htmlAttributes: new { @class = "control-label col-md-2" })
     41            <div class="col-md-10">
     42                @Html.EditorFor(model => model.start_date, new { htmlAttributes = new { @class = "form-control" } })
     43                @Html.ValidationMessageFor(model => model.start_date, "", new { @class = "text-danger" })
     44            </div>
     45        </div>
    3946
    4047
     
    4653        </div>
    4754    </div> *@
     55    @*
    4856        <div class="form-group">
    4957            <label class="control-label col-md-2" for="vetcentersid">VetCenter:</label>
     
    5159                <select class="form-control" id="vetcentersid" name="vetcentersid">
    5260                    <option value="">Select VetCenter</option>
    53                     <option value="1">Vet Svet</option>
    54                     <option value="2">Veterinarian Ambulance - Dr.Tonit</option>
    55                     <option value="4">Vet In</option>
     61                    <option value="4">Vet Svet</option>
     62                    <option value="5">Veterinarian Ambulance - Dr.Tonit</option>
     63                    <option value="6">Vet In</option>
    5664                </select>
    5765            </div>
    5866        </div>
     67        *@
    5968
     69        <div class="form-group">
     70            <label class="control-label col-md-2" for="vetcentersid">VetCenter:</label>
     71            <div class="col-md-10">
     72                @Html.DropDownList("vetcentersid", (SelectList)ViewBag.VetCenters, "Select VetCenter", new { @class = "form-control" })
     73            </div>
     74        </div>
    6075
    6176
  • PostgreSqlDotnetCore/Views/PetCares/Delete.cshtml

    r2639fab rae6c071  
    2222        </dt>
    2323        <dt>
     24            @Html.DisplayNameFor(model => model.start_date)
     25        </dt>
     26        <dt>
    2427            @Html.DisplayNameFor(model => model.usersid)
    2528        </dt>
     
    3740        <dd>
    3841            @Html.DisplayFor(model => model.dateending)
     42        </dd>
     43        <dd>
     44            @Html.DisplayFor(model => model.start_date)
    3945        </dd>
    4046        <dd>
  • PostgreSqlDotnetCore/Views/PetCares/Details.cshtml

    r2639fab rae6c071  
    3333        </dd>
    3434        <dt>
     35            @Html.DisplayNameFor(model => model.start_date)
     36        </dt>
     37
     38        <dd>
     39            @Html.DisplayFor(model => model.start_date)
     40        </dd>
     41        <dt>
    3542            @Html.DisplayNameFor(model => model.usersid)
    3643        </dt>
  • PostgreSqlDotnetCore/Views/PetCares/Edit.cshtml

    r2639fab rae6c071  
    4040        </div>
    4141    </div>
     42        <div class="form-group">
     43            @Html.LabelFor(model => model.start_date, htmlAttributes: new { @class = "control-label col-md-2" })
     44            <div class="col-md-10">
     45                @Html.EditorFor(model => model.start_date, new { htmlAttributes = new { @class = "form-control" } })
     46                @Html.ValidationMessageFor(model => model.start_date, "", new { @class = "text-danger" })
     47            </div>
     48        </div>
    4249
    4350    <div class="form-group">
  • PostgreSqlDotnetCore/Views/PetCares/Index.cshtml

    r2639fab rae6c071  
    2323        </th>
    2424        <th>
     25            @Html.DisplayNameFor(model => model.start_date)
     26        </th>
     27        <th>
    2528            @Html.DisplayNameFor(model => model.usersid)
    2629        </th>
     
    4447            @Html.DisplayFor(modelItem => item.dateending)
    4548        </td>
     49            <td>
     50                @Html.DisplayFor(modelItem => item.start_date)
     51            </td>
    4652        <td>
    4753            @Html.DisplayFor(modelItem => item.usersid)
Note: See TracChangeset for help on using the changeset viewer.