Skip to content

Commit

Permalink
Merge pull request #37 from volunteer-planner/hotfix/1.2.0-unassign-r…
Browse files Browse the repository at this point in the history
…egression

Fix for #36
  • Loading branch information
christophmeissner committed Sep 13, 2015
2 parents 02c6ae0 + e73afea commit fb7e85e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions scheduler/templates/helpdesk_single.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,17 @@ <h3>{{ need.topic.title }}</h3>
{% if need.slots > need.get_volunteer_total %}
<span style="color:red">Wird gebraucht</span>
<span aria-hidden="true" class="glyphicon glyphicon-exclamation-sign"></span>
{% if user.registrationprofile in need.get_volunteers %}
<button type="submit" name="action" value="remove" class="btn btn-danger delete-button">austragen</button>
{% else %}
{% if user.registrationprofile not in need.get_volunteers %}
<button type="submit" name="action" value="add" style="margin-left:10px;" aria-expanded="false" aria-haspopup="true" class="btn btn-info add-button">
mitmachen! <span aria-hidden="true" class="glyphicon glyphicon-pencil"></span>
</button>
{% endif %}
{% else %}
<span style="color:green">ist abgedeckt</span>
{% endif %}
{% if user.registrationprofile in need.get_volunteers %}
<button type="submit" name="action" value="remove" class="btn btn-danger delete-button">austragen</button>
{% endif %}
</p>
</form>
{% endfor %}
Expand Down

0 comments on commit fb7e85e

Please sign in to comment.