2023-02-03 12:29:10 +00:00
|
|
|
{{ define "title" -}}
|
|
|
|
{{printf (pgettext "Edit Contact “%s”" "title") .BusinessName.Val }}
|
|
|
|
{{- end }}
|
|
|
|
|
2023-03-20 12:09:52 +00:00
|
|
|
{{ define "breadcrumbs" -}}
|
2023-02-03 12:29:10 +00:00
|
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.contactForm*/ -}}
|
2023-02-03 12:58:10 +00:00
|
|
|
<nav>
|
|
|
|
<p>
|
|
|
|
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
|
|
|
|
<a href="{{ companyURI "/contacts"}}">{{( pgettext "Contacts" "title" )}}</a> /
|
|
|
|
<a>{{ .BusinessName.Val }}</a>
|
|
|
|
</p>
|
|
|
|
</nav>
|
2023-03-20 12:09:52 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ define "content" }}
|
|
|
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.contactForm*/ -}}
|
2023-02-03 12:29:10 +00:00
|
|
|
<section class="dialog-content">
|
|
|
|
<h2>{{printf (pgettext "Edit Contact “%s”" "title") .BusinessName.Val }}</h2>
|
|
|
|
<form method="POST">
|
|
|
|
{{ csrfToken }}
|
|
|
|
{{ putMethod }}
|
2023-02-03 12:58:10 +00:00
|
|
|
|
2023-02-04 10:32:39 +00:00
|
|
|
{{ template "input-field" .BusinessName }}
|
2023-02-03 12:29:10 +00:00
|
|
|
{{ 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>
|
2023-02-03 12:58:10 +00:00
|
|
|
<button class="primary" type="submit">{{( pgettext "Update contact" "action" )}}</button>
|
2023-02-03 12:29:10 +00:00
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
|
|
</section>
|
|
|
|
{{- end }}
|