This repository has been archived on 2023-02-07. You can view files and clone it, but cannot push or open issues or pull requests.
Files
blender-bfct/blender-bfct/application/templates/applications/index.html
Francesco Siddi 65440a2c31 Applications backend tweaks
Now checking if current user has already reviewed an application.
2014-07-14 20:09:08 +02:00

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 %}