-
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 2 commits
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)%} | ||||||||||
| <td td style="white-space: nowrap;"> | ||||||||||
| {% if event.isPastStart %} | ||||||||||
| {% set isPastStart = "true" %} | ||||||||||
| {% else %} | ||||||||||
|
|
@@ -141,12 +141,14 @@ <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-primary ms-2"href="/event/{{ event.id }}/edit"><span class="bi bi-pencil-fill"></span> Edit Event </a> | ||||||||||
| </td> | ||||||||||
|
|
||||||||||
| <a class="btn {{btn_class}} ms-2" href="/event/{{ event.id }}/edit"><span class="bi bi-pencil-fill"></span> Edit Event</a> | ||||||||||
| </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
+148
to
+151
|
||||||||||
| {% 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 %} |
Uh oh!
There was an error while loading. Please reload this page.