2023-01-31 12:07:17 +00:00
|
|
|
{{ define "title" -}}
|
2023-02-01 09:14:26 +00:00
|
|
|
{{( pgettext "Contacts" "title" )}}
|
2023-01-31 12:07:17 +00:00
|
|
|
{{- end }}
|
|
|
|
|
2023-01-29 14:14:31 +00:00
|
|
|
{{ define "content" }}
|
|
|
|
<a class="primary button" href="{{ companyURI "/contacts/new" }}">{{( pgettext "New contact" "action" )}}</a>
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{( pgettext "All" "contact" )}}</th>
|
|
|
|
<th>{{( pgettext "Customer" "title" )}}</th>
|
|
|
|
<th>{{( pgettext "Email" "title" )}}</th>
|
|
|
|
<th>{{( pgettext "Phone" "title" )}}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{{ with .Contacts }}
|
|
|
|
{{- range $tax := . }}
|
|
|
|
<tr>
|
|
|
|
<td></td>
|
|
|
|
<td>{{ .Name }}</td>
|
|
|
|
<td>{{ .Email }}</td>
|
|
|
|
<td>{{ .Phone }}</td>
|
|
|
|
</tr>
|
|
|
|
{{- end }}
|
|
|
|
{{ else }}
|
|
|
|
<tr>
|
2023-02-01 09:14:26 +00:00
|
|
|
<td colspan="4">{{( gettext "No contacts added yet." )}}</td>
|
2023-01-29 14:14:31 +00:00
|
|
|
</tr>
|
|
|
|
{{ end }}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{{- end }}
|