From feee83f30308d1a10518a8d506bd29bc169537e6 Mon Sep 17 00:00:00 2001 From: Bryce Willey Date: Thu, 14 Dec 2023 10:34:11 -0500 Subject: [PATCH 1/3] Get rid of underscores in ItemizedValueDict table Can't do much more, but we can kind make them look not like variables --- docassemble/ALToolbox/data/questions/al_income.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docassemble/ALToolbox/data/questions/al_income.yml b/docassemble/ALToolbox/data/questions/al_income.yml index 60d5e762..639ed6bb 100644 --- a/docassemble/ALToolbox/data/questions/al_income.yml +++ b/docassemble/ALToolbox/data/questions/al_income.yml @@ -151,7 +151,7 @@ table: x.table rows: x columns: - Type: | - row_index + str(row_index).replace("_", " ").lower() - Amount: | '$0' if hasattr(row_item, 'exists') and not row_item.exists else currency(row_item.value) edit: From 107ccc403739365fd63915ea1fdac2936f327371 Mon Sep 17 00:00:00 2001 From: Bryce Willey Date: Thu, 14 Dec 2023 11:27:07 -0500 Subject: [PATCH 2/3] capitalize the row index Co-authored-by: Quinten Steenhuis --- docassemble/ALToolbox/data/questions/al_income.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docassemble/ALToolbox/data/questions/al_income.yml b/docassemble/ALToolbox/data/questions/al_income.yml index 639ed6bb..f852143d 100644 --- a/docassemble/ALToolbox/data/questions/al_income.yml +++ b/docassemble/ALToolbox/data/questions/al_income.yml @@ -151,7 +151,7 @@ table: x.table rows: x columns: - Type: | - str(row_index).replace("_", " ").lower() + str(row_index).replace("_", " ").lower().capitalize() - Amount: | '$0' if hasattr(row_item, 'exists') and not row_item.exists else currency(row_item.value) edit: From d4571d18d9b9d1c727e7ae0e5c45371f497a09e4 Mon Sep 17 00:00:00 2001 From: Bryce Willey Date: Thu, 14 Dec 2023 13:06:50 -0500 Subject: [PATCH 3/3] Add ability to edit lists on review screen in demo --- .../data/questions/al_income_demo.yml | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/docassemble/ALToolbox/data/questions/al_income_demo.yml b/docassemble/ALToolbox/data/questions/al_income_demo.yml index 2a98baaf..c48bab98 100644 --- a/docassemble/ALToolbox/data/questions/al_income_demo.yml +++ b/docassemble/ALToolbox/data/questions/al_income_demo.yml @@ -164,6 +164,7 @@ question: | buttons: - Restart: restart subquestion: | + [Edit your answers](${ url_action('review_interview') }) % if to_run['ALItemizedJob']: ## Single ALItemizedJob: ${ itemized_job.source } @@ -388,6 +389,32 @@ subquestion: | % endif --- +id: review screen +event: review_interview +question: Review +review: + - Edit: itemized_job_list.revisit + button: | + ${ itemized_job_list } + - Edit: al_income_list.revisit + button: | + ${ al_income_list } + - Edit: al_job_list.revisit + button: | + ${ al_job_list } + - Edit: al_asset_list.revisit + button: | + ${ al_asset_list } + - Edit: al_vehicle_list.revisit + button: | + ${ al_vehicle_list } + - Edit: al_value_list.revisit + button: | + ${ al_value_list } + - Edit: al_expense_list.revisit + button: | + ${ al_expense_list } +--- # OUTPUT TEMPLATES --- generic object: ALItemizedJob @@ -503,4 +530,4 @@ content: | % for exp in x: ${ exp.source } | As string | ${ exp } ${ exp.source } | Total cost | ${ currency(exp.total()) } - % endfor \ No newline at end of file + % endfor