-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* duplicating definitions form wizard * temp conflict resolution - check * initial journey working; todo: debug sub-quotas view page; todo: big refactor/tidy; todo: confirm styling matches design * adding validity checks to Quota Association edit form; some tidying up * conforming main/sub-quota language; removing comments; adding measurement_unit_code to dict; refactoring de/serializers to serializers.py * alinging styles * adding form reset button * pause * tests: get_cleaned_data_for_step, get_form_kwargs, edit view renders * refactored business rule validations to business_rules.py; tests; notes * correcting parent_definition to main_definition; squashing migrations * correcting parent_definition to main_definition; squashing migrations * adding check for definition data status; tidying up * formatting * adding tests for business rules; TODO: re-check QA5 requirements * fixing test * - fixes linting * updates to QA5 checks - in progress * fixing and testing QA5 * test for QA6 * tests * removing comments * date formatter * adding initial volume; adding breadcrumbs * responding to PR comments * adding button group; cleaning up set_duplicate_definitions * PR comments pt 2 * responding to PR comments 3 * corrected title * Replace radio buttons for tabs * Add test and match figma design * response to Pauls CR pt 1 * factoring out of business rules checks to avoid duplication * removing model, using session * wizard file * tests for forms using session * black formatting * adding tests for session use; correcting sid to pk * removing model & migration * fixing test params * Basic functioning sub quota edit form * Add helper for latest version of object * adding validation to require at least one definition to be selected * copy changes from chat with Ash; removed storage_name from update form * Swapped main_quota for get_main_definition for consistency * Content updates * Make sub-quotas heading consistent * black * Undo some for compatibility with create journey * Tidy up to match master * Ensure correct association selection * Use latest version up to transaction * Tidy up * Form tests not working * Form tests done * View tests * Test sub-quota edit url * Add test for get_association_edit_url * Edie PR comments * Hyphen sub-quotas * Change to current, fix association bug --------- Co-authored-by: Charles Prichard <[email protected]> Co-authored-by: Charlie Prichard <[email protected]> Co-authored-by: tommacca <[email protected]>
- Loading branch information
1 parent
387dfd5
commit dc84c03
Showing
12 changed files
with
714 additions
and
36 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
42 changes: 42 additions & 0 deletions
42
quotas/jinja2/quota-definitions/sub-quota-definitions-confirm-update.jinja
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,42 @@ | ||
{% extends "common/confirm_update.jinja" %} | ||
{% from "components/breadcrumbs.jinja" import breadcrumbs %} | ||
|
||
|
||
{% set page_title = "Sub-quota definition and association updated" %} | ||
|
||
{% block breadcrumb %} | ||
{{ breadcrumbs(request, [ | ||
{"text": "Find and edit quotas", "href": url("quota-ui-list")}, | ||
{"text": "Quota " ~ association.main_quota.order_number, "href": association.main_quota.order_number.get_url()}, | ||
{"text": "Quota " ~ association.main_quota.order_number ~ " - Data", "href": url("quota_definition-ui-list", kwargs={"sid":association.main_quota.order_number.sid})}, | ||
{"text": page_title}, | ||
]) | ||
}} | ||
{% endblock %} | ||
|
||
|
||
{% block panel %} | ||
{{ govukPanel({ | ||
"titleText": "Sub-" ~ object._meta.verbose_name ~ ": " ~ object|string, | ||
"text": "Sub-" ~ object._meta.verbose_name ~ ": " ~ object|string ~ " and association have been updated in workbasket " ~ request.user.current_workbasket.pk, | ||
"classes": "govuk-!-margin-bottom-7" | ||
}) }} | ||
{% endblock %} | ||
|
||
{% block button_group %} | ||
{{ govukButton({ | ||
"text": "View workbasket summary", | ||
"href": url("workbaskets:current-workbasket"), | ||
"classes": "govuk-button" | ||
}) }} | ||
{{ govukButton({ | ||
"text": "Return to main quota", | ||
"href": association.main_quota.order_number.get_url(), | ||
"classes": "govuk-button--secondary" | ||
}) }} | ||
{% endblock %} | ||
|
||
{% block actions %} | ||
<li><a class="govuk-link" href="{{ object.order_number.get_url() }}">View this sub-quota definition's quota order number</a></li> | ||
<li><a href="{{ object.order_number.get_url('list') }}">Find and edit quotas</a></li> | ||
{% endblock %} |
4 changes: 4 additions & 0 deletions
4
quotas/jinja2/quota-definitions/sub-quota-definitions-updates.jinja
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
Oops, something went wrong.