Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Added the feature of, only superuser can delete the members in the the team and also changed the sizes of images in the team list. #332

Open
wants to merge 7 commits into
base: development
Choose a base branch
from
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
11 changes: 7 additions & 4 deletions clubManagement/templates/clubManagement/team_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<!-- HERO TEXT -->
<div class="hero-caption">
<div class="hero-text">
<h1 class="hero-title font-alt">Team</h1>
<h1 class="hero-title font-alt">{{ object.name }}</h1>
<p class="hero-subtitle font-serif"></p>
</div>
</div>
Expand All @@ -30,7 +30,7 @@ <h1 class="hero-title font-alt">Team</h1>
<div class="col-md-4">
<h3>Team details</h3>
<div class="card mb-3">
<img class="card-img-top img-fluid" src="/static/clubManagement/image/{{ object.image }}">
<img class="card-img-top img-fluid" src="/static/media{{ object.image }}">
<div class="card-block">
<h4 class="card-title">{{ object.name }}</h4>
<p class="card-text">{{ object.description }}</p>
Expand Down Expand Up @@ -61,15 +61,18 @@ <h5>Team members</h5>
<span class="badge badge-default badge-pill">{{ user_count }}</span>
</li>
{% for resp in responsibility_list %}

<li class="list-group-item justify-content-between">
<a class="link" href="{% url 'profile' resp.user.id %}">
<a class="link" href="{% url 'profile' resp.user.username %}">
{{ resp.user.first_name }} {{ resp.user.last_name }}
</a>
{% if edit_permission %}
<form method="post" action="{% url "team_member_delete" resp.id %}">
{% csrf_token %}
<button type="submit" class="close">×</button>
</form>
</li>
{% endif %}
</li>
{% endfor %}
{% if edit_permission %}
<div onclick="showForm()" class="col-md-6 offset-md-3">
Expand Down
6 changes: 3 additions & 3 deletions clubManagement/templates/clubManagement/team_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ <h1 class="hero-title font-alt">Teams</h1>
<div class="col-md-4">
<br>
<div class="card-group" style="width:60%" >
<img class="card-img-top img-fluid" height="auto" width="auto"
src="/static/clubManagement/image/{{ object.image }}"
<img class="card-img-top img-fluid" style="height: 200px;width: 300px"
src="/static/media/{{ object.image }}"
alt="Card image cap">
<div class="card-block">
<h3 class="card-title">{{ object.name }}</h3>
<p class="card-body text-truncate">{{ object.description | truncatechars:99}}</p>
<p class="card-body text-truncate">{{ object.description | truncatechars:50}}</p>
<a href="{% url 'team_detail' object.id %}"
class="btn btn-dark anim-scroll">More info
</a>
Expand Down
2 changes: 1 addition & 1 deletion registration/templates/registration/profile_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<!-- HERO TEXT -->
<div class="hero-caption">
<div class="hero-text">
<h1 class="hero-title font-alt">Event Details</h1>
<h1 class="hero-title font-alt">Members</h1>
<p class="hero-subtitle font-serif"></p>
</div>
</div>
Expand Down