source: PostgreSqlDotnetCore/Views/Blog/Details.cshtml@ 2639fab

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

init commit Elena

  • Property mode set to 100644
File size: 1.9 KB
Line 
1@model PostgreSqlDotnetCore.Models.BlogPostConsultation
2
3@{
4 ViewBag.Title = "Details";
5}
6
7<h2>Details</h2>
8
9<div>
10 <h4>Blog post for consultations</h4>
11 <hr />
12 <dl class="dl-horizontal">
13 <dt>
14 @Html.DisplayNameFor(model => model.date_askes)
15 </dt>
16
17 <dd>
18 @Html.DisplayFor(model => model.date_askes)
19 </dd>
20
21 <dt>
22 @Html.DisplayNameFor(model => model.title)
23 </dt>
24 <dd>
25 @Html.DisplayFor(model => model.title)
26 </dd>
27
28 <dt>
29 @Html.DisplayNameFor(model => model.description)
30 </dt>
31
32 <dd>
33 @Html.DisplayFor(model => model.description)
34 </dd>
35 <dt>
36 @Html.DisplayNameFor(model => model.users_id)
37 </dt>
38
39 <dd>
40 @Html.DisplayFor(model => model.users_id)
41 </dd>
42
43 </dl>
44</div>
45<hr/>
46<div>
47 <h4>Blog post anwers</h4>
48 <hr />
49
50 <table class="table">
51 <tr>
52
53 <th>
54 Reply
55 </th>
56 <th>
57 UsersId
58 </th>
59 <th></th>
60
61 </tr>
62
63 @foreach (var item in Model.BlogPostAnswers)
64 {
65 <tr>
66 <td>
67 @Html.DisplayFor(modelItem => item.reply)
68 </td>
69
70 <th>
71 @Html.DisplayFor(model => item.usersid)
72 </th>
73
74 <td>
75 @Html.ActionLink("Edit", "Edit", "BlogPostAnswers", new { id = item.id }) |
76 @Html.ActionLink("Details", "Details", "BlogPostAnswers", new { id = item.id }) |
77 @Html.ActionLink("Delete", "Delete", "BlogPostAnswers", new { id = item.id })
78 </td>
79 </tr>
80 }
81
82 </table>
83</div>
84<p>
85 @Html.ActionLink("Edit", "Edit", new { id = Model.id }) |
86 @Html.ActionLink("Back to List", "Index")
87</p>
Note: See TracBrowser for help on using the repository browser.