Compare commits
2 Commits
a30e015639
...
268ab9989a
Author | SHA1 | Date |
---|---|---|
jordi fita mas | 268ab9989a | |
jordi fita mas | dda32db683 |
|
@ -1,6 +1,6 @@
|
|||
{{ define "title" -}}
|
||||
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.editExpensePage*/ -}}
|
||||
{{ printf ( pgettext "Edit Expense “%s”" "title" ) .Slug }}
|
||||
{{ printf ( pgettext "Edit Expense “%s”" "title" ) (or .Form.InvoiceNumber.Value .Slug) }}
|
||||
{{- end }}
|
||||
|
||||
{{ define "breadcrumbs" -}}
|
||||
|
@ -9,7 +9,7 @@
|
|||
<p>
|
||||
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
|
||||
<a href="{{ companyURI "/expenses"}}">{{( pgettext "Expenses" "title" )}}</a> /
|
||||
<a>{{ .Slug }}</a>
|
||||
<a>{{ or .Form.InvoiceNumber.Value .Slug }}</a>
|
||||
</p>
|
||||
</nav>
|
||||
{{- end }}
|
||||
|
@ -17,7 +17,7 @@
|
|||
{{ define "content" }}
|
||||
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.editExpensePage*/ -}}
|
||||
<section id="new-expense-dialog-content" data-hx-target="main">
|
||||
<h2>{{ printf (pgettext "Edit Expense “%s”" "title") .Slug }}</h2>
|
||||
<h2>{{ template "title" . }}</h2>
|
||||
<form enctype="multipart/form-data" method="POST" action="{{ companyURI "/expenses/" }}{{ .Slug }}"
|
||||
data-hx-boost="true"
|
||||
data-hx-swap="innerHTML show:false"
|
||||
|
|
|
@ -82,7 +82,11 @@
|
|||
<tr>
|
||||
<td>{{ .InvoicerName }}</td>
|
||||
<td>{{ .InvoiceDate|formatDate }}</td>
|
||||
<td>{{ .InvoiceNumber }}</td>
|
||||
<td>
|
||||
{{- if .InvoiceNumber -}}
|
||||
<a href="{{ companyURI "/expenses/"}}{{ .Slug }}">{{ .InvoiceNumber }}</a>
|
||||
{{- end -}}
|
||||
</td>
|
||||
<td class="expense-status-{{ .Status }}">{{ .StatusLabel }}</td>
|
||||
<td
|
||||
data-hx-get="{{companyURI "/expenses/"}}{{ .Slug }}/tags/edit"
|
||||
|
|
Loading…
Reference in New Issue