Song

feat: 댓글영역 삭제

1 <% include ../includes/header.ejs %> 1 <% include ../includes/header.ejs %>
2 <div class="panel panel-default"> 2 <div class="panel panel-default">
3 <div class="panel-heading"> 3 <div class="panel-heading">
4 - <%=product.title%> 4 +  <%=product.title%>
5 </div> 5 </div>
6 <div style="padding-bottom: 10px"> 6 <div style="padding-bottom: 10px">
7 - 작성일 : 7 + <br>  작성일 :
8 <%=product.getDate.year%> - 8 <%=product.getDate.year%> -
9 <%=product.getDate.month%> - 9 <%=product.getDate.month%> -
10 <%=product.getDate.day%> 10 <%=product.getDate.day%>
11 </div> 11 </div>
12 <div> 12 <div>
13 <% var count=0; %> 13 <% var count=0; %>
14 - 보유중인 영상 14 +   ※ 보유중인 영상<br><br>
15 <% for (var i in items[0]) { %> 15 <% for (var i in items[0]) { %>
16 <div> 16 <div>
17 - <%=items[0][i]%> 17 +   <%=items[0][i]%>
18 </div> 18 </div>
19 <%count++;};%> 19 <%count++;};%>
20 </div> 20 </div>
21 <div> 21 <div>
22 - 설명 : <%=product.description%> 22 + <br>  설명 : <%=product.description%><br><br>
23 </div> 23 </div>
24 <form method="get" action=""> 24 <form method="get" action="">
25 <div class="input-group"> 25 <div class="input-group">
...@@ -48,24 +48,8 @@ ...@@ -48,24 +48,8 @@
48 <button class="btn btn-primary" style="margin-top: 10px; margin-left: 15px;" >영상담기</button> 48 <button class="btn btn-primary" style="margin-top: 10px; margin-left: 15px;" >영상담기</button>
49 </form> 49 </form>
50 <div class="panel-body"> 50 <div class="panel-body">
51 - <!-- 댓글영역 -->
52 <div> 51 <div>
53 - 댓글작성하기
54 - <form id="commentForm" action="" method="post">
55 - <input type="hidden" name="product_id" value="<%=product.id%>" />
56 - <textarea class="form-control" name="content"></textarea>
57 - <button class="btn btn-primary" style="margin-top: 10px" type="submit">댓글작성</button>
58 - </form>
59 - </div>
60 - <!-- 댓글영역 -->
61 <hr /> 52 <hr />
62 - <div id="comment_area">
63 - <% comments.forEach(function(comment){ %>
64 - <div>
65 - <%=comment.content%>
66 - ( <a class='comment_delete' comment_id='<%=comment._id%>'>삭제</a> )
67 - </div>
68 - <% }); %>
69 </div> 53 </div>
70 </div> 54 </div>
71 </div> 55 </div>
......