38 lines
1.3 KiB
Plaintext
38 lines
1.3 KiB
Plaintext
{{ define "title" -}}
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.PaymentForm*/ -}}
|
|
{{( pgettext "New Payment" "title" )}}
|
|
{{- end }}
|
|
|
|
{{ define "breadcrumbs" -}}
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.PaymentForm*/ -}}
|
|
<nav data-hx-target="main" data-hx-boost="true">
|
|
<p>
|
|
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
|
|
<a href="{{ companyURI "/payments"}}">{{( pgettext "Payments" "title" )}}</a> /
|
|
<a>{{( pgettext "New Payment" "title" )}}</a>
|
|
</p>
|
|
</nav>
|
|
{{- end }}
|
|
|
|
{{ define "content" }}
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.PaymentForm*/ -}}
|
|
<section data-hx-target="main">
|
|
<h2>{{ template "title" . }}</h2>
|
|
<form method="POST" action="{{ companyURI "/payments" }}"
|
|
data-hx-swap="innerHTML show:false"
|
|
data-hx-boost="true">
|
|
{{ csrfToken }}
|
|
|
|
{{ template "select-field" .PaymentAccount }}
|
|
{{ template "input-field" .Description }}
|
|
{{ template "input-field" .PaymentDate }}
|
|
{{ template "input-field" .Amount }}
|
|
{{ template "tags-field" .Tags }}
|
|
|
|
<footer>
|
|
<button class="primary" type="submit">{{( pgettext "Save" "action" )}}</button>
|
|
</footer>
|
|
</form>
|
|
</section>
|
|
{{- end }}
|