2023-05-03 10:46:25 +00:00
|
|
|
{{ define "title" -}}
|
|
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.expenseForm*/ -}}
|
|
|
|
{{( pgettext "New Expense" "title" )}}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ define "breadcrumbs" -}}
|
|
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.expenseForm*/ -}}
|
|
|
|
<nav data-hx-target="main" data-hx-boost="true">
|
|
|
|
<p>
|
|
|
|
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
|
|
|
|
<a href="{{ companyURI "/expenses"}}">{{( pgettext "Expenses" "title" )}}</a> /
|
|
|
|
<a>{{( pgettext "New Expense" "title" )}}</a>
|
|
|
|
</p>
|
|
|
|
</nav>
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ define "content" }}
|
|
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.expenseForm*/ -}}
|
2023-05-23 21:13:21 +00:00
|
|
|
<section id="new-expense-dialog-content" data-hx-target="main">
|
2023-05-03 10:46:25 +00:00
|
|
|
<h2>{{(pgettext "New Expense" "title")}}</h2>
|
2023-05-14 16:46:16 +00:00
|
|
|
<form enctype="multipart/form-data" method="POST" action="{{ companyURI "/expenses" }}" data-hx-boost="true">
|
2023-05-03 10:46:25 +00:00
|
|
|
{{ csrfToken }}
|
2023-05-23 21:13:21 +00:00
|
|
|
<div class="expenses-data">
|
2023-05-03 10:46:25 +00:00
|
|
|
{{ template "select-field" .Invoicer }}
|
|
|
|
{{ template "input-field" .InvoiceNumber }}
|
|
|
|
{{ template "input-field" .InvoiceDate }}
|
|
|
|
{{ template "input-field" .Amount }}
|
|
|
|
{{ template "select-field" .Tax }}
|
|
|
|
{{ template "tags-field" .Tags }}
|
2023-05-23 21:13:21 +00:00
|
|
|
{{ template "file-field" .File }}
|
|
|
|
</div>
|
2023-05-03 10:46:25 +00:00
|
|
|
<fieldset>
|
2023-05-26 11:38:04 +00:00
|
|
|
<button class="primary" type="submit">{{( pgettext "Save" "action" )}}</button>
|
2023-05-03 10:46:25 +00:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</section>
|
|
|
|
{{- end }}
|