-
초간단 Django 게시판 17. delete view의 화면 수정Python/초간단 장고 Django 2021. 5. 30. 15:34반응형
특별한 것은 없다.
<!--templates/board/article_confirm_delete.html--> {% extends 'base.html' %} {% block title %}삭제 - {{object.title}}{% endblock %} {% block content %} <div class="card" style="width: auto;"> <div class="card-header"> 다음 글을 삭제할까요? </div> <div class="card-body"> <h5 class="card-title">{{object.title}}</h5> <small>by {{object.author}}</small> <p style="text-align:right"><small>created at {{object.created_at|date:'Y-m-d, H:i'}}<br> modified at {{object.modified_at|date:'Y-m-d, H:i'}}</small></p> <div class=""> </div> </div> <div class="card-footer text-muted text-end"> <form method="POST"> {%csrf_token%} <input class="btn btn-primary btn-sm" type="submit" value="삭제"> </form> </div> </div> {% endblock %}
반응형