Recount-Server/web/dashboard.templ

77 lines
3.1 KiB
Text
Raw Normal View History

package web
templ dashboard() {
2024-01-14 18:00:51 -08:00
<title>Dashboard</title>
2024-01-23 19:20:33 -08:00
<div class="container" data-main-body="true">
2024-01-15 19:26:51 -08:00
<div class="row" style="margin-top: -20px">
2024-01-17 20:46:13 -08:00
<div class="c-crust col card mx-auto cr-all d-flex-col">
2024-01-23 19:20:33 -08:00
<div class="c-surface0 d-flex w-100 cr-top">
<i class="my-auto tc-text py-3 ps-3 ms-1" data-feather="arrow-left"></i>
<span class="mx-auto my-auto tc-text">Income/Expenses</span>
<i class="my-auto tc-text py-3 pe-3 me-1" data-feather="arrow-right"></i>
2024-01-14 18:00:51 -08:00
</div>
2024-01-19 21:05:08 -08:00
<div class="d-flex" style="height: 88%">
<div class="w-50">
2024-01-17 19:58:31 -08:00
<canvas
class="chartjs-chart"
data-chart-endpoint="/web/dashboard/expenditure_chart"
2024-01-19 21:05:08 -08:00
data-chart-type="historical_vs_current"
2024-01-17 19:58:31 -08:00
id="IncomeVsExpenditureChart"
></canvas>
</div>
2024-01-23 19:20:33 -08:00
<div class="w-50 c-surface1" style="overflow-y: scroll">
2024-01-19 21:05:08 -08:00
<div class="m-4 my-5"
hx-trigger="load delay:0.25s"
hx-get="web/account_summaries"
>
</div>
2024-01-17 19:58:31 -08:00
</div>
</div>
2024-01-14 18:00:51 -08:00
</div>
2024-01-15 13:47:16 -08:00
<div class="c-crust col card mx-auto cr-all">
2024-01-23 19:20:33 -08:00
<div class="c-surface0 d-flex w-100 cr-top">
<i class="my-auto tc-text py-3 ps-3 ms-1" data-feather="arrow-left"></i>
<i class="my-auto tc-text py-3 pe-3 me-1 ms-auto" data-feather="arrow-right"></i>
2024-01-15 13:47:16 -08:00
</div>
2024-01-14 18:00:51 -08:00
</div>
</div>
2024-01-15 19:26:51 -08:00
<div class="row mt-5">
<table class="card-table table table-striped cr-all">
<colgroup>
<col style="width: 2%"></col>
<col style="width: 15%"></col>
<col style="width: 30%"></col>
<col style="width: 15%"></col>
<col style="width: 3%"></col>
<col style="width: 1%"></col>
</colgroup>
<thead>
<tr>
<td>
</td>
<td>
<div class="d-flex">
<span class="my-auto me-0">
ID
</span>
<i class="my-auto ms-0 me-auto" data-feather="chevron-up"></i>
</div>
</td>
<td>Account</td>
<td>Date</td>
<td></td>
<td class="t-e" style="width:auto">Amount</td>
</tr>
</thead>
<tbody
hx-trigger="load delay:0.25s"
hx-get="/web/transaction_table_rows"
hx-params=""
>
</tbody>
2024-01-15 13:47:16 -08:00
</table>
</div>
</div>
}