39 lines
1.1 KiB
Plaintext
39 lines
1.1 KiB
Plaintext
|
<!--
|
||
|
SPDX-FileCopyrightText: 2023 jordi fita mas <jordi@tandem.blog>
|
||
|
SPDX-License-Identifier: AGPL-3.0-only
|
||
|
-->
|
||
|
{{ define "title" -}}
|
||
|
{{( pgettext "Customers" "title" )}}
|
||
|
{{- end }}
|
||
|
|
||
|
{{ define "breadcrumb" -}}
|
||
|
{{- end }}
|
||
|
|
||
|
{{ define "content" -}}
|
||
|
{{- /*gotype: dev.tandem.ws/tandem/camper/pkg/customer.customerIndex*/ -}}
|
||
|
<a href="/admin/customers/new">{{( pgettext "Add Customer" "action" )}}</a>
|
||
|
<h2>{{ template "title" . }}</h2>
|
||
|
<table>
|
||
|
<thead>
|
||
|
<tr>
|
||
|
<th scope="col">{{( pgettext "Name" "header" )}}</th>
|
||
|
<th scope="col">{{( pgettext "Email" "header" )}}</th>
|
||
|
<th scope="col">{{( pgettext "Phone" "header" )}}</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody>
|
||
|
{{ range .Customers -}}
|
||
|
<tr>
|
||
|
<td><a href="{{ .URL }}">{{ .Name }}</a></td>
|
||
|
<td>{{ .Email }}</td>
|
||
|
<td>{{ .Phone }}</td>
|
||
|
</tr>
|
||
|
{{- else -}}
|
||
|
<tr>
|
||
|
<td colspan="3">{{( gettext "No customer found." )}}</td>
|
||
|
</tr>
|
||
|
{{- end }}
|
||
|
</tbody>
|
||
|
</table>
|
||
|
{{- end }}
|