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

67 lines
2.8 KiB
HTML
Raw Normal View History

2014-06-13 14:56:37 +02:00
{% extends 'layout.html' %}
{% block body %}
<div class="row">
<div class="col-md-12">
<h1>BFCT Applications</h1>
2014-06-20 16:43:26 +02:00
<table class="table table-striped table-hover">
2014-06-13 14:56:37 +02:00
<thead>
<tr>
<th>#</th>
<th>Name</th>
2014-06-13 14:56:37 +02:00
<th>Country</th>
<th>Submission Date</th>
2014-06-13 14:56:37 +02:00
<th>Status</th>
<th class="content-align-center">Approvals</th>
2014-06-23 12:20:03 +02:00
<th></th>
2014-06-13 14:56:37 +02:00
</tr>
</thead>
<tbody>
{% for application in applications %}
<tr class="{% if application.is_reviewed() %}reviewed{% endif %}">
<td class="relative">{{ application.id }}</td>
2014-06-23 12:20:03 +02:00
<td><a href="{{url_for('applications.view', id=application.id)}}" >
{{application.user.first_name}} {{application.user.last_name}}
2014-06-23 12:20:03 +02:00
</a>
</td>
<td>{{application.city_country}}</td>
<td>{{application.submission_date.strftime('%d %B, %Y')}}</td>
<td>
2014-06-23 12:20:03 +02:00
<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 %}
2014-06-23 12:20:03 +02:00
</a>
</td>
<td class="content-align-center">
2014-06-20 17:30:28 +02:00
{{application.approve}}
/
2014-06-20 17:30:28 +02:00
{{application.approve + application.reject}}
</td>
2014-06-23 12:20:03 +02:00
<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 %}
2014-06-13 14:56:37 +02:00
</div>
</div>
2014-06-23 12:20:03 +02:00
<hr/>
2014-06-13 14:56:37 +02:00
{% endblock %}