Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
9 changes: 6 additions & 3 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 %}">
{{ 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