Skip to content

Commit 005d855

Browse files
authored
Merge pull request #235 from yayoiukai/master
moved group delete buttom to group list page
2 parents a8b7319 + 45804d3 commit 005d855

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

groups/templates/groups/group.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ <h3>Your Groups</h3>
1111
<ul>
1212
{% for group in groups %}
1313
<li>
14-
<h4>Group name: <a href="../edit_group/{{group.id}}"> {{ group.group_name }}</a></h4>
14+
<h4>Group name: <a href="../edit_group/{{group.id}}"> {{ group.group_name }}</a><a href="../delete_group/{{group.id}}"><button class="btn btn-sm btn-danger">Delete</button></a></h4>
1515
<ul>Creation time: {{group.creation_time}}
1616
<form action="{% url 'groups:group_process' %}" method="post" enctype="multipart/form-data">
1717
{% csrf_token %}

groups/templates/groups/group_edit.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ <h3>Group Name: {{group.group_name}} </h3>
1212
<input name='old_name' type="hidden" value="{{ group.group_name }}">
1313
<input name='new_name' type="text" default="{{ group.group_name }}">
1414
<button type="search" class="btn btn-sm btn-warning">Rename</button>
15-
<span> </span>
16-
<a href="../delete_group/{{group.id}}"><button class="btn btn-sm btn-danger">Delete</button></a>
1715
</form>
1816
</div>
1917
<h4>Files in this group: </h4>

0 commit comments

Comments
 (0)