diff options
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 |