-
Notifications
You must be signed in to change notification settings - Fork 0
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 #143 from soehlert/topic/soehlert/i_was_there_arti…
…st_redirect refactor(i was there UX): adds I was there to a few other places
- Loading branch information
Showing
10 changed files
with
90 additions
and
29 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{% if user.is_authenticated %} | ||
{% if concert.id not in user_concerts %} | ||
<form class="form-inline" | ||
action="{% url 'concerts:attend-concert' pk=concert.id %}" | ||
method="POST"> | ||
{% csrf_token %} | ||
{% if in_artist_detail %} | ||
<input type="hidden" name="next" value="artist-detail"> | ||
{% elif in_concert_list %} | ||
<input type="hidden" name="next" value="concert-list"> | ||
{% endif %} | ||
<div class="text-center"> | ||
<button class="btn btn-info btn-sm text-white" type="submit">I Was There!</button> | ||
</div> | ||
</form> | ||
{% endif %} | ||
{% endif %} |
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
31 changes: 14 additions & 17 deletions
31
concert_elephant/templates/concerts/unattend_concert.html
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,27 +1,24 @@ | ||
{% if user.is_authenticated and concert.id in user_concerts %} | ||
<form class="form-inline" | ||
{% if in_user_detail %} | ||
action="{% url 'concerts:unattend-concert' pk=concert.id next='user-detail' %}" | ||
{% else %} | ||
action="{% url 'concerts:unattend-concert' pk=concert.id next='concert-list' %}" | ||
{% endif %} | ||
method="POST"> | ||
{% csrf_token %} | ||
<div class="text-center"> | ||
<form class="form-inline" method="POST" action="{% url 'concerts:unattend-concert' pk=concert.id%}"> | ||
{% csrf_token %} | ||
<div class="text-center"> | ||
{% if in_user_detail %} | ||
<div> | ||
<button type="submit" data-bs-toggle="tooltip" data-bs-placement="top" title="Remove concert from my list" | ||
class="btn btn-danger btn-delete btn-sm"> | ||
<button type="submit" data-bs-toggle="tooltip" data-bs-placement="top" title="Remove concert from my list" class="btn btn-danger btn-delete btn-sm"> | ||
<i class="bi bi-trash3-fill trash-icon-red"></i> | ||
</button> | ||
</div> | ||
<input type="hidden" name="next" value="user-detail"> | ||
{% else %} | ||
<button type="submit" data-bs-toggle="tooltip" data-bs-placement="top" title="Remove concert from my list" | ||
class="btn btn-danger btn-sm btn-delete text-danger"> | ||
<button type="submit" data-bs-toggle="tooltip" data-bs-placement="top" title="Remove concert from my list" class="btn btn-danger btn-sm btn-delete text-danger"> | ||
Remove From My Concerts | ||
</button> | ||
{% if in_artist_detail %} | ||
<input type="hidden" name="next" value="artist-detail"> | ||
{% else %} | ||
<input type="hidden" name="next" value="concert-list"> | ||
{% endif %} | ||
{% endif %} | ||
</div> | ||
</form> | ||
</div> | ||
</form> | ||
{% endif %} | ||
|
||
|
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
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