main
Last change
on this file since 6782104 was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 4 months ago |
init commit Elena
|
-
Property mode
set to
100644
|
File size:
1.3 KB
|
Line | |
---|
1 | @model PostgreSqlDotnetCore.Models.BlogPostAnswers
|
---|
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>Blog_Post_Answers</h4>
|
---|
16 | <hr />
|
---|
17 | @Html.ValidationSummary(true, "", new { @class = "text-danger" })
|
---|
18 |
|
---|
19 | <div class="form-group">
|
---|
20 | @Html.LabelFor(model => model.parent_id, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
21 | <div class="col-md-10">
|
---|
22 | @Html.EditorFor(model => model.parent_id, new { htmlAttributes = new { @class = "form-control" } })
|
---|
23 | @Html.ValidationMessageFor(model => model.parent_id, "", new { @class = "text-danger" })
|
---|
24 | </div>
|
---|
25 | </div>
|
---|
26 |
|
---|
27 | <div class="form-group">
|
---|
28 | @Html.LabelFor(model => model.reply, htmlAttributes: new { @class = "control-label col-md-2" })
|
---|
29 | <div class="col-md-10">
|
---|
30 | @Html.EditorFor(model => model.reply, new { htmlAttributes = new { @class = "form-control" } })
|
---|
31 | @Html.ValidationMessageFor(model => model.reply, "", new { @class = "text-danger" })
|
---|
32 | </div>
|
---|
33 | </div>
|
---|
34 |
|
---|
35 |
|
---|
36 | <div class="form-group">
|
---|
37 | <div class="col-md-offset-2 col-md-10">
|
---|
38 | <input type="submit" value="Create" class="btn btn-default" />
|
---|
39 | </div>
|
---|
40 | </div>
|
---|
41 | </div>
|
---|
42 | }
|
---|
43 |
|
---|
44 | <div>
|
---|
45 | @Html.ActionLink("Back to List", "Index")
|
---|
46 | </div>
|
---|
47 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.