Skip to content

Commit

Permalink
fix issue with single/recurring toggles being on wrong pages
Browse files Browse the repository at this point in the history
fix wrong url namespace "api:reports" to "api:finance:reports"

Signed-off-by: Trey <[email protected]>
  • Loading branch information
TreyWW committed Nov 8, 2024
1 parent 006219a commit 2c8d0b6
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion frontend/templates/modals/generate_report.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% fill "content" %}
<form class="py-4"
id="modal_generate_report-form"
hx-post="{% url 'api:reports:generate' %}"
hx-post="{% url 'api:finance:reports:generate' %}"
hx-swap="none">
{% csrf_token %}
<div class="form-control w-full">
Expand Down
3 changes: 0 additions & 3 deletions frontend/templates/pages/invoices/dashboard/core/main.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{% extends base|default:"base/base.html" %}
{% block content %}
{% if not notoggler %}
{% include "pages/invoices/structure/toggler.html" %}
{% endif %}
<div data-hx-swap="content">
{% if page_template %}
{% include page_template %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{% extends base|default:"base/base.html" %}
{% block content %}
{% include "pages/invoices/structure/toggler.html" %}
<div data-hx-swap="content">
{% if page_template %}
{% include page_template %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% include "pages/invoices/structure/toggler.html" %}
<div class="card bg-base-100 p-3 mb-2">
<div class="flex items-center justify-between">
<div class="flex items-center space-x-2">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{% include "pages/invoices/structure/toggler.html" %}
<div class="card bg-base-100 p-3 mb-2">
<div class="flex items-center justify-between">
<div class="flex items-start flex-row justify-start gap-x-2">
Expand Down
4 changes: 2 additions & 2 deletions frontend/templates/pages/reports/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h2 class="text-xl">Reports</h2>
placeholder="🔎 Search"
hx-swap="outerHTML"
hx-target="#table_body"
hx-get="{% url 'api:reports:fetch' %}"
hx-get="{% url 'api:finance:reports:fetch' %}"
hx-trigger="keyup changed delay:500ms"
hx-indicator="#search_loading">
<span id="search_loading"
Expand All @@ -36,7 +36,7 @@ <h2 class="text-xl">Reports</h2>
hx-swap="outerHTML"
hx-trigger="load, refresh_reports_table from:body"
hx-target="#table_body"
hx-get="{% url 'api:reports:fetch' %}">
hx-get="{% url 'api:finance:reports:fetch' %}">
<thead>
<tr>
<th>Name</th>
Expand Down

0 comments on commit 2c8d0b6

Please sign in to comment.