fix(profile): remove extraneous <tr>

This commit is contained in:
Ethan Nguyen 2021-04-21 14:15:51 -04:00
parent 117ea19a17
commit eea1c2d59c
No known key found for this signature in database
GPG Key ID: B4CA5339AF911920

View File

@ -34,32 +34,30 @@
</tr>
</thead>
<tbody>
<tr>
{% for decision in decisions_list %}
<tr>
<td>{{ decision.college.name }}</td>
<td>{{ decision.get_decision_type_display }}</td>
<td>{{ decision.get_admission_status_display }}{% if request.user.attending_decision == decision %}, Attending{% endif %}</td>
<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>
{% empty %}
<tr>
<td>There is no data to display.</td>
<td></td>
<td></td>
<td></td>
</tr>
{% endfor %}
</tr>
{% for decision in decisions_list %}
<tr>
<td>{{ decision.college.name }}</td>
<td>{{ decision.get_decision_type_display }}</td>
<td>{{ decision.get_admission_status_display }}{% if request.user.attending_decision == decision %}, Attending{% endif %}</td>
<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>
{% empty %}
<tr>
<td>There is no data to display.</td>
<td></td>
<td></td>
<td></td>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}
@ -85,30 +83,28 @@
</tr>
</thead>
<tbody>
<tr>
{% for score in test_scores_list %}
<tr>
<td>{{ score.get_exam_type_display }}</td>
<td>{{ score.exam_score }}</td>
<td>
{# edit button #}
<a href="{% url "profile:testscores_edit" score.id %}" class="btn btn-outline-warning" aria-label="Edit">
<i class="fas fa-pencil-alt"></i>
</a>
{# delete #}
<a href="{% url "profile:testscores_delete" score.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>
</tr>
{% endfor %}
</tr>
{% for score in test_scores_list %}
<tr>
<td>{{ score.get_exam_type_display }}</td>
<td>{{ score.exam_score }}</td>
<td>
{# edit button #}
<a href="{% url "profile:testscores_edit" score.id %}" class="btn btn-outline-warning" aria-label="Edit">
<i class="fas fa-pencil-alt"></i>
</a>
{# delete #}
<a href="{% url "profile:testscores_delete" score.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>
</tr>
{% endfor %}
</tbody>
</table>
{% else %}