This repository has been archived by the owner on Jan 26, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #336 from ajatprabha/ticket_333
add cancel button for non-approved join request
- Loading branch information
Showing
4 changed files
with
132 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
{% if user.is_authenticated and user.is_active %} | ||
{% if user not in meetup_location.members.all or user not in meetup_location.organizers.all %} | ||
<div class="sidebar-module mb40"> | ||
<a class="btn btn-success btn-block" href="{% url "join_meetup_location" meetup_location.slug user.username %}" role="button">Join Meetup Location</a> | ||
</div> | ||
{% if user.systersuser not in meetup_location.organizers.all %} | ||
{% if user.systersuser not in meetup_location.members.all and user.systersuser not in meetup_location.join_requests.all %} | ||
<div class="sidebar-module mb40"> | ||
<a class="btn btn-success btn-block" href="{% url "join_meetup_location" meetup_location.slug user.username %}" | ||
role="button">Join Meetup Location</a> | ||
</div> | ||
{% elif user.systersuser not in meetup_location.members.all and user.systersuser in meetup_location.join_requests.all %} | ||
<a href="{% url "cancel_meetup_location_join_request" meetup_location.slug user.username %}?current_url={{ request.path }}" | ||
role="button" class="btn btn-warning btn-block">Cancel request</a> | ||
{% endif %} | ||
{% endif %} | ||
{% endif %} |