-
Notifications
You must be signed in to change notification settings - Fork 8
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
Student admin #1063
base: development
Are you sure you want to change the base?
Student admin #1063
Changes from 32 commits
064415d
378f998
7d19f29
bd4bf0b
8600142
148cbfb
86b43a3
ec5bf44
d81bc7c
1d505db
227866a
0bd4a63
2f401f8
7554fb3
2d08374
ffcf2c9
379e7ae
c9cbad0
8ff3aa9
293bd19
60c7431
ad4fca6
4b9c752
d1a2433
740f6b8
d5a2f74
a340704
bd4d1fd
c54bf3b
e50ca71
7d90425
cc64881
9bf62ff
5edb6cd
329d1d3
419d2a3
1e44a8c
807d724
4600233
86efbc6
1415951
44d1927
6381d44
f560f80
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 |
---|---|---|
|
@@ -17,64 +17,86 @@ | |
|
||
<h1 class="text-center mb-5">Admin Management</h1> | ||
<div class="accordion" id="adminManagement"> | ||
<div class="accordion-item"> | ||
<h3 class="accordion-header" id="headingOne"> | ||
{% set focus = "open" if not visibleAccordion or visibleAccordion == "user" else "collapsed" %} | ||
<button class="accordion-button {{focus}} " type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> | ||
User Management | ||
</button> | ||
</h3> | ||
{% set show = "show" if not visibleAccordion or visibleAccordion == "user" %} | ||
<div id="collapseOne" class="accordion-collapse collapse {{show}}" aria-labelledby="headingOne" data-bs-parent="#adminManagement"> | ||
<div class="accordion-body"> | ||
<div class="container-fluid col-10"> | ||
<div class="row d-flex justify-content-center mb-3"> | ||
<div class="col-md-6 mb-3"> | ||
<div> | ||
{{createInputsButtons("searchCeltsAdminInput", "Add Celts Admin")}}<br> | ||
{% if g.current_user.isCeltsAdmin and not g.current_user.isCeltsStudentAdmin %} | ||
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 you excluding 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. We excluded the student admins here, as we felt they shouldn't possess the ability to add/remove admins or other student admins. Do you want us to provide that access? 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. I think that's an ok assumption, that the student admins shouldn't be able to mess with that. 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. Everyone with |
||
<div class="accordion-item"> | ||
<h3 class="accordion-header" id="headingOne"> | ||
{% set focus = "open" if not visibleAccordion or visibleAccordion == "user" else "collapsed" %} | ||
<button class="accordion-button {{focus}} " type="button" data-bs-toggle="collapse" data-bs-target="#collapseOne" aria-expanded="true" aria-controls="collapseOne"> | ||
User Management | ||
</button> | ||
</h3> | ||
{% set show = "show" if not visibleAccordion or visibleAccordion == "user" %} | ||
<div id="collapseOne" class="accordion-collapse collapse {{show}}" aria-labelledby="headingOne" data-bs-parent="#adminManagement"> | ||
<div class="accordion-body"> | ||
<div class="container-fluid col-10"> | ||
<div class="row d-flex mb-3"> | ||
<div class="col-md-6 mb-3"> | ||
<div> | ||
{{createInputsButtons("searchCeltsAdminInput", "Add Celts Admin")}}<br> | ||
</div> | ||
<table class="table mb-3"> | ||
<thead> | ||
<tr> | ||
<th scope="col">Current Admin</th> | ||
<th scope="col"></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for admin in currentAdmins %} | ||
<tr> | ||
<td id="{{admin.username}}">{{admin.firstName}} {{admin.lastName}}</td> | ||
<td><button data-username="{{admin.username}}" type="button" class="btn btn-danger view removeAdmin">Remove</button></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
<table class="table mb-3"> | ||
<thead> | ||
<tr> | ||
<th scope="col">Current Admin</th> | ||
<th scope="col"></th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for admin in currentAdmins %} | ||
<tr> | ||
<td id="{{admin.username}}">{{admin.firstName}} {{admin.lastName}}</td> | ||
<td><button data-username="{{admin.username}}" type="button" class="btn btn-danger view removeAdmin">Remove</button></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
<div class="col-md-6 mb-3"> | ||
<div> | ||
{{createInputsButtons("searchCeltsStudentStaffInput", "Add Celts Student Staff")}}<br> | ||
</div> | ||
<table class="table mb-3"> | ||
<thead> | ||
<tr> | ||
<th colspan="2" scope="col">Current Student Staff</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for studentStaff in currentStudentStaff %} | ||
<tr> | ||
<td id="{{studentStaff.username}}">{{studentStaff.firstName}} {{studentStaff.lastName}}</td> | ||
<td><button data-username="{{studentStaff.username}}" type="button" class="btn btn-danger view removeStudentStaff">Remove</button></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
<div class="col-md-6 mb-3"> | ||
<div> | ||
{{createInputsButtons("searchCeltsStudentStaffInput", "Add Celts Student Staff")}}<br> | ||
</div> | ||
<table class="table mb-3"> | ||
<thead> | ||
<tr> | ||
<th colspan="2" scope="col">Current Student Staff</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for studentStaff in currentStudentStaff %} | ||
<div class="col-md-6 mb-3"> | ||
<div> | ||
{{createInputsButtons("searchCeltsStudentAdminInput", "Add Celts Student Admin")}}<br> | ||
</div> | ||
<table class="table mb-3"> | ||
<thead> | ||
<tr> | ||
<td id="{{studentStaff.username}}">{{studentStaff.firstName}} {{studentStaff.lastName}}</td> | ||
<td><button data-username="{{studentStaff.username}}" type="button" class="btn btn-danger view removeStudentStaff">Remove</button></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
<th colspan="2" scope="col">Current Student Admin</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{% for studentAdmin in currentStudentAdmin %} | ||
<tr> | ||
<td id="{{studentAdmin.username}}">{{studentAdmin.firstName}} {{studentAdmin.lastName}}</td> | ||
<td><button data-username="{{studentAdmin.username}}" type="button" class="btn btn-danger view removeStudentAdmin">Remove</button></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{% endif %} | ||
<div class="accordion-item"> | ||
<h3 class="accordion-header" id="headingTwo"> | ||
{% set focus = "open" if visibleAccordion == "term" else "collapsed" %} | ||
|
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.
Should this allow them to see Bonner events?