[2aea0fd] | 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>
|
---|
[ae6c071] | 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>
|
---|
[2aea0fd] | 49 |
|
---|
[8f8226c] | 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 |
|
---|
[99d0ecc] | 58 | <div class="form-group">
|
---|
| 59 | @Html.LabelFor(model => model.pet_id, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 60 | <div class="col-md-10">
|
---|
| 61 | @Html.DropDownListFor(model => model.pet_id, (SelectList)ViewBag.Pets, "Select Pet", new { @class = "form-control" })
|
---|
| 62 | @Html.ValidationMessageFor(model => model.pet_id, "", new { @class = "text-danger" })
|
---|
| 63 | </div>
|
---|
| 64 | </div>
|
---|
[8f8226c] | 65 |
|
---|
| 66 | @*<div class="form-group">
|
---|
[2aea0fd] | 67 | @Html.LabelFor(model => model.vetcentersid, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 68 | <div class="col-md-10">
|
---|
| 69 | @Html.EditorFor(model => model.vetcentersid, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 70 | @Html.ValidationMessageFor(model => model.vetcentersid, "", new { @class = "text-danger" })
|
---|
| 71 | </div>
|
---|
| 72 | </div>
|
---|
[8f8226c] | 73 | *@
|
---|
| 74 | @*
|
---|
| 75 | <div class="form-group">
|
---|
| 76 | <label class="control-label col-md-2" for="vetcentersid">VetCenter:</label>
|
---|
| 77 | <div class="col-md-10">
|
---|
| 78 | @Html.DropDownList("vetcentersid", (SelectList)ViewBag.VetCenters, "Select VetCenter", new { @class = "form-control" })
|
---|
| 79 | </div>
|
---|
| 80 | </div>
|
---|
| 81 | *@
|
---|
[2aea0fd] | 82 |
|
---|
| 83 |
|
---|
| 84 | <div class="form-group">
|
---|
| 85 | <div class="col-md-offset-2 col-md-10">
|
---|
| 86 | <br />
|
---|
| 87 | <input type="submit" value="Save" class="btn btn-dark" />
|
---|
| 88 | </div>
|
---|
| 89 | </div>
|
---|
| 90 | </div>
|
---|
| 91 | }
|
---|
| 92 |
|
---|
| 93 | <div>
|
---|
| 94 | @Html.ActionLink("Back to List", "Index")
|
---|
| 95 | </div>
|
---|