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