Fixed formatting on html pages
This commit is contained in:
1 parent
b1db5e4a17
commit
2b98e9db55
4 files changed
+93
-95
No files matched your search
+50
-56
@@ -16,7 +16,12 @@
|
||||
<tr scope="row">
|
||||
<td>{{x[0]}}</td>
|
||||
<td>{% if x[1] == 1 %} Yes {% else %} No {% endif %}</td>
|
||||
<td align="right"><form action="/post" method="POST"><input style="width: 70%; display: inline;" class="form-control" type="text" name="newpass" id="addbox"><button class="btn btn-secondary" type="submit" name="updatepass" value="{{x[2]}}"> Change Password </button></form></td>
|
||||
<td align="right">
|
||||
<form action="/post" method="POST"><input style="width: 70%; display: inline;"
|
||||
class="form-control" type="text" name="newpass" id="addbox"><button
|
||||
class="btn btn-secondary" type="submit" name="updatepass" value="{{x[2]}}"> Change
|
||||
Password </button></form>
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
@@ -25,35 +30,36 @@
|
||||
<hr>
|
||||
<h1 class="text-center">ADD NEW USERS</h1>
|
||||
<div class="container">
|
||||
<form class="loginform" action="/post" method="POST">
|
||||
<form class="loginform" action="/post" method="POST">
|
||||
<div class="form-group row">
|
||||
<label for="addbox" class="col-sm-2 col-form-label" >Username</label>
|
||||
<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>
|
||||
<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>
|
||||
<h1 class="text-center">ADD LIST</h1>
|
||||
<form class="addList" action="/post" method="POST">
|
||||
<form class="addList" action="/post" method="POST">
|
||||
<div class="form-group row">
|
||||
<label for="addlist" class="col-sm-2 col-form-label" >List</label>
|
||||
<label for="addlist" class="col-sm-2 col-form-label">List</label>
|
||||
<div class="col-sm-10">
|
||||
<input type=text class="form-control" id="addlist" type="text" name="addList" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<div class="form-group" style="padding-top: 10px; padding-left: 10px;">
|
||||
<input class="btn btn-secondary" id="addlist" type="submit" name="newlist" value="Add new list" />
|
||||
</div>
|
||||
<div class="form-group" style="padding-top: 10px; padding-left: 10px;">
|
||||
<input class="btn btn-secondary" id="addlist" type="submit" name="newlist" value="Add new list" />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div id="logout" style="padding-top: 3px;">
|
||||
@@ -67,48 +73,36 @@
|
||||
<h1 class="text-center">Add User To List</h1>
|
||||
<div class="container">
|
||||
<div class="form-group row">
|
||||
<form action="/post" method="POST">
|
||||
<label for="uesrnamelist" class="col-sm-2 col-form-label">User</label>
|
||||
<select id="usernamelist" name="add2list" class="custom-select custom-select-lg mb-3">
|
||||
{% for userid in data["users"] %}
|
||||
<option type="submit" value="{{userid[2]}}" id="addbox" name="User2list" class="form-control">{{userid[0].title()}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<label for="listlist" class="col-sm-2 col-form-label">List</label>
|
||||
<select id="listlist" name="listID" class="custom-select custom-select-lg mb-3">
|
||||
{% for x in data["lists"] %}
|
||||
<option type="submit" value="{{x}}" id="addbox" name="User2list" class="form-control">{{data["lists"][x]}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<button class="btn btn-secondary" type="submit" value="x"> Add User To List </button>
|
||||
<!-- <input name="listID" value={{x}} type="hidden">--></form>
|
||||
<form action="/post" method="POST">
|
||||
<div class="form-row">
|
||||
<div class="col">
|
||||
<label for="usernamelist" class="col-form-label form-control">User</label>
|
||||
<select id="usernamelist" name="add2list"
|
||||
class="custom-select custom-select-lg mb-3 form-control">
|
||||
{% for userid in data["users"] %}
|
||||
<option type="submit" value="{{userid[2]}}" id="addbox" name="User2list"
|
||||
class="form-control">{{userid[0].title()}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col">
|
||||
<label for="listlist" class="col-form-label form-control">List</label>
|
||||
<select id="listlist" name="listID" class="custom-select custom-select-lg mb-3 form-control">
|
||||
{% for x in data["lists"] %}
|
||||
<option type="submit" value="{{x}}" id="addbox" name="User2list" class="form-control">
|
||||
{{data["lists"][x]}}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<div class="col">
|
||||
<button class="btn btn-secondary" type="submit" value="x"> Add
|
||||
User To List </button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <table class="table table-striped table-dark table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Username</th>
|
||||
<th scope="col">User</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for x in data["lists"] %}
|
||||
<tr scope="row">
|
||||
<td>{{data["lists"][x]}}</td>
|
||||
<td><form action="/post" method="POST">
|
||||
<select id="addbox" name="add2list" class="custom-select custom-select-lg mb-3">
|
||||
{% for userid in data["users"] %}
|
||||
<option type="submit" value="{{userid[2]}}" id="addbox" name="User2list">{{userid[0].title()}}</option>
|
||||
{% endfor %}
|
||||
</select> <button class="btn btn-secondary" type="submit" value="x"> Add User To List </button>
|
||||
<input name="listID" value={{x}} type="hidden"></form></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table> -->
|
||||
</div>
|
||||
{% for x in data["lists"] %}
|
||||
{{data["lists"][x]}}
|
||||
{% endfor %}
|
||||
<!-- jQuery library -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
|
||||
<!-- Popper JS -->
|
||||
|
||||
Reference in new issue
Block a user