|
28 | 28 |
|
29 | 29 |
|
30 | 30 |
|
31 | | - <!-- Comments section--> |
32 | | - <section class="mb-5"> |
33 | | - <div class="card bg-light"> |
34 | | - <div class="card-body"> |
35 | | - <!-- Comment form--> |
36 | | - <form class="mb-4"><textarea class="form-control" rows="3" placeholder="Join the discussion and leave a comment!"></textarea></form> |
37 | | - <!-- Comment with nested comments--> |
38 | | - <div class="d-flex mb-4"> |
39 | | - <!-- Parent comment--> |
40 | | - <div class="flex-shrink-0"><img class="rounded-circle" src="https://dummyimage.com/50x50/ced4da/6c757d.jpg" alt="..." /></div> |
41 | | - <div class="ms-3"> |
42 | | - <div class="fw-bold">Commenter Name</div> |
43 | | - If you're going to lead a space frontier, it has to be government; it'll never be private enterprise. Because the space frontier is dangerous, and it's expensive, and it has unquantified risks. |
44 | | - <!-- Child comment 1--> |
45 | | - <div class="d-flex mt-4"> |
46 | | - <div class="flex-shrink-0"><img class="rounded-circle" src="https://dummyimage.com/50x50/ced4da/6c757d.jpg" alt="..." /></div> |
47 | | - <div class="ms-3"> |
48 | | - <div class="fw-bold">Commenter Name</div> |
49 | | - And under those conditions, you cannot establish a capital-market evaluation of that enterprise. You can't get investors. |
50 | | - </div> |
51 | | - </div> |
52 | | - <!-- Child comment 2--> |
53 | | - <div class="d-flex mt-4"> |
54 | | - <div class="flex-shrink-0"><img class="rounded-circle" src="https://dummyimage.com/50x50/ced4da/6c757d.jpg" alt="..." /></div> |
55 | | - <div class="ms-3"> |
56 | | - <div class="fw-bold">Commenter Name</div> |
57 | | - When you put money directly to a problem, it makes a good headline. |
58 | | - </div> |
59 | | - </div> |
60 | | - </div> |
61 | | - </div> |
62 | | - <!-- Single comment--> |
63 | | - <div class="d-flex"> |
64 | | - <div class="flex-shrink-0"><img class="rounded-circle" src="https://dummyimage.com/50x50/ced4da/6c757d.jpg" alt="..." /></div> |
65 | | - <div class="ms-3"> |
66 | | - <div class="fw-bold">Commenter Name</div> |
67 | | - When I look at the universe and all the ways the universe wants to kill us, I find it hard to reconcile that with statements of beneficence. |
68 | | - </div> |
69 | | - </div> |
70 | | - </div> |
71 | | - </div> |
72 | | - </section> |
| 31 | + <!-- Start Comments / Review section--> |
| 32 | + <section class="mb-5"> |
| 33 | + <div class="card bg-light"> |
| 34 | + <div class="card-body"> |
| 35 | + <!-- Begin Review / Root Comment Form--> |
| 36 | + <div class="row"> |
| 37 | + <form method="post" action="[% $c.url_for( 'do_blog_comment' ) %]"> |
| 38 | + <input type="hidden" name="blog_id" value="[% $blog.id %]"> |
| 39 | + |
| 40 | + <textarea class="form-control" id="message" name="message" rows="4" placeholder="What do you think of [% $blog.title %]?">[% $form_message %]</textarea> |
| 41 | + |
| 42 | + <div class="form-check form-switch"> |
| 43 | + <input class="form-check-input" type="checkbox" value="1" name="rev_pos" id="rev_pos" [% $form_rev_pos ? " checked " : "" %]> |
| 44 | + <label class="form-check-label" for="rev_pos">This is a positive review. I recommend this blog.</label> |
| 45 | + </div> |
| 46 | + |
| 47 | + <div class="form-check form-switch"> |
| 48 | + <input class="form-check-input" type="checkbox" value="1" name="rev_neg" id="rev_neg" [% $form_rev_neg ? " checked " : "" %]> |
| 49 | + <label class="form-check-label" for="rev_neg">This is a negative review. I dislike this blog.</label> |
| 50 | + </div> |
| 51 | + |
| 52 | + <button type="submit" class="btn btn-primary float-end">Post Review</button> |
| 53 | + </form> |
| 54 | + </div> |
| 55 | + <!-- End Review / Root Comment Form--> |
| 56 | + <div class="row"> |
| 57 | +%% for $blog.get_comments -> $comment { |
| 58 | +%% include "/simple/blog/_comment.tx" { comment => $comment }; |
| 59 | +%% } |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + </section> |
| 64 | + <!-- End Comments / Review section--> |
73 | 65 |
|
74 | 66 | %% } |
0 commit comments