Created
November 8, 2024 21:35
-
-
Save JustLinuxUser/14981c67c07426060955cbeef8c6559d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Accounting with Xander :)</title> | |
<script src="/assets/htmx.min.js"></script> | |
<script src="/assets/tailwind.js"></script> | |
</head> | |
<body class="flex flex-col justify-center"> | |
<h1>{{w.full_name}}</h1> | |
<form hx-put="/api/submit_report" hx-target="#result" hx-swap="none"> | |
<div> | |
<label for="income_cop">Income COP: </label> | |
<input class="border-2 border-solid invalid:border-red-500" type="number" name="income_cop" id="income_cop" value="0" required /> | |
</div> | |
<div> | |
<label for="income_bs">Income BS: </label> | |
<input class="border-2 border-solid invalid:border-red-500"type="number" name="income_bs" id="income_bs" value="0" required /> | |
</div> | |
<div> | |
<label for="income_zinli">Income ZINLI: </label> | |
<input class="border-2 border-solid invalid:border-red-500" type="number" name="income_zinli" id="income_zinli" value="0" required /> | |
</div> | |
<div> | |
<label for="income_binance">Income BINANCE: </label> | |
<input class="border-2 border-solid invalid:border-red-500" type="number" name="income_binance" id="income_binance" value="0" required /> | |
</div> | |
<button type="submit">Submit</button> | |
</form> | |
<table><thead> | |
</table> | |
<div id="result"> </div> | |
<table> | |
<thead> | |
<tr> | |
<th>Income COP</th> | |
<th>Income BS</th> | |
<th>Income Zinli</th> | |
<th>Income Binance</th> | |
</tr> | |
</thead> | |
<tbody> | |
{% for report in reports%} | |
<tr> | |
<td>{{report.income_cop}}</td> | |
<td>{{report.income_bs}}</td> | |
<td>{{report.income_zinli}}</td> | |
<td>{{report.income_binance}}</td> | |
</tr> | |
{% endfor %} | |
</tbody> | |
</table> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment