source: PostgreSqlDotnetCore/Views/PetCares/Edit.cshtml@ 2639fab

main
Last change on this file since 2639fab was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 2 months ago

init commit Elena

  • Property mode set to 100644
File size: 2.2 KB
Line 
1@model PostgreSqlDotnetCore.Models.Pet_CaresClass
2
3@{
4 ViewBag.Title = "Edit";
5}
6
7<h2>Edit</h2>
8
9
10@using (Html.BeginForm())
11{
12 @Html.AntiForgeryToken()
13
14<div class="form-horizontal">
15 <h4>Pet_CaresClass</h4>
16 <hr />
17 @Html.ValidationSummary(true, "", new { @class = "text-danger" })
18 @Html.HiddenFor(model => model.id)
19
20 <div class="form-group">
21 @Html.LabelFor(model => model.title, htmlAttributes: new { @class = "control-label col-md-2" })
22 <div class="col-md-10">
23 @Html.EditorFor(model => model.title, new { htmlAttributes = new { @class = "form-control" } })
24 @Html.ValidationMessageFor(model => model.title, "", new { @class = "text-danger" })
25 </div>
26 </div>
27 <div class="form-group">
28 @Html.LabelFor(model => model.description, htmlAttributes: new { @class = "control-label col-md-2" })
29 <div class="col-md-10">
30 @Html.EditorFor(model => model.description, new { htmlAttributes = new { @class = "form-control" } })
31 @Html.ValidationMessageFor(model => model.description, "", new { @class = "text-danger" })
32 </div>
33 </div>
34
35 <div class="form-group">
36 @Html.LabelFor(model => model.dateending, htmlAttributes: new { @class = "control-label col-md-2" })
37 <div class="col-md-10">
38 @Html.EditorFor(model => model.dateending, new { htmlAttributes = new { @class = "form-control" } })
39 @Html.ValidationMessageFor(model => model.dateending, "", new { @class = "text-danger" })
40 </div>
41 </div>
42
43 <div class="form-group">
44 @Html.LabelFor(model => model.vetcentersid, htmlAttributes: new { @class = "control-label col-md-2" })
45 <div class="col-md-10">
46 @Html.EditorFor(model => model.vetcentersid, new { htmlAttributes = new { @class = "form-control" } })
47 @Html.ValidationMessageFor(model => model.vetcentersid, "", new { @class = "text-danger" })
48 </div>
49 </div>
50
51
52 <div class="form-group">
53 <div class="col-md-offset-2 col-md-10">
54 <br />
55 <input type="submit" value="Save" class="btn btn-dark" />
56 </div>
57 </div>
58</div>
59}
60
61<div>
62 @Html.ActionLink("Back to List", "Index")
63</div>
Note: See TracBrowser for help on using the repository browser.