source: PostgreSqlDotnetCore/Views/BlogPostAnswers/Details.cshtml@ a3ce071

main
Last change on this file since a3ce071 was e9bb9d1, checked in by ElenaMoskova <elena.moskova99@…>, 3 months ago

Use of views

  1. Use of views in VetCenters.
  2. Ability to provide a response to a given response.
  • Property mode set to 100644
File size: 1.4 KB
Line 
1@model PostgreSqlDotnetCore.Models.BlogPostAnswers
2
3@{
4 ViewBag.Title = "Details";
5}
6
7<h2>Details</h2>
8
9<div>
10 <h4>Blog_Post_Answers</h4>
11 <hr />
12 <dl class="dl-horizontal">
13 <dt>
14 @Html.DisplayNameFor(model => model.parent_id)
15 </dt>
16
17 <dd>
18 @Html.DisplayFor(model => model.parent_id)
19 </dd>
20
21 <dt>
22 @Html.DisplayNameFor(model => model.reply)
23 </dt>
24 <dd>
25 @Html.DisplayFor(model => model.reply)
26 </dd>
27
28
29 </dl>
30</div>
31<br/>
32@{
33 if(Model.blogPostAnswers.Count > 0)
34 {
35
36 <h4>Replay under Answers</h4>
37 <hr />
38 foreach (BlogPostAnswers item in Model.blogPostAnswers)
39 {
40
41 <dl class="dl-horizontal">
42 <dt>
43 @Html.DisplayNameFor(model => item.parent_id)
44 </dt>
45
46 <dd>
47 @Html.DisplayFor(model => item.parent_id)
48 </dd>
49
50 <dt>
51 @Html.DisplayNameFor(model => item.reply)
52 </dt>
53 <dd>
54 @Html.DisplayFor(model => item.reply)
55 </dd>
56
57
58 </dl>
59 }
60 <hr />
61 }
62}
63<p>
64 @Html.ActionLink("Edit", "Edit", new { id = Model.id }) |
65 @* @Html.ActionLink("Back to List", "Index") *@
66 <a href="javascript:void(0);" onclick="history.go(-1);">Back to List</a>
67</p>
Note: See TracBrowser for help on using the repository browser.