source: PostgreSqlDotnetCore/Views/City/Create.cshtml@ 99d0ecc

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

init commit Elena

  • Property mode set to 100644
File size: 944 bytes
RevLine 
[2aea0fd]1@model PostgreSqlDotnetCore.Models.CitiesClass
2
3@{
4 ViewBag.Title = "Create";
5}
6
7<h2>Create</h2>
8
9
10@using (Html.BeginForm())
11{
12 @Html.AntiForgeryToken()
13
14<div class="form-horizontal">
15 <h4>CitiesClass</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
27
28 <div class="form-group">
29 <div class="col-md-offset-2 col-md-10">
30 <input type="submit" value="Create" class="btn btn-dark" />
31 </div>
32 </div>
33</div>
34}
35
36<div>
37 @Html.ActionLink("Back to List", "Index")
38</div>
Note: See TracBrowser for help on using the repository browser.