made not garbage

This commit is contained in:
Benjamyn Love 2020-01-23 03:18:24 +11:00
parent a8b4c42e32
commit ee41edd761
6 changed files with 15 additions and 13 deletions

View File

@ -88,4 +88,4 @@ def handle_data():
if __name__ == '__main__': if __name__ == '__main__':
doesDBExist(DBNAME) doesDBExist(DBNAME)
app.run() app.run(host="0.0.0.0")

View File

@ -1,7 +1,9 @@
<div style="text-align: center">
<form action="/post" method="post"> <form action="/post" method="post">
Name:<br> <p style="display: inline">Name: </p>
<input type="text" name="name" value=""><br> <input class="form-control" style="width: 50%; display: inline" type="text" name="name" value=""><br>
Item:<br> <p style="display: inline">Item: </p>
<input type="text" name="item" value=""><br><br> <input class="form-control" style="width: 50%; display: inline" type="text" name="item" value=""><br><br>
<input type="submit" name="addValue"value="Submit"> <input class="btn btn-secondary" type="submit" name="addValue"value="Submit">
</form> </form>
</div>

View File

@ -5,7 +5,7 @@
<div class="container"> <div class="container">
<form style="text-align: center" action="/post" method="POST"> <form style="text-align: center" action="/post" method="POST">
<input type="password" name="password"/> <input type="password" name="password"/>
<input type="submit" name="loginform" value="Login" /> <input class="btn btn-secondary" type="submit" name="loginform" value="Login" />
</form> </form>
</div> </div>

View File

@ -12,12 +12,12 @@
<td>{{x[4]}}</td> <td>{{x[4]}}</td>
<td> {% if x[3] == 0 %} <td> {% if x[3] == 0 %}
<form><button type="submit" formaction="/post" formmethod="POST" name="got" value="{{x[0]}}">No</button></form> <form><button class="btn btn-secondary" type="submit" formaction="/post" formmethod="POST" name="got" value="{{x[0]}}">No</button></form>
{% else %} {% else %}
yes yes
{% endif %}</td> {% endif %}</td>
<td><form> <td><form>
<button type="submit" formaction="/post" formmethod="POST" name="rem" value="{{x[0]}}">Remove</button> <button class="btn btn-secondary" type="submit" formaction="/post" formmethod="POST" name="rem" value="{{x[0]}}">Remove</button>
</form> </form>
</td> </td>
</tr> </tr>

View File

@ -1,7 +1,7 @@
{% include "header.html" %} {% include "header.html" %}
<body> <body>
<h1 class="container" style="text-align: center">{{ data["title"] }}</h1> <h1 class="container" style="text-align: center">{{ data["title"] }}</h1>
<div class="" style=" text-align: center"> <div class="" >
{% include "addForm.html" %} {% include "addForm.html" %}
</div> </div>
<div class="container" id="memes"> <div class="container" id="memes">