임태민

Update post delete alert

- 글을 삭제할 때 발생하는 팝업 창과 관련한 코드를 바꿨습니다
- 추가로 display와 관련한 내용을 다듬었습니다.
...@@ -13,13 +13,13 @@ ...@@ -13,13 +13,13 @@
13 <ol class="breadcrumb p-1 pl-2 pr-2"> 13 <ol class="breadcrumb p-1 pl-2 pr-2">
14 <li class="breadcrumb-item"><a href="/">Home</a></li> 14 <li class="breadcrumb-item"><a href="/">Home</a></li>
15 <li class="breadcrumb-item"><a href="/posts">Board</a></li> 15 <li class="breadcrumb-item"><a href="/posts">Board</a></li>
16 - <li class="breadcrumb-item active" aria-current="page"><%= post.title %></li> 16 + <li class="breadcrumb-item active" aria-current="page"><%= post.address %></li>
17 </ol> 17 </ol>
18 </nav> 18 </nav>
19 19
20 <div class="card"> 20 <div class="card">
21 <h5 class="card-header p-2" style="font-weight: bold; font-family: 'Archivo', sans-serif; background-color:goldenrod;"><%= post.title %></h5> 21 <h5 class="card-header p-2" style="font-weight: bold; font-family: 'Archivo', sans-serif; background-color:goldenrod;"><%= post.title %></h5>
22 - <h5 class="card-header p-1" style="font-family: 'Archivo', sans-serif;"><%= post.address %></h5> 22 + <!-- <h5 class="card-header p-1" style="font-family: 'Archivo', sans-serif;"><%= post.address %></h5> -->
23 <div class="row"> <!-- 1 --> 23 <div class="row"> <!-- 1 -->
24 24
25 <div class="col-md-7 col-lg-8 col-xl-9 order-sm-2 order-md-1"> <!-- 1 --> 25 <div class="col-md-7 col-lg-8 col-xl-9 order-sm-2 order-md-1"> <!-- 1 -->
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
46 <% if(isAuthenticated && post.author && currentUser.id == post.author.id){ %> <!-- 1 --> 46 <% if(isAuthenticated && post.author && currentUser.id == post.author.id){ %> <!-- 1 -->
47 <a class="btn btn-outline-primary" href="/posts/<%= post._id %>/edit">Edit</a> 47 <a class="btn btn-outline-primary" href="/posts/<%= post._id %>/edit">Edit</a>
48 <form action="/posts/<%= post._id %>?_method=delete" method="post" class="d-inline"> 48 <form action="/posts/<%= post._id %>?_method=delete" method="post" class="d-inline">
49 - <a class="btn btn-outline-primary" href="javascript:void(0)" onclick="confirm('Do you want to delete this?')?this.parentElement.submit():null;">Delete</a> 49 + <a class="btn btn-outline-primary" href="javascript:void(0)" onclick="confirm('기록을 삭제하시겠습니까?')?this.parentElement.submit():null;">Delete</a>
50 </form> 50 </form>
51 <% } %> 51 <% } %>
52 </div> 52 </div>
......