From 9eb6e31a697f38be9a350093958fcbc74a003343 Mon Sep 17 00:00:00 2001 From: Toby Fey Date: Tue, 2 Jul 2024 17:35:54 -0400 Subject: [PATCH] added motion to dismiss --- .../data/questions/MOHUDEvictionProject.yml | 4 ++++ .../MOHUDEvictionProject/data/questions/shared.yml | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docassemble/MOHUDEvictionProject/data/questions/MOHUDEvictionProject.yml b/docassemble/MOHUDEvictionProject/data/questions/MOHUDEvictionProject.yml index 2e9734b..ac055da 100644 --- a/docassemble/MOHUDEvictionProject/data/questions/MOHUDEvictionProject.yml +++ b/docassemble/MOHUDEvictionProject/data/questions/MOHUDEvictionProject.yml @@ -510,6 +510,10 @@ code: | code: | motion_to_shorten_time_attachment.enabled = wants_discovery and not original_hearing_date_past --- +id: add motion to dismiss if no lease +code: | + motion_to_dismiss_attachment.enabled = defense_lease_not_attached +--- id: add notice of hearing if any motions enabled code: | notice_of_hearing_attachment.enabled = motion_to_shorten_time_attachment.enabled or eviction_motion_for_leave_attachment.enabled or eviction_motion_to_continue_attachment.enabled diff --git a/docassemble/MOHUDEvictionProject/data/questions/shared.yml b/docassemble/MOHUDEvictionProject/data/questions/shared.yml index 158ec69..053a01b 100644 --- a/docassemble/MOHUDEvictionProject/data/questions/shared.yml +++ b/docassemble/MOHUDEvictionProject/data/questions/shared.yml @@ -924,6 +924,13 @@ attachment: skip undefined: True docx template file: notice_of_hearing.docx --- +attachment: + - name: motion to dismiss + filename: motion_to_dismiss + variable name: motion_to_dismiss_attachment[i] + skip undefined: True + docx template file: motion_to_dismiss.docx +--- id: preview eviction_defender question: | % if person_answering == "tenant": @@ -1049,11 +1056,14 @@ objects: objects: - motion_to_shorten_time_attachment: ALDocument.using(title="File a Motion to Shorten Time", filename="motion_to_shorten_time.docx", has_addendum=False, default_overflow_message=AL_DEFAULT_OVERFLOW_MESSAGE) --- +objects: + - motion_to_dismiss_attachment: ALDocument.using(title="File a Motion to Dismiss", filename="motion_to_dismiss.docx", has_addendum=False, default_overflow_message=AL_DEFAULT_OVERFLOW_MESSAGE) +--- objects: - notice_of_hearing_attachment: ALDocument.using(title="File a Notice of Hearing", filename="notice_of_hearing.docx", has_addendum=False, default_overflow_message=AL_DEFAULT_OVERFLOW_MESSAGE) --- objects: - - al_user_bundle: ALDocumentBundle.using(elements=[eviction_defender_post_interview_instructions,eviction_motion_to_continue_attachment,eviction_answer_attachment,eviction_motion_for_leave_attachment,motion_to_shorten_time_attachment,eviction_discovery_attachment,notice_of_hearing_attachment], filename="eviction_helper.docx_package.pdf", title="All forms to download for your records", enabled=True) + - al_user_bundle: ALDocumentBundle.using(elements=[eviction_defender_post_interview_instructions,eviction_motion_to_continue_attachment,eviction_answer_attachment,eviction_motion_for_leave_attachment,motion_to_shorten_time_attachment,eviction_discovery_attachment,motion_to_dismiss_attachment,notice_of_hearing_attachment], filename="eviction_helper.docx_package.pdf", title="All forms to download for your records", enabled=True) - al_court_bundle: ALDocumentBundle.using(elements=attachment_list_court, filename="eviction_helper.docx_package.pdf", title="All forms to download for your records", enabled=True) --- template: about_page_contents