Removed redundent JS scripts

This commit is contained in:
Benjamyn Love 2020-01-31 09:24:15 +11:00
parent a20e2a4b7b
commit baa755ef6a

View File

@ -1,59 +1,55 @@
<body> <h1 class="text-center">LIST USERS</h1>
<h1 class="text-center">LIST USERS</h1> <div class="container">
<div class="container"> <table class="table table-striped table-dark table-hover">
<table class="table table-striped table-dark table-hover"> <thead>
<thead> <tr>
<tr> <th scope="col">Username</th>
<th scope="col">Username</th> <th scope="col">Admin</th>
<th scope="col">Admin</th> <th style="text-align: right" scope="col">Change Password</th>
<th style="text-align: right" scope="col">Change Password</th> </tr>
</tr> </thead>
</thead> <tbody>
<tbody> {% for x in data["users"] %}
{% for x in data["users"] %} <tr scope="row">
<tr scope="row"> <td>{{x[0]}}</td>
<td>{{x[0]}}</td> <td>{% if x[1] == 1 %} Yes {% else %} No {% endif %}</td>
<td>{% if x[1] == 1 %} Yes {% else %} No {% endif %}</td> <td align="right">
<td align="right"><form action="/post" method="POST"><input style=" display: inline;" type="text" name="newpass" id="addbox"><button class="btn btn-secondary" type="submit" name="updatepass" value="{{x[2]}}"> Change Password </button></form></td> <form action="/post" method="POST"><input style=" display: inline;" type="text" name="newpass"
</tr> id="addbox"><button class="btn btn-secondary" type="submit" name="updatepass"
{% endfor %} value="{{x[2]}}"> Change Password </button></form>
</tbody> </td>
</table> </tr>
</div> {% endfor %}
<hr> </tbody>
<h1 class="text-center">ADD NEW USERS</h1> </table>
<div class="container"> </div>
<form class="loginform" action="/post" method="POST"> <hr>
<div class="form-group row"> <h1 class="text-center">ADD NEW USERS</h1>
<label for="addbox" class="col-sm-2 col-form-label" >Username</label> <div class="container">
<div class="col-sm-10"> <form class="loginform" action="/post" method="POST">
<input type=text class="form-control" id="addbox" type="text" name="username" /> <div class="form-group row">
</div> <label for="addbox" class="col-sm-2 col-form-label">Username</label>
<div class="col-sm-10">
<input type=text class="form-control" id="addbox" type="text" name="username" />
</div> </div>
<div class="form-group row">
<label for="addbox" class="col-sm-2 col-form-label" >Password</label>
<div class="col-sm-10">
<input class="form-control" id="addbox" type="password" name="password"/>
</div>
<div class="form-group" style="padding-top: 10px; padding-left: 10px;">
<input class="btn btn-secondary" id="logbtn" type="submit" name="newuser" value="Create new account" />
</div>
</div>
</form>
<div id="logout" style="padding-top: 3px;">
<a href="/">
<button onclick="window.location='admin'" class="btn btn-secondary"><i style="padding-top: 3px;"
class="material-icons">
home
</i></button></a>
</div> </div>
<div class="form-group row">
<label for="addbox" class="col-sm-2 col-form-label">Password</label>
<div class="col-sm-10">
<input class="form-control" id="addbox" type="password" name="password" />
</div>
<div class="form-group" style="padding-top: 10px; padding-left: 10px;">
<input class="btn btn-secondary" id="logbtn" type="submit" name="newuser" value="Create new account" />
</div>
</div>
</form>
<div id="logout" style="padding-top: 3px;">
<a href="/">
<button onclick="window.location='admin'" class="btn btn-secondary"><i style="padding-top: 3px;"
class="material-icons">
home
</i></button></a>
</div> </div>
<!-- jQuery library --> </div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<!-- Popper JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
</body>
</html> </html>