[2aea0fd] | 1 | @model PostgreSqlDotnetCore.Models.VetCenter
|
---|
| 2 |
|
---|
| 3 | @{
|
---|
| 4 | ViewBag.Title = "Create";
|
---|
| 5 | }
|
---|
| 6 |
|
---|
| 7 | <h2>Create</h2>
|
---|
| 8 |
|
---|
| 9 |
|
---|
[d6040ef] | 10 | @using (Html.BeginForm())
|
---|
[2aea0fd] | 11 | {
|
---|
| 12 | @Html.AntiForgeryToken()
|
---|
[d6040ef] | 13 |
|
---|
| 14 | <div class="form-horizontal">
|
---|
| 15 | <h4>VetCenter</h4>
|
---|
| 16 | <hr />
|
---|
| 17 | @Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
---|
| 18 | <div class="form-group">
|
---|
| 19 | @Html.LabelFor(model => model.name, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 20 | <div class="col-md-10">
|
---|
| 21 | @Html.EditorFor(model => model.name, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 22 | @Html.ValidationMessageFor(model => model.name, "", new { @class = "text-danger" })
|
---|
| 23 | </div>
|
---|
[2aea0fd] | 24 | </div>
|
---|
| 25 |
|
---|
[d6040ef] | 26 | <div class="form-group">
|
---|
| 27 | @Html.LabelFor(model => model.adress, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 28 | <div class="col-md-10">
|
---|
| 29 | @Html.EditorFor(model => model.adress, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 30 | @Html.ValidationMessageFor(model => model.adress, "", new { @class = "text-danger" })
|
---|
| 31 | </div>
|
---|
[2aea0fd] | 32 | </div>
|
---|
[d6040ef] | 33 | <div class="form-group">
|
---|
| 34 | @Html.LabelFor(model => model.description, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 35 | <div class="col-md-10">
|
---|
| 36 | @Html.EditorFor(model => model.description, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 37 | @Html.ValidationMessageFor(model => model.description, "", new { @class = "text-danger" })
|
---|
| 38 | </div>
|
---|
[2aea0fd] | 39 | </div>
|
---|
[d6040ef] | 40 | <div class="form-group">
|
---|
| 41 | @Html.LabelFor(model => model.workinghours, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 42 | <div class="col-md-10">
|
---|
| 43 | @Html.EditorFor(model => model.workinghours, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 44 | @Html.ValidationMessageFor(model => model.workinghours, "", new { @class = "text-danger" })
|
---|
| 45 | </div>
|
---|
[2aea0fd] | 46 | </div>
|
---|
| 47 |
|
---|
[d6040ef] | 48 | <div class="form-group">
|
---|
| 49 | @Html.LabelFor(model => model.phonenumber, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 50 | <div class="col-md-10">
|
---|
| 51 | @Html.EditorFor(model => model.phonenumber, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 52 | @Html.ValidationMessageFor(model => model.phonenumber, "", new { @class = "text-danger" })
|
---|
| 53 | </div>
|
---|
[2aea0fd] | 54 | </div>
|
---|
[d6040ef] | 55 | <div class="form-group">
|
---|
| 56 | @Html.LabelFor(model => model.latitude, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 57 | <div class="col-md-10">
|
---|
| 58 | @Html.EditorFor(model => model.latitude, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 59 | @Html.ValidationMessageFor(model => model.latitude, "", new { @class = "text-danger" })
|
---|
| 60 | </div>
|
---|
[2aea0fd] | 61 | </div>
|
---|
[d6040ef] | 62 | <div class="form-group">
|
---|
| 63 | @Html.LabelFor(model => model.longitude, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
[2aea0fd] | 64 | <div class="col-md-10">
|
---|
[d6040ef] | 65 | @Html.EditorFor(model => model.longitude, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 66 | @Html.ValidationMessageFor(model => model.longitude, "", new { @class = "text-danger" })
|
---|
[2aea0fd] | 67 | </div>
|
---|
[d6040ef] | 68 | </div>
|
---|
| 69 | @*<div class="form-group">
|
---|
| 70 | @Html.LabelFor(model => model.citiesid, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
| 71 | <div class="col-md-10">
|
---|
| 72 | @Html.EditorFor(model => model.citiesid, new { htmlAttributes = new { @class = "form-control" } })
|
---|
| 73 | @Html.ValidationMessageFor(model => model.citiesid, "", new { @class = "text-danger" })
|
---|
| 74 | </div>
|
---|
| 75 | </div>*@
|
---|
[2aea0fd] | 76 |
|
---|
[d6040ef] | 77 | @* <div class="form-group">
|
---|
| 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 | <option value="1">Берово</option>
|
---|
| 85 | <option value="2">Битола</option>
|
---|
| 86 | <option value="3">Богданци</option>
|
---|
| 87 | <option value="4">Валандово</option>
|
---|
| 88 | <option value="5">Велес</option>
|
---|
| 89 | <option value="6">Виница</option>
|
---|
| 90 | <option value="7">Гевгелија</option>
|
---|
| 91 | <option value="8">Гостивар</option>
|
---|
| 92 | <option value="9">Дебар</option>
|
---|
| 93 | <option value="10">Делчево</option>
|
---|
| 94 | <option value="11">Демир Капија</option>
|
---|
| 95 | <option value="12">Демир Хисар</option>
|
---|
| 96 | <option value="13">Кавадарци</option>
|
---|
| 97 | <option value="14">Кичево</option>
|
---|
| 98 | <option value="15">Кочани</option>
|
---|
| 99 | <option value="16">Кратово</option>
|
---|
| 100 | <option value="17">Крива Паланка</option>
|
---|
| 101 | <option value="18">Крушево</option>
|
---|
| 102 | <option value="19">Куманово</option>
|
---|
| 103 | <option value="20">Македонска Каменица</option>
|
---|
| 104 | <option value="21">Македонски Брод</option>
|
---|
| 105 | <option value="22">Неготино</option>
|
---|
| 106 | <option value="23">Охрид</option>
|
---|
| 107 | <option value="24">Пехчево</option>
|
---|
| 108 | <option value="25">Прилеп</option>
|
---|
| 109 | <option value="26">Пропиштип</option>
|
---|
| 110 | <option value="27">Радовиш</option>
|
---|
| 111 | <option value="28">Ресен</option>
|
---|
| 112 | <option value="29">Свети Николе</option>
|
---|
| 113 | <option value="30">Скопје</option>
|
---|
| 114 | <option value="31">Струга</option>
|
---|
| 115 | <option value="32">Струмица</option>
|
---|
| 116 | <option value="33">Тетово</option>
|
---|
| 117 | <option value="34">Штип</option>
|
---|
| 118 | </select>
|
---|
[2aea0fd] | 119 | </div>
|
---|
[d6040ef] | 120 | *@
|
---|
[2aea0fd] | 121 |
|
---|
[d6040ef] | 122 | <div class="form-group">
|
---|
| 123 | <label asp-for="citiesid" class="control-label"></label>
|
---|
| 124 | <select asp-for="citiesid" asp-items="ViewBag.Citiess" class="form-control"></select>
|
---|
| 125 | <span asp-validation-for="citiesid" class="text-danger"></span>
|
---|
| 126 | </div>
|
---|
| 127 | <div class="form-group">
|
---|
| 128 | <div class="col-md-offset-2 col-md-10">
|
---|
| 129 | <input type="submit" value="Create" class="btn btn-default" />
|
---|
| 130 | </div>
|
---|
[2aea0fd] | 131 | </div>
|
---|
| 132 | </div>
|
---|
| 133 | }
|
---|
| 134 |
|
---|
| 135 | <div>
|
---|
| 136 | @Html.ActionLink("Back to List", "Index")
|
---|
| 137 | </div>
|
---|