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-03-20 12:09:52 +00:00
|
|
|
{{ define "breadcrumbs" -}}
|
2023-02-02 10:39:34 +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>{{( pgettext "New Contact" "title" )}}</a>
|
|
|
|
</p>
|
|
|
|
</nav>
|
2023-03-20 12:09:52 +00:00
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{ define "content" }}
|
|
|
|
{{- /*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>
|
2023-02-03 12:58:10 +00:00
|
|
|
<button class="primary" type="submit">{{( pgettext "New contact" "action" )}}</button>
|
2023-02-01 13:34:40 +00:00
|
|
|
</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 }}
|