-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow club officers to expire announcements
- Loading branch information
Showing
4 changed files
with
34 additions
and
27 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 |
---|---|---|
|
@@ -34,8 +34,15 @@ | |
|
||
{% block main %} | ||
<div class="announcements primary-content"> | ||
{% if request.user.is_announcements_admin %} | ||
<h3>Are you sure you want to delete this announcement?</h3> | ||
<p>Please <b>EXPIRE</b> this announcement instead of deleting it, unless the announcement was created by accident.</p> | ||
{% else %} | ||
<h3>Are you sure you want to expire this club announcement?</h3> | ||
<p>Expiring an announcement will remove it from the dashboard, but it will still be accessible in the archive. | ||
To request full deletion of a club announcement, email <a href="mailto:[email protected]">[email protected]</a>.</p> | ||
{% endif %} | ||
<br> | ||
<b>{{ announcement.title }}</b> | ||
<br> | ||
<br> | ||
|
@@ -49,7 +56,9 @@ <h3>Are you sure you want to delete this announcement?</h3> | |
<input type="submit" value="Expire"> | ||
<br> | ||
<br> | ||
{% if request.user.is_announcements_admin %} | ||
<a href="#" id="delete" class="button"><i class='fas fa-exclamation-triangle'></i> Full Delete</a> | ||
{% endif %} | ||
</form> | ||
</div> | ||
<script> | ||
|