31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
|
{{ define "title" -}}
|
||
|
{{printf (pgettext "Edit Contact “%s”" "title") .BusinessName.Val }}
|
||
|
{{- end }}
|
||
|
|
||
|
{{ define "content" }}
|
||
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.contactForm*/ -}}
|
||
|
<section class="dialog-content">
|
||
|
<h2>{{printf (pgettext "Edit Contact “%s”" "title") .BusinessName.Val }}</h2>
|
||
|
<form method="POST">
|
||
|
{{ csrfToken }}
|
||
|
{{ putMethod }}
|
||
|
|
||
|
{{ template "input-field" .BusinessName | addInputAttr "autofocus" }}
|
||
|
{{ template "input-field" .VATIN }}
|
||
|
{{ template "input-field" .TradeName }}
|
||
|
{{ template "input-field" .Phone }}
|
||
|
{{ template "input-field" .Email }}
|
||
|
{{ template "input-field" .Web }}
|
||
|
{{ template "input-field" .Address | addInputAttr `class="width-2x"` }}
|
||
|
{{ template "input-field" .City }}
|
||
|
{{ template "input-field" .Province }}
|
||
|
{{ template "input-field" .PostalCode }}
|
||
|
{{ template "select-field" .Country | addSelectAttr `class="width-fixed"` }}
|
||
|
|
||
|
<fieldset>
|
||
|
<button type="submit">{{( pgettext "Update contact" "action" )}}</button>
|
||
|
</fieldset>
|
||
|
</form>
|
||
|
</section>
|
||
|
{{- end }}
|