More members overhaul

Relates to #44
This commit is contained in:
Jan Tuomi
2017-05-12 21:19:01 +03:00
parent 3a468b9c39
commit 74746fc0de
23 changed files with 258 additions and 484 deletions
+44
View File
@@ -0,0 +1,44 @@
{% extends "members_base.html" %}
{% load i18n %}
{% block content %}
<div>
<h3>{% trans "Member applications" %}</h3>
<div>
<table class="table table-bordered table-hover">
<thead>
<tr class="ui-widget-header">
<th>{% trans "Last name" %}</th>
<th>{% trans "First name" %}</th>
<th>{% trans "Email" %}</th>
<th>{% trans "AYY member" %}</th>
<th>{% trans "JAS recipient" %}</th>
<th>{% trans "Residence" %}</th>
<th>{% trans "Submitted" %}</th>
<th class="table-button-column">{% trans "Application count" %}: {{ application_count }}</th>
</tr>
</thead>
<tbody>
{% for application in application_list %}
<tr>
<td>{{ application.last_name }}</td>
<td>{{ application.first_name }}</td>
<td>{{ application.email }}</td>
<td>{{ application.AYY }}</td>
<td>{{ application.jas }}</td>
<td>{{ application.POR }}</td>
<td>{{ application.submitted }}</td>
<td class="table-button-column">
<a href="/members/accept_application/{{ application.id }}" class="btn btn-success">{% trans "Accept" %}</a>
<a href="/members/decline_application/{{ application.id }}" class="table-button btn btn-danger">{% trans "Decline" %}</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endblock content %}