Skip to content

Commit

Permalink
Merge pull request #72 from Danyc0/allow-remove-from-full-task
Browse files Browse the repository at this point in the history
Fix bug where users couldn't remove themselves from full tasks
  • Loading branch information
Danyc0 authored Jan 31, 2024
2 parents e0abdbc + 6101b6c commit 2a17420
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion volunteers/templates/volunteers/tasks.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
{% for task in category_tasks %}
<tr>
<td {% if user.is_authenticated %}data-title="{% trans 'I am in' %}!"{% endif %}>
<input type="checkbox" name="task" value="{{ task.id }}" {% if task.status == "FULL" %}title="task FULL" disabled{% endif %} {{ checked|get_item:task.id }} />
<input type="checkbox" name="task" value="{{ task.id }}" {% if task.status == "FULL" %}title="task FULL" {% endif %}{% if task.status == "FULL" and not checked|get_item:task.id %} disabled{% endif %} {{ checked|get_item:task.id }} />

</td>
{% if attending|get_item:task.id == True %}
Expand Down

0 comments on commit 2a17420

Please sign in to comment.