Skip to content

Commit

Permalink
Remove ability to delete level requirements from level detail
Browse files Browse the repository at this point in the history
To return in future in a special 'edit mode' page, but easiest to just nuke them entirely for now as it's not something we often need to do
  • Loading branch information
FreneticScribbler committed Jul 9, 2023
1 parent 303005a commit 769d983
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions training/templates/level_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ <h4 class="card-header">Description</h4>
</tr>
{% endfor %}
<tr><th colspan="3" class="text-center">{{object}}</th></tr>
<tr>
<td><ul class="list-unstyled">{% for req in object.started_requirements %}<li>{{ req.item }} {% user_has_qualification u req.item 0 %} {% if request.user.is_supervisor %}<a type="button" class="btn btn-link tn-sm p-0 align-baseline" href="{% url 'remove_requirement' pk=req.pk %}"><span class="fas fa-trash-alt text-danger"></span></a>{%endif%}</li>{% endfor %}</ul></td>
<td><ul class="list-unstyled">{% for req in object.complete_requirements %}<li>{{ req.item }} {% user_has_qualification u req.item 1 %} {% if request.user.is_supervisor %}<a type="button" class="btn btn-link tn-sm p-0 align-baseline" href="{% url 'remove_requirement' pk=req.pk %}"><span class="fas fa-trash-alt text-danger"></span></a>{%endif%}</li>{% endfor %}</ul></td>
<td><ul class="list-unstyled">{% for req in object.passed_out_requirements %}<li>{{ req.item }} {% user_has_qualification u req.item 2 %} {% if request.user.is_supervisor %}<a type="button" class="btn btn-link tn-sm p-0 align-baseline"" href="{% url 'remove_requirement' pk=req.pk %}" title="Delete requirement"><span class="fas fa-trash-alt text-danger"></span></a>{%endif%}</li>{% endfor %}</ul></td>
</tr>
</tbody>
</table>
</div>
Expand Down

0 comments on commit 769d983

Please sign in to comment.