mirror of
https://github.com/etnguyen03/tjdests.git
synced 2025-04-20 09:40:16 -04:00
chore(profile): remove extra tab
This commit is contained in:
parent
eea1c2d59c
commit
dbfc9b422b
|
@ -19,47 +19,47 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{% if request.user.is_senior %}
|
{% if request.user.is_senior %}
|
||||||
<div class="pt-3 pb-3">
|
<div class="pt-3 pb-3">
|
||||||
<a href="{% url "profile:decision_add" %}" class="btn btn-outline-primary">Add decision</a>
|
<a href="{% url "profile:decision_add" %}" class="btn btn-outline-primary">Add decision</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>Your current decisions are:</p>
|
<p>Your current decisions are:</p>
|
||||||
|
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col">University Name</th>
|
||||||
|
<th scope="col">Admissions Round</th>
|
||||||
|
<th scope="col">Result</th>
|
||||||
|
<th scope="col"></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for decision in decisions_list %}
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">University Name</th>
|
<td>{{ decision.college.name }}</td>
|
||||||
<th scope="col">Admissions Round</th>
|
<td>{{ decision.get_decision_type_display }}</td>
|
||||||
<th scope="col">Result</th>
|
<td>{{ decision.get_admission_status_display }}{% if request.user.attending_decision == decision %}, Attending{% endif %}</td>
|
||||||
<th scope="col"></th>
|
<td>
|
||||||
|
{# edit button #}
|
||||||
|
<a href="{% url "profile:decision_edit" decision.id %}" class="btn btn-outline-warning" aria-label="Edit">
|
||||||
|
<i class="fas fa-pencil-alt"></i>
|
||||||
|
</a>
|
||||||
|
{# delete #}
|
||||||
|
<a href="{% url "profile:decision_delete" decision.id %}" class="btn btn-outline-danger" aria-label="Delete">
|
||||||
|
<i class="far fa-trash-alt"></i>
|
||||||
|
</a>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
{% empty %}
|
||||||
<tbody>
|
<tr>
|
||||||
{% for decision in decisions_list %}
|
<td>There is no data to display.</td>
|
||||||
<tr>
|
<td></td>
|
||||||
<td>{{ decision.college.name }}</td>
|
<td></td>
|
||||||
<td>{{ decision.get_decision_type_display }}</td>
|
<td></td>
|
||||||
<td>{{ decision.get_admission_status_display }}{% if request.user.attending_decision == decision %}, Attending{% endif %}</td>
|
</tr>
|
||||||
<td>
|
{% endfor %}
|
||||||
{# edit button #}
|
</tbody>
|
||||||
<a href="{% url "profile:decision_edit" decision.id %}" class="btn btn-outline-warning" aria-label="Edit">
|
</table>
|
||||||
<i class="fas fa-pencil-alt"></i>
|
|
||||||
</a>
|
|
||||||
{# delete #}
|
|
||||||
<a href="{% url "profile:decision_delete" decision.id %}" class="btn btn-outline-danger" aria-label="Delete">
|
|
||||||
<i class="far fa-trash-alt"></i>
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
{% empty %}
|
|
||||||
<tr>
|
|
||||||
<td>There is no data to display.</td>
|
|
||||||
<td></td>
|
|
||||||
<td></td>
|
|
||||||
<td></td>
|
|
||||||
</tr>
|
|
||||||
{% endfor %}
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>You are not a senior, therefore you cannot add decisions.</p>
|
<p>You are not a senior, therefore you cannot add decisions.</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user