main
Last change
on this file since e9bb9d1 was 2aea0fd, checked in by ElenaMoskova <elena.moskova99@…>, 4 months ago |
init commit Elena
|
-
Property mode
set to
100644
|
File size:
881 bytes
|
Rev | Line | |
---|
[2aea0fd] | 1 | @model IEnumerable<PostgreSqlDotnetCore.Models.BlogPostAnswers>
|
---|
| 2 |
|
---|
| 3 | @{
|
---|
| 4 | ViewBag.Title = "Blog_Post_Answers";
|
---|
| 5 | }
|
---|
| 6 |
|
---|
| 7 | <h2>Blog_Post_Answers</h2>
|
---|
| 8 |
|
---|
| 9 | <p>
|
---|
| 10 | @Html.ActionLink("Create New", "Create")
|
---|
| 11 | </p>
|
---|
| 12 | <table class="table">
|
---|
| 13 | <tr>
|
---|
| 14 |
|
---|
| 15 | <th>
|
---|
| 16 | @Html.DisplayNameFor(model => model.parent_id)
|
---|
| 17 | </th>
|
---|
| 18 | <th>
|
---|
| 19 | @Html.DisplayNameFor(model => model.reply)
|
---|
| 20 | </th>
|
---|
| 21 |
|
---|
| 22 | </tr>
|
---|
| 23 |
|
---|
| 24 | @foreach (var item in Model) {
|
---|
| 25 | <tr>
|
---|
| 26 | <td>
|
---|
| 27 | @Html.DisplayFor(modelItem => item.parent_id)
|
---|
| 28 | </td>
|
---|
| 29 | <td>
|
---|
| 30 | @Html.DisplayFor(modelItem => item.reply)
|
---|
| 31 | </td>
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | <td>
|
---|
| 35 | @Html.ActionLink("Edit", "Edit", new { id = item.id }) |
|
---|
| 36 | @Html.ActionLink("Details", "Details", new { id = item.id }) |
|
---|
| 37 | @Html.ActionLink("Delete", "Delete", new { id = item.id })
|
---|
| 38 | </td>
|
---|
| 39 | </tr>
|
---|
| 40 | }
|
---|
| 41 |
|
---|
| 42 | </table>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.