numerus/web/template/company/invoicing.gohtml

36 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

{{ define "title" -}}
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.InvoicingForm*/ -}}
{{( pgettext "Invoicing and Quoting" "title" )}}
{{- end }}
{{ define "breadcrumbs" -}}
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.InvoicingForm*/ -}}
<nav data-hx-target="main" data-hx-boost="true">
<p>
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
<a>{{ template "title" . }}</a>
</p>
</nav>
{{- end }}
{{ define "content" }}
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.InvoicingForm*/ -}}
<section data-hx-target="main" data-hx-swap="innerHTML show:false">
<h2>{{ template "title" . }}</h2>
<form method="POST" action="{{ companyURI "/invoicing" }}" data-hx-boost="true">
<fieldset id="invoicing">
{{ csrfToken }}
{{ template "input-field" .InvoiceNumberFormat }}
{{ template "input-field" .NextInvoiceNumber }}
{{ template "input-field" .QuoteNumberFormat }}
{{ template "input-field" .NextQuoteNumber }}
{{ template "input-field" .LegalDisclaimer }}
</fieldset>
<footer>
<button form="details" type="submit">{{( pgettext "Save changes" "action" )}}</button>
</footer>
</form>
</section>
{{- end }}