]>
Softwares of Agnibho - librevax.git/blob - templates/admin.html
8b9e975a27842335f72093db90a1d53caf215c90
3 Copyright (C) 2024 Dr. Agnibho Mondal
4 This file is part of LibreVax.
5 LibreVax is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
6 LibreVax is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
7 You should have received a copy of the GNU General Public License along with LibreVax. If not, see <https://www.gnu.org/licenses/>.
10 {% set
title =
"Admin Panel" %}
11 {% extends
"base.html" %}
16 <div class =
"alert alert-info" >
20 <div class =
"accordion" id =
"admin" >
21 <div class =
"accordion-item" >
22 <h2 class =
"accordion-header" ><button class =
"accordion-button" type =
"button" data-bs-toggle =
"collapse" data-bs-target =
"#sec-1" aria-expanded =
"true" aria-controls =
"sec-1" > Switch Center
</button></h2>
23 <div id =
"sec-1" class =
"accordion-collapse collapse show" data-bs-parent =
"#admin" >
24 <div class =
"accordion-body" >
25 <form method =
"post" action =
"switchcenter" >
26 <select name =
"center" class =
"form-select mb-2" >
28 <option value =
"{{i[" mid
"]}}" > {{i[
"center" ]}}
</option>
31 <button type =
"submit" class =
"btn btn-primary" > Switch
</button>
36 <div class =
"accordion-item" >
37 <h2 class =
"accordion-header" ><button class =
"accordion-button collapsed" type =
"button" data-bs-toggle =
"collapse" data-bs-target =
"#sec-2" aria-expanded =
"false" aria-controls =
"sec-2" > Change Password
</button></h2>
38 <div id =
"sec-2" class =
"accordion-collapse collapse" data-bs-parent =
"#admin" >
39 <div class =
"accordion-body" >
40 <form method =
"post" action =
"/changepass" >
41 <input type =
"password" name =
"old" placeholder =
"Enter Old Password" class =
"form-control mb-2" >
42 <input type =
"password" name =
"new" placeholder =
"Enter New Password" class =
"form-control mb-2" >
43 <input type =
"password" name =
"check" placeholder =
"Reenter New Password" class =
"form-control mb-2" >
44 <button type =
"submit" class =
"btn btn-primary" > Submit
</button>
49 <div class =
"accordion-item" >
50 <h2 class =
"accordion-header" ><button class =
"accordion-button collapsed" type =
"button" data-bs-toggle =
"collapse" data-bs-target =
"#sec-3" aria-expanded =
"false" aria-controls =
"sec-3" > Manage Users
</button></h2>
51 <div id =
"sec-3" class =
"accordion-collapse collapse" data-bs-parent =
"#admin" >
52 <div class =
"accordion-body" >
54 <div class =
"card-header" >
57 <div class =
"card-body" >
58 <form method =
"post" action =
"newuser" >
59 <div class =
"mb-2 row" >
60 <div class =
"col-sm-4" >
61 <input name =
"user" placeholder =
"Username" class =
"form-control" >
63 <div class =
"col-sm-4" >
64 <input name =
"pwd" placeholder =
"Password" class =
"form-control" >
66 <div class =
"col-sm-4 d-grid" >
67 <button type =
"submit" class =
"btn btn-primary" > Create
</button>
73 <div class =
"card mt-2" >
74 <div class =
"card-header" >
75 <h6> Existing User
</h6>
77 <div class =
"card-body" >
79 <div class =
"mb-2 row" >
80 <div class =
"col-sm-3" >
81 <select name =
"user" class =
"form-select mb-2" >
83 <option value =
"{{i[" user
"]}}" > {{i[
"user" ]}}
</option>
87 <div class =
"col-sm-3" >
88 <input name =
"new" placeholder =
"Password" class =
"form-control" >
90 <div class =
"col-sm-3 d-grid" >
91 <button type =
"submit" formaction =
"changepass" class =
"btn btn-warning" > Reset
</button>
93 <div class =
"col-sm-3 d-grid" >
94 <button type =
"submit" class =
"btn btn-danger" > Delete
</button>