-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Invoice status updating improvements (#4083)
Fixes #3208. Implemented an improvement for the picklist where radio buttons will be shown when there are less than 4 options. Otherwise the prompt will be like it was before. This PR also implements HTMX for the invoice updating prompt, allowing invoices in table to be updated w/o refreshing the pages Co-authored-by: Fredrik Jonsson <[email protected]>
- Loading branch information
Showing
15 changed files
with
459 additions
and
238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
hypha/apply/projects/templates/application_projects/includes/update_invoice_form.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{% load i18n %} | ||
|
||
{% modal_title %}Update Invoice Status{% endmodal_title %} | ||
|
||
<form class="p-4" | ||
method="POST" | ||
action="{{ request.path }}" | ||
hx-post="{{ request.path }}" | ||
> | ||
<p class="mt-0 text-fg-muted">{% trans "Current status" %}: {{ invoice_status }}</p> | ||
|
||
{% include 'funds/includes/dialog_form_base.html' with form=form value=value form_id=form_id %} | ||
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.