Better display which applications have been voted or not
This commit is contained in:
@@ -3,22 +3,23 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<h1>BFCT Applications</h1>
|
<h1>BFCT Applications</h1>
|
||||||
<table class="table table-striped table-hover">
|
<table class="table table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>#</th>
|
<th class="content-align-center">#</th>
|
||||||
<th>Name</th>
|
<th>Name</th>
|
||||||
<th>Country</th>
|
<th>Country</th>
|
||||||
<th>Submission Date</th>
|
<th>Submitted On</th>
|
||||||
<th>Status</th>
|
<th>Status</th>
|
||||||
|
<th class="content-align-center">Voted</th>
|
||||||
<th class="content-align-center">Approvals</th>
|
<th class="content-align-center">Approvals</th>
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for application in applications %}
|
{% for application in applications %}
|
||||||
<tr class="{% if application.is_reviewed() %}reviewed{% endif %}">
|
<tr class="{% if not application.is_reviewed() %}danger{% endif %}">
|
||||||
<td class="relative">{{ application.id }}</td>
|
<td class="relative content-align-center">{{ application.id }}</td>
|
||||||
<td><a href="{{url_for('applications.view', id=application.id)}}" >
|
<td><a href="{{url_for('applications.view', id=application.id)}}" >
|
||||||
{{application.user.first_name}} {{application.user.last_name}}
|
{{application.user.first_name}} {{application.user.last_name}}
|
||||||
</a>
|
</a>
|
||||||
@@ -40,6 +41,13 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
<td class="content-align-center">
|
||||||
|
{% if application.is_reviewed() %}
|
||||||
|
<i class="fa fa-check" title="You voted for this applicant"></i>
|
||||||
|
{% else %}
|
||||||
|
<i class="fa fa-times danger" title="You haven't voted yet, tsk!"></i>
|
||||||
|
{% endif %}
|
||||||
|
</td>
|
||||||
<td class="content-align-center">
|
<td class="content-align-center">
|
||||||
{{application.approve}}
|
{{application.approve}}
|
||||||
/
|
/
|
||||||
|
Reference in New Issue
Block a user