admin panel

This commit is contained in:
iou1name 2019-09-27 13:57:00 -04:00
parent 8daf81ac46
commit 0f8f691a3e
3 changed files with 45 additions and 25 deletions

View File

@ -3,6 +3,7 @@ body {
margin-right: 10%; margin-right: 10%;
background-color: lightgray; background-color: lightgray;
font-family: Helvetica,sans-serif; font-family: Helvetica,sans-serif;
font-size: 14px;
} }
header { header {
@ -29,12 +30,21 @@ main section {
0 1px 5px 0 rgba(0, 0, 0, 0.12); 0 1px 5px 0 rgba(0, 0, 0, 0.12);
} }
h2 { .sub_section {
box-shadow: none;
border: 1px solid lightgray;
}
h2, h3 {
font-size: 16px; font-size: 16px;
margin: 0; margin: 0;
cursor: pointer; cursor: pointer;
} }
h3 {
font-size: 14px;
}
#avail_sites { #avail_sites {
margin: 0; margin: 0;
padding-left: 1em; padding-left: 1em;

View File

@ -1,5 +1,10 @@
function load() { function load() {
let headers = document.querySelectorAll('h2'); let headers = document.querySelectorAll('h2');
headers = Array.prototype.slice.call(headers);
let headers3 = document.querySelectorAll('h3');
headers3 = Array.prototype.slice.call(headers3);
headers = headers.concat(headers3);
headers.forEach(function(header) { headers.forEach(function(header) {
header.addEventListener('click', function() { header.addEventListener('click', function() {
let article = this.nextElementSibling; let article = this.nextElementSibling;

View File

@ -30,7 +30,10 @@
</section> </section>
{% if request['session']['admin'] %} {% if request['session']['admin'] %}
<section> <section>
<h2>User Permissions</h2> <h2>Admin Panel</h2>
<article style="display: none;">
<section class="sub_section">
<h3>User Permissions</h3>
<article style="display: none;"> <article style="display: none;">
<hr> <hr>
<table id="users"> <table id="users">
@ -57,6 +60,8 @@
</table> </table>
</article> </article>
</section> </section>
</article>
</section>
{% endif %} {% endif %}
<section> <section>
<h2>Change Password</h2> <h2>Change Password</h2>