Changeset d6040ef for PostgreSqlDotnetCore/Views/VetCenter/Create.cshtml
- Timestamp:
- 08/20/24 23:14:03 (3 months ago)
- Branches:
- main
- Children:
- 57fc402
- Parents:
- 63bd770
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
PostgreSqlDotnetCore/Views/VetCenter/Create.cshtml
r63bd770 rd6040ef 8 8 9 9 10 @using (Html.BeginForm()) 10 @using (Html.BeginForm()) 11 11 { 12 12 @Html.AntiForgeryToken() 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" }) 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> 24 </div> 25 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> 32 </div> 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> 39 </div> 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> 46 </div> 47 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> 54 </div> 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> 61 </div> 62 <div class="form-group"> 63 @Html.LabelFor(model => model.longitude, htmlAttributes: new { @class = "control-label col-md-2" }) 64 <div class="col-md-10"> 65 @Html.EditorFor(model => model.longitude, new { htmlAttributes = new { @class = "form-control" } }) 66 @Html.ValidationMessageFor(model => model.longitude, "", new { @class = "text-danger" }) 67 </div> 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>*@ 76 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> 119 </div> 120 *@ 121 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> 23 131 </div> 24 132 </div> 25 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>32 </div>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>39 </div>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>46 </div>47 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>54 </div>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>61 </div>62 <div class="form-group">63 @Html.LabelFor(model => model.longitude, htmlAttributes: new { @class = "control-label col-md-2" })64 <div class="col-md-10">65 @Html.EditorFor(model => model.longitude, new { htmlAttributes = new { @class = "form-control" } })66 @Html.ValidationMessageFor(model => model.longitude, "", new { @class = "text-danger" })67 </div>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>*@76 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>119 </div>120 121 <div class="form-group">122 <div class="col-md-offset-2 col-md-10">123 <input type="submit" value="Create" class="btn btn-default" />124 </div>125 </div>126 </div>127 133 } 128 134
Note:
See TracChangeset
for help on using the changeset viewer.