-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bonus: Editing and Deleting Meetings
- Loading branch information
1 parent
bcf76bc
commit b1f6e22
Showing
5 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
meeting_planner/meetings/templates/meetings/confirm_delete.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}Delete Meeting: {{meeting.title}}{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Delete {{meeting.title}}</h1> | ||
<form method="post"> | ||
{% csrf_token %} | ||
<p>Are you sure?</p> | ||
|
||
<button type="submit">Yes</button> | ||
<a href="{% url 'detail' meeting.id %}">No, take me back</a> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}Change Meeting: {{ meeting.title }}{% endblock %} | ||
|
||
{% block content %} | ||
<h1>Change meeting</h1> | ||
<form method="post"> | ||
<table> | ||
{{ form }} | ||
</table> | ||
{% csrf_token %} | ||
<button type="submit">Update</button> | ||
</form> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters