diff options
author | Riley L. <riley@e926.de> | 2024-11-03 19:38:22 +0100 |
---|---|---|
committer | Riley L. <riley@e926.de> | 2024-11-03 19:38:22 +0100 |
commit | 79657b9e947b430bb48b4bb0e790382531c38722 (patch) | |
tree | 28ab74bfca439a9b36a81ea6467fc2cb769cb94d /abrechenbarkeit.lua | |
parent | 205f7088778f5b75c9f9ff96478b1f9785b39cc3 (diff) | |
download | abrechenbarkeit-79657b9e947b430bb48b4bb0e790382531c38722.tar abrechenbarkeit-79657b9e947b430bb48b4bb0e790382531c38722.tar.bz2 abrechenbarkeit-79657b9e947b430bb48b4bb0e790382531c38722.tar.zst |
style the user interface in style.css
Diffstat (limited to 'abrechenbarkeit.lua')
-rwxr-xr-x | abrechenbarkeit.lua | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/abrechenbarkeit.lua b/abrechenbarkeit.lua index 0efac7c..0e246af 100755 --- a/abrechenbarkeit.lua +++ b/abrechenbarkeit.lua @@ -225,8 +225,8 @@ local function r_user(username) <p>Last transaction added %s ago. <a href="/%s?log">View user log</a> ]], format_duration(os.time() - last_txn), username)) end - print([[<div class="transactions container">]]) - print([[<div class="amount-presets box">]]) + print([[<div class="transactions container firstchildlarge">]]) + print([[<div class="amount-presets backgroundbox">]]) for _, type in ipairs({ 1, -1 }) do for _, amount in ipairs({ 50, 100, 150, 200, 500, 1000 }) do print(string.format([[ @@ -241,7 +241,7 @@ local function r_user(username) end print("</div>") print([[ - <form class="transaction box" action="" method="POST"> + <form class="transaction box backgroundbox" action="" method="POST"> <h3>Create Transaction</h3> <label for="amount">Amount: </label> <input type="number" name="amount" id="amount" /> @@ -249,7 +249,7 @@ local function r_user(username) <input type="text" name="comment" id="comment" /> <input type="submit" value="Update" /> </form> - <form class="transaction box" action="" method="POST" id="buy_product"> + <form class="transaction box backgroundbox" action="" method="POST" id="buy_product"> <h3>Buy Product</h3> <label for="product">Product: </label> <input type="text" name="product" id="product" /> @@ -377,23 +377,25 @@ local function r_products() print("<h1>Product List</h1>") if notif then print(notif) end print([[ - <form action="/?products" method="POST" class="box"> + <div class="container"> + <form action="/?products" method="POST" class="box backgroundbox"> <h3>Add Product</h3> <label for="barcode">Barcode: </label> - <input type="text" name="barcode" id="barcode" /><br/> + <input type="text" name="barcode" id="barcode" /> <label for="name">Name: </label> - <input type="text" name="name" id="name" /><br/> + <input type="text" name="name" id="name" /> <label for="price">Price: </label> - <input type="number" name="price" id="price" /><br/> + <input type="number" name="price" id="price" /> <input type="submit" value="Add" /> </form> - <form action="/?products" method="POST" class="box"> + <form action="/?products" method="POST" class="box backgroundbox"> <h3>Remove Product</h3> <input type="text" name="delete" value="1" hidden /> <label for="barcode">Barcode: </label> - <input type="text" name="barcode" id="barcode" /><br/> + <input type="text" name="barcode" id="barcode" /> <input type="submit" value="Remove" /> </form> + </div> ]]) print("<table><tr><th>Name</th><th>Price</th><th>Barcode</th></tr>") for barcode, price, name in read_products() do |