2023-02-04 10:32:39 +00:00
|
|
|
{{ define "title" -}}
|
2023-03-13 13:55:10 +00:00
|
|
|
{{printf (pgettext "Edit Product “%s”" "title") .Name }}
|
2023-02-04 10:32:39 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ define "content" }}
|
|
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.productForm*/ -}}
|
|
|
|
<nav>
|
|
|
|
<p>
|
|
|
|
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
|
|
|
|
<a href="{{ companyURI "/products"}}">{{( pgettext "Products" "title" )}}</a> /
|
2023-03-13 13:55:10 +00:00
|
|
|
<a>{{ .Name }}</a>
|
2023-02-04 10:32:39 +00:00
|
|
|
</p>
|
|
|
|
</nav>
|
|
|
|
<section class="dialog-content">
|
2023-03-13 13:55:10 +00:00
|
|
|
<h2>{{printf (pgettext "Edit Product “%s”" "title") .Name }}</h2>
|
2023-02-04 10:32:39 +00:00
|
|
|
<form method="POST">
|
|
|
|
{{ csrfToken }}
|
|
|
|
{{ putMethod }}
|
|
|
|
|
|
|
|
{{ template "input-field" .Name | addInputAttr "autofocus" }}
|
|
|
|
{{ template "input-field" .Description }}
|
|
|
|
{{ template "input-field" .Price }}
|
2023-03-15 10:44:18 +00:00
|
|
|
{{ template "select-field" .Tax }}
|
2023-02-04 10:32:39 +00:00
|
|
|
|
|
|
|
<fieldset>
|
|
|
|
<button class="primary" type="submit">{{( pgettext "Update product" "action" )}}</button>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</section>
|
|
|
|
{{- end }}
|