Files
kontor/flask/kontor/templates/tysc/teams.html
T
2025-01-14 15:35:53 +01:00

61 lines
1.9 KiB
HTML

{% import "bootstrap/utils.html" as utils %}
{% extends "base.html" %}
{% block title %}Teams{% endblock %}
{% block body %}
<div class="content-section">
<div class="outer">
<div class="middle">
<div class="inner">
<br/>
{{ utils.flashed_messages() }}
<br/>
<h1 style="text-align:center;">Teams</h1>
{% if teams %}
<hr class="intro-divider">
<div class="center">
<table class="table table-striped table-bordered">
<thead>
<tr>
<th width="25%"> Name </th>
<th width="15%"> Shortname </th>
<th width="15%"> Edit </th>
<th width="15%"> Delete </th>
</tr>
</thead>
<tbody>
{% for team in teams %}
<tr>
<td> {{ team.name }} </td>
<td> {{ team.shortname }} </td>
<td>
<a href="{{ url_for('tysc.edit_team', team_id=team.pk) }}">
<i class="fa fa-pencil"></i> Edit
</a>
</td>
<td>
<a href="{{ url_for('tysc.delete_team', team_id=team.pk) }}">
<i class="fa fa-trash"></i> Delete
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div style="text-align: center">
{% else %}
<div style="text-align: center">
<h3> No teams have been added. </h3>
<hr class="intro-divider">
{% endif %}
<a href="{{ url_for('tysc.add_team') }}" class="btn btn-default btn-lg">
<i class="fa fa-plus"></i>
Add Team
</a>
</div>
</div>
</div>
</div>
</div>
{% endblock %}