-
Notifications
You must be signed in to change notification settings - Fork 14
1597 edit event btn #1688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
1597 edit event btn #1688
Changes from all commits
4610fee
9bd65dc
d9b32c9
81634c2
3f442af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -113,7 +113,7 @@ <h1 class="text-center">Events List for {{selectedTerm.description}}</h1> | |||||||||
| {% endif %} | ||||||||||
| {% if user.isCeltsAdmin or user.isProgramManagerFor(event.program)%} | ||||||||||
| {% set link_class = 'link-secondary' if event.isPastStart else 'link-primary' %} | ||||||||||
| <td><a href="/event/{{event.id}}/edit" class="{{link_class}}">{{event.name}}</a></td> | ||||||||||
| <td><a href="/event/{{event.id}}/view" class="{{link_class}}">{{event.name}}</a></td> | ||||||||||
| {% else %} | ||||||||||
| <td><a href="/event/{{event.id}}/view" class="link-primary">{{event.name}}</a></td> | ||||||||||
| {% endif %} | ||||||||||
|
|
@@ -128,8 +128,8 @@ <h1 class="text-center">Events List for {{selectedTerm.description}}</h1> | |||||||||
| <td nowrap>{{event.timeStart.strftime('%-I:%M %p')}} - {{event.timeEnd.strftime('%-I:%M %p')}}</td> | ||||||||||
| <td class="text-dark">{{event.location}}</td> | ||||||||||
| {% endif %} | ||||||||||
| {% if user.isAdmin %} | ||||||||||
| <td> | ||||||||||
| {% if user.isCeltsAdmin or user.isProgramManagerFor(event.program)%} | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why are we changing "isAdmin" to "isCeltsAmin" or "isProgramManagerFor" ? because isAdmin includes student staff and now we are excluding them |
||||||||||
| <td style="white-space: nowrap;"> | ||||||||||
| {% if event.isPastStart %} | ||||||||||
| {% set isPastStart = "true" %} | ||||||||||
| {% else %} | ||||||||||
|
|
@@ -141,9 +141,15 @@ <h1 class="text-center">Events List for {{selectedTerm.description}}</h1> | |||||||||
| <button class="btn {{btn_class}}" onclick="showEmailModal({{event.id}}, 'Unknown', {{ selectedTerm }}, {{ isPastStart }}, '{{defaultTemplate}}')"> | ||||||||||
| <span class="bi bi-envelope-fill"> {{btn_text}}</span> | ||||||||||
| </button> | ||||||||||
| <a class="btn {{btn_class}} ms-2" href="/event/{{ event.id }}/edit"><span class="bi bi-pencil-fill"></span> Edit Event</a> | ||||||||||
| </td> | ||||||||||
| </td> | ||||||||||
| {% else %} | ||||||||||
| <td> | ||||||||||
| {% if user.isProgramManagerFor(event.program) %} | ||||||||||
| {% set btn_class = 'btn-secondary' if event.isPastStart or event.isCanceled else 'btn-primary' %} | ||||||||||
| <a class="btn {{btn_class}}" href="/event/{{ event.id }}/edit"><span class="bi bi-pencil-fill"></span> Edit Event</a> | ||||||||||
| {% endif %} | ||||||||||
|
Comment on lines
+149
to
+152
|
||||||||||
| {% if user.isProgramManagerFor(event.program) %} | |
| {% set btn_class = 'btn-secondary' if event.isPastStart or event.isCanceled else 'btn-primary' %} | |
| <a class="btn {{btn_class}}" href="/event/{{ event.id }}/edit"><span class="bi bi-pencil-fill"></span> Edit Event</a> | |
| {% endif %} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we changing the "edit" to "view" ?