source: PostgreSqlDotnetCore/Views/PetCares/Create.cshtml@ 784b3ad

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

init commit Elena

  • Property mode set to 100644
File size: 2.7 KB
Line 
1@model PostgreSqlDotnetCore.Models.Pet_CaresClass
2
3@{
4 ViewBag.Title = "Create";
5}
6
7<h2>Create a new one</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 <div class="form-group">
19 @Html.LabelFor(model => model.title, htmlAttributes: new { @class = "control-label col-md-2" })
20 <div class="col-md-10">
21 @Html.EditorFor(model => model.title, new { htmlAttributes = new { @class = "form-control" } })
22 @Html.ValidationMessageFor(model => model.title, "", new { @class = "text-danger" })
23 </div>
24 </div>
25 <div class="form-group">
26 @Html.LabelFor(model => model.description, htmlAttributes: new { @class = "control-label col-md-2" })
27 <div class="col-md-10">
28 @Html.EditorFor(model => model.description, new { htmlAttributes = new { @class = "form-control" } })
29 @Html.ValidationMessageFor(model => model.description, "", new { @class = "text-danger" })
30 </div>
31 </div>
32 <div class="form-group">
33 @Html.LabelFor(model => model.dateending, htmlAttributes: new { @class = "control-label col-md-2" })
34 <div class="col-md-10">
35 @Html.EditorFor(model => model.dateending, new { htmlAttributes = new { @class = "form-control" } })
36 @Html.ValidationMessageFor(model => model.dateending, "", new { @class = "text-danger" })
37 </div>
38 </div>
39
40
41 @* <div class="form-group">
42 @Html.LabelFor(model => model.vetcentersid, htmlAttributes: new { @class = "control-label col-md-2" })
43 <div class="col-md-10">
44 @Html.EditorFor(model => model.vetcentersid, new { htmlAttributes = new { @class = "form-control" } })
45 @Html.ValidationMessageFor(model => model.vetcentersid, "", new { @class = "text-danger" })
46 </div>
47 </div> *@
48 <div class="form-group">
49 <label class="control-label col-md-2" for="vetcentersid">VetCenter:</label>
50 <div class="col-md-10 ">
51 <select class="form-control" id="vetcentersid" name="vetcentersid">
52 <option value="">Select VetCenter</option>
53 <option value="1">Vet Svet</option>
54 <option value="2">Veterinarian Ambulance - Dr.Tonit</option>
55 <option value="4">Vet In</option>
56 </select>
57 </div>
58 </div>
59
60
61
62 <div class="form-group">
63 <div class="col-md-offset-2 col-md-10">
64 <br />
65 <input type="submit" value="Create" class="btn btn-dark" />
66 </div>
67 </div>
68</div>
69}
70
71<div>
72 @Html.ActionLink("Back to List", "Index")
73</div>
Note: See TracBrowser for help on using the repository browser.