2023-01-31 12:07:17 +00:00
|
|
|
{{ define "title" -}}
|
2023-02-01 13:34:40 +00:00
|
|
|
{{( pgettext "New Contact" "title" )}}
|
2023-01-31 12:07:17 +00:00
|
|
|
{{- end }}
|
|
|
|
|
2023-01-29 14:14:31 +00:00
|
|
|
{{ define "content" }}
|
2023-02-02 10:39:34 +00:00
|
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.contactForm*/ -}}
|
2023-02-01 13:34:40 +00:00
|
|
|
<section class="dialog-content">
|
|
|
|
<h2>{{(pgettext "New Contact" "title")}}</h2>
|
|
|
|
<form method="POST" action="{{ companyURI "/contacts" }}">
|
2023-02-02 10:39:34 +00:00
|
|
|
{{ csrfToken }}
|
2023-02-01 13:34:40 +00:00
|
|
|
{{ 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"` }}
|
2023-01-29 14:14:31 +00:00
|
|
|
|
2023-02-01 13:34:40 +00:00
|
|
|
<fieldset>
|
|
|
|
<button type="submit">{{( pgettext "New contact" "action" )}}</button>
|
|
|
|
</fieldset>
|
2023-01-29 14:14:31 +00:00
|
|
|
|
2023-02-01 13:34:40 +00:00
|
|
|
</form>
|
|
|
|
</section>
|
2023-01-29 14:14:31 +00:00
|
|
|
{{- end }}
|