67 lines
2.8 KiB
HTML
Executable File
67 lines
2.8 KiB
HTML
Executable File
{% extends 'layout.html' %}
|
|
{% block body %}
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<h1>BFCT Applications</h1>
|
|
<table class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>Name</th>
|
|
<th>Country</th>
|
|
<th>Submission Date</th>
|
|
<th>Status</th>
|
|
<th class="content-align-center">Approvals</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for application in applications %}
|
|
<tr class="{% if application.is_reviewed() %}reviewed{% endif %}">
|
|
<td class="relative">{{ application.id }}</td>
|
|
<td><a href="{{url_for('applications.view', id=application.id)}}" >
|
|
{{application.user.first_name}} {{application.user.last_name}}
|
|
</a>
|
|
</td>
|
|
<td>{{application.city_country}}</td>
|
|
<td>{{application.submission_date.strftime('%d %B, %Y')}}</td>
|
|
<td>
|
|
<a href="{{url_for('applications.view', id=application.id)}}" >
|
|
{% if application.status == 'under_review' %}
|
|
<span class="label label-2x label-info"><i class="fa fa-clock-o"></i> Under Review</span>
|
|
{% elif application.status == 'submitted' %}
|
|
<span class="label label-2x label-danger"><i class="fa fa-warning"></i> Pending</span>
|
|
{% elif application.status == 'approved' %}
|
|
<span class="label label-2x label-success"><i class="fa fa-star"></i> Approved!</span>
|
|
{% elif application.status == 'rejected' %}
|
|
<span class="label label-2x label-default"><i class="fa fa-times"></i> Rejected</span>
|
|
{% else %}
|
|
{{application.status}}
|
|
{% endif %}
|
|
</a>
|
|
</td>
|
|
<td class="content-align-center">
|
|
{{application.approve}}
|
|
/
|
|
{{application.approve + application.reject}}
|
|
</td>
|
|
<td>
|
|
<a href="{{url_for('applications.view', id=application.id)}}" >
|
|
View <i class="fa fa-angle-double-right"></i>
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
{% if loop.last %}
|
|
</tbody>
|
|
</table>
|
|
<div class="content-align-right">
|
|
Listing {{ loop.index }} applications
|
|
</div>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<hr/>
|
|
|
|
{% endblock %}
|