Move data-hx-boost inside the <nav> for quotes and invoices
This is because the download button must *not* be boosted, or HTMx would just slap the binary data into the document as is, without downloading it.
This commit is contained in:
parent
1bb6870f26
commit
c174fb447c
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
{{ define "breadcrumbs" -}}
|
{{ define "breadcrumbs" -}}
|
||||||
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.InvoicesIndexPage*/ -}}
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.InvoicesIndexPage*/ -}}
|
||||||
<nav data-hx-target="main" data-hx-boost="true">
|
<nav data-hx-target="main">
|
||||||
<p>
|
<p data-hx-boost="true">
|
||||||
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
|
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
|
||||||
<a>{{( pgettext "Invoices" "title" )}}</a>
|
<a>{{( pgettext "Invoices" "title" )}}</a>
|
||||||
</p>
|
</p>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
<button type="submit"
|
<button type="submit"
|
||||||
name="action" value="download"
|
name="action" value="download"
|
||||||
>{{( pgettext "Download invoices" "action" )}}</button>
|
>{{( pgettext "Download invoices" "action" )}}</button>
|
||||||
<a class="primary button"
|
<a class="primary button" data-hx-boost="true"
|
||||||
href="{{ companyURI "/invoices/new" }}">{{( pgettext "New invoice" "action" )}}</a>
|
href="{{ companyURI "/invoices/new" }}">{{( pgettext "New invoice" "action" )}}</a>
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
{{ define "breadcrumbs" -}}
|
{{ define "breadcrumbs" -}}
|
||||||
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.QuotesIndexPage*/ -}}
|
{{- /*gotype: dev.tandem.ws/tandem/numerus/pkg.QuotesIndexPage*/ -}}
|
||||||
<nav data-hx-target="main" data-hx-boost="true">
|
<nav data-hx-target="main">
|
||||||
<p>
|
<p data-hx-boost="true">
|
||||||
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
|
<a href="{{ companyURI "/" }}">{{( pgettext "Home" "title" )}}</a> /
|
||||||
<a>{{( pgettext "Quotations" "title" )}}</a>
|
<a>{{( pgettext "Quotations" "title" )}}</a>
|
||||||
</p>
|
</p>
|
||||||
|
@ -17,7 +17,7 @@
|
||||||
<button type="submit"
|
<button type="submit"
|
||||||
name="action" value="download"
|
name="action" value="download"
|
||||||
>{{( pgettext "Download quotations" "action" )}}</button>
|
>{{( pgettext "Download quotations" "action" )}}</button>
|
||||||
<a class="primary button"
|
<a class="primary button" data-hx-boost="true"
|
||||||
href="{{ companyURI "/quotes/new" }}">{{( pgettext "New quotation" "action" )}}</a>
|
href="{{ companyURI "/quotes/new" }}">{{( pgettext "New quotation" "action" )}}</a>
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue