[2aea0fd] | 1 | @model PostgreSqlDotnetCore.Models.VetCenter
|
---|
| 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>CustomerClass</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.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>
|
---|
| 27 |
|
---|
| 28 | <div class="form-group">
|
---|
| 29 | @Html.LabelFor(model => model.adress, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 30 | <div class="col-md-10">
|
---|
| 31 | @Html.EditorFor(model => model.adress, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 32 | @Html.ValidationMessageFor(model => model.adress, "", new { @class = "text-danger" })
|
---|
| 33 | </div>
|
---|
| 34 | </div>
|
---|
| 35 | <div class="form-group">
|
---|
| 36 | @Html.LabelFor(model => model.description, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 37 | <div class="col-md-10">
|
---|
| 38 | @Html.EditorFor(model => model.description, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 39 | @Html.ValidationMessageFor(model => model.description, "", new { @class = "text-danger" })
|
---|
| 40 | </div>
|
---|
| 41 | </div>
|
---|
| 42 | <div class="form-group">
|
---|
| 43 | @Html.LabelFor(model => model.workinghours, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 44 | <div class="col-md-10">
|
---|
| 45 | @Html.EditorFor(model => model.workinghours, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 46 | @Html.ValidationMessageFor(model => model.workinghours, "", new { @class = "text-danger" })
|
---|
| 47 | </div>
|
---|
| 48 | </div>
|
---|
| 49 | <div class="form-group">
|
---|
| 50 | @Html.LabelFor(model => model.phonenumber, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 51 | <div class="col-md-10">
|
---|
| 52 | @Html.EditorFor(model => model.phonenumber, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 53 | @Html.ValidationMessageFor(model => model.phonenumber, "", new { @class = "text-danger" })
|
---|
| 54 | </div>
|
---|
| 55 | </div>
|
---|
| 56 | <div class="form-group">
|
---|
| 57 | @Html.LabelFor(model => model.latitude, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 58 | <div class="col-md-10">
|
---|
| 59 | @Html.EditorFor(model => model.latitude, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 60 | @Html.ValidationMessageFor(model => model.latitude, "", new { @class = "text-danger" })
|
---|
| 61 | </div>
|
---|
| 62 | </div>
|
---|
| 63 | <div class="form-group">
|
---|
| 64 | @Html.LabelFor(model => model.longitude, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 65 | <div class="col-md-10">
|
---|
| 66 | @Html.EditorFor(model => model.longitude, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 67 | @Html.ValidationMessageFor(model => model.longitude, "", new { @class = "text-danger" })
|
---|
| 68 | </div>
|
---|
| 69 | </div>
|
---|
| 70 | @* <div class="form-group">
|
---|
| 71 | @Html.LabelFor(model => model.citiesid, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 72 | <div class="col-md-10">
|
---|
| 73 | @Html.EditorFor(model => model.citiesid, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 74 | @Html.ValidationMessageFor(model => model.citiesid, "", new { @class = "text-danger" })
|
---|
| 75 | </div>
|
---|
| 76 | </div> *@
|
---|
[d6040ef] | 77 | @* <div class="form-group">
|
---|
[2aea0fd] | 78 | <label for="citiesid">Citie:</label>
|
---|
| 79 | <select class="form-control" id="citiesid" name="citiesid">
|
---|
| 80 | <option value="">Select city</option>
|
---|
| 81 | <option value="1">Скопје</option>
|
---|
| 82 | <option value="1">Охрид</option>
|
---|
| 83 | <option value="1">Скопје</option>
|
---|
| 84 | </select>
|
---|
| 85 | </div>
|
---|
[d6040ef] | 86 | *@
|
---|
| 87 | <div class="form-group">
|
---|
| 88 | <label asp-for="citiesid" class="control-label"></label>
|
---|
| 89 | <select asp-for="citiesid" asp-items="ViewBag.Citiess" class="form-control"></select>
|
---|
| 90 | <span asp-validation-for="citiesid" class="text-danger"></span>
|
---|
| 91 | </div>
|
---|
[2aea0fd] | 92 |
|
---|
| 93 | <div class="form-group">
|
---|
| 94 | <div class="col-md-offset-2 col-md-10">
|
---|
| 95 | <input type="submit" value="Save" class="btn btn-default" />
|
---|
| 96 | </div>
|
---|
| 97 | </div>
|
---|
| 98 | </div>
|
---|
| 99 | }
|
---|
| 100 |
|
---|
| 101 | <div>
|
---|
| 102 | @Html.ActionLink("Back to List", "Index")
|
---|
| 103 | </div>
|
---|