{{ define "title" -}} {{ printf ( pgettext "Edit Quotation “%s”" "title" ) .Number }} {{- end }} {{ define "breadcrumbs" -}} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.editQuotationPage*/ -}} {{( pgettext "Home" "title" )}} / {{( pgettext "Quotations" "title" )}} / {{ .Number }} {{- end }} {{ define "content" }} {{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.editQuotationPage*/ -}} {{ printf (pgettext "Edit Quotation “%s”" "title") .Number }} {{ csrfToken }} {{ with .Form -}} {{ if .RemovedProduct -}} {{ with .RemovedProduct -}} {{printf (gettext "Product “%s” removed") .Name}} {{( pgettext "Undo" "action" )}} {{ template "hidden-field" .QuoteProductId }} {{ template "hidden-field" .ProductId }} {{ template "hidden-field" .Name }} {{ template "hidden-field" .Price }} {{ template "hidden-field" .Quantity }} {{ template "hidden-field" .Discount }} {{ template "hidden-field" .Description }} {{ template "hidden-select-field" .Tax }} {{- end }} {{- end }} {{ template "select-field" .Customer }} {{ template "hidden-field" .Date }} {{ template "tags-field" .Tags }} {{ template "select-field" .PaymentMethod }} {{ template "select-field" .QuoteStatus }} {{ template "input-field" .TermsAndConditions }} {{ template "input-field" .Notes }} {{- range $product := .Products }} {{ template "quote-product-form" . }} {{- end }} {{- end }} {{(pgettext "Subtotal" "title")}} {{ .Subtotal | formatPrice }} {{- range $tax := .Taxes }} {{ index . 0 }} {{ index . 1 | formatPrice }} {{- end }} {{(pgettext "Total" "title")}} {{ .Total | formatPrice }} {{( pgettext "Add products" "action" )}} {{( pgettext "Update" "action" )}} {{( pgettext "Save" "action" )}} {{- end }}
{{( pgettext "Home" "title" )}} / {{( pgettext "Quotations" "title" )}} / {{ .Number }}
{{printf (gettext "Product “%s” removed") .Name}}