2023-01-31 12:07:17 +00:00
|
|
|
{{ define "title" -}}
|
2023-05-16 12:56:49 +00:00
|
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.DashboardPage*/ -}}
|
|
|
|
{{( pgettext "Dashboard" "title" )}}
|
2023-01-31 12:07:17 +00:00
|
|
|
{{- end }}
|
|
|
|
|
2023-03-20 12:09:52 +00:00
|
|
|
{{ define "breadcrumbs" -}}
|
2023-05-16 12:56:49 +00:00
|
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.DashboardPage*/ -}}
|
2023-03-20 12:09:52 +00:00
|
|
|
{{- end }}
|
|
|
|
|
2023-01-22 20:41:50 +00:00
|
|
|
{{ define "content" }}
|
2023-05-16 12:56:49 +00:00
|
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.DashboardPage*/ -}}
|
2023-05-17 10:05:30 +00:00
|
|
|
<div aria-label="{{( pgettext "Filters" "title" )}}">
|
|
|
|
<form method="GET" action="{{ companyURI "/"}}"
|
|
|
|
id="dashboard-filters"
|
|
|
|
data-hx-target="main"
|
|
|
|
data-hx-boost="true"
|
|
|
|
data-hx-trigger="change,submit"
|
|
|
|
>
|
|
|
|
{{ with .Filters }}
|
|
|
|
{{ template "radio-field" .Period }}
|
|
|
|
{{ end }}
|
2023-05-23 12:34:46 +00:00
|
|
|
<noscript>
|
|
|
|
<button type="submit">{{( pgettext "Filter" "action" )}}</button>
|
|
|
|
</noscript>
|
2023-05-17 10:05:30 +00:00
|
|
|
</form>
|
|
|
|
</div>
|
2023-05-16 12:56:49 +00:00
|
|
|
<dl id="income-statement">
|
|
|
|
<div>
|
|
|
|
<dt>{{ (pgettext "Sales" "term") }}</dt>
|
|
|
|
<dd>{{ formatPriceSpan .Sales }}</dd>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<dt>{{ (pgettext "Income" "term") }}</dt>
|
|
|
|
<dd>{{ formatPriceSpan .Income }}</dd>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<dt>{{ (pgettext "Expenses" "term") }}</dt>
|
|
|
|
<dd>{{ formatPriceSpan .Expenses }}</dd>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<dt>{{ (pgettext "VAT" "term") }}</dt>
|
|
|
|
<dd>{{ formatPriceSpan .VAT }}</dd>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<dt>{{ (pgettext "IRPF" "term") }}</dt>
|
|
|
|
<dd>{{ formatPriceSpan .IRPF }}</dd>
|
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<dt>{{ (pgettext "Net Income" "term") }}</dt>
|
|
|
|
<dd>{{ formatPriceSpan .NetIncome }}</dd>
|
|
|
|
</div>
|
|
|
|
</dl>
|
2023-05-20 13:53:59 +00:00
|
|
|
{{ .Chart }}
|
2023-01-22 20:41:50 +00:00
|
|
|
{{- end }}
|