Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interviewfixes #77

Merged
merged 11 commits into from
Aug 3, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ objects:
- requestor: ALIndividual
- school: Person
---
code: |
AL_ORGANIZATION_TITLE = "Massachusetts Advocates for Children"
---
features:
bootstrap theme: mac-bootstrap.css
progress bar: True
Expand All @@ -49,6 +52,9 @@ objects:
- evaluations_list: DAList
- evaluation: DAObject
---
objects:
- al_logo: DAStaticFile.using(filename="MAClogo.jpg")
---
default screen parts:
post: |
% if not user_logged_in():
Expand Down Expand Up @@ -180,7 +186,9 @@ subquestion: |
Before you start, you will need:

1. The name and address of the special education coordinator or director for your child's school.

2. Your child's full name and date of birth.

3. Name and email of your child's school principal.

If you need help finding any of this information, contact MAC’s helpline at
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,7 @@ subquestion: |

${ al_recipient_bundle.as_pdf(key='preview') }

Click the image to open it in a new tab. Click the "Edit answers" button
to edit your answers.

${ action_button_html(url_action('review_independent_evaluation_request'), label='Edit answers', color='info') }
Click the image to open it in a new tab.

Remember to come back to this window to continue and sign your form.
continue button field: independent_evaluation_request_preview_question
Expand All @@ -441,10 +438,7 @@ question: |
subquestion: |
Thank you. Your form is ready to download and deliver.

View, download and send your form below. Click the "Edit answers" button to fix any mistakes.

${ action_button_html(url_action('review_independent_evaluation_request'), label='Edit answers', color='info') }

View, download and send your form below.

${ al_user_bundle.download_list_html() }

Expand Down Expand Up @@ -512,7 +506,9 @@ subquestion: |
Before you start, you will need:

1. The name and address of the special education coordinator or director for your child's school.

2. Your child's full name and date of birth.

3. Name and email of your child's school principal.

If you need help finding any of this information, contact MAC’s helpline at
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
modules:
- docassemble.base.util
- docassemble.base.legal
Expand Down Expand Up @@ -117,6 +116,7 @@ code: |
basic_questions_signature_flow
requestor.signature
initial_request_download

---
###TODO add back email option
###initial_request_concatenated = pdf_concatenate(initial_request_variable)
Expand All @@ -138,8 +138,11 @@ subquestion: |
Before you start, you will need:

1. The name and address of the special education coordinator or director for your child’s school district.

2. Your child's full name and date of birth.

3. If your child ALREADY HAS an {IEP}: the name and email of the special education coordinator or director for your child’s school; OR

4. If your child does NOT have an {IEP}: the name and email for your child’s school principal or teacher.

If your child has an {IEP}, the name of your child’s special education coordinator should be listed on your child’s IEP.
Expand All @@ -160,7 +163,7 @@ help:
---
id: select initial evaluations
question : |
What evaluations does ${ student.familiar() } need?
What evaluations does ${ student.familiar() } need?
subquestion: |
First, explain what you or a specialist have noticed about
${ student.familiar() } that you would like to be evaluated.
Expand Down Expand Up @@ -664,10 +667,7 @@ subquestion: |

${ al_recipient_bundle.as_pdf(key='preview') }

Click the image to open it in a new tab. Click the "Edit answers" button
to edit your answers.

${ action_button_html(url_action('review_initial_request'), label='Edit answers', color='info') }
Click the image to open it in a new tab.

Remember to come back to this window to continue and sign your form.
continue button field: initial_request_preview_question
Expand All @@ -687,31 +687,40 @@ id: download initial_request
event: initial_request_download
question: |
All done
subquestion: |
Thank you. Your form is ready to download and deliver.

View, download and send your form below. Click the "Edit answers" button to fix any mistakes.

${ action_button_html(url_action('review_initial_request'), label='Edit answers', color='info') }

subquestion: |
Thank you. Your form is ready to download and deliver.

View, download and send your form below.

${ al_user_bundle.download_list_html() }


${ al_user_bundle.send_button_html(show_editable_checkbox=True) }

progress: 100
progress: 100
---
# ALDocument objects specify the metadata for each template
objects:
- initial_request_attachment: ALDocument.using(title="Initial Request", filename="initial_request", enabled=True, has_addendum=False)
- educational_evaluations_copy_request_attachment: ALDocument.using(title="Evaluation Copy Request", filename="educational_evaluations_copy_request", enabled=True, has_addendum=False)
- educational_evaluations_transition_assessment_request_attachment: ALDocument.using(title="Transition Assessment Request", filename="educational_evaluations_transition_assessment_request", enabled=True, has_addendum=False)
- educational_evaluations_transition_assessment_request_attachment: ALDocument.using(title="Transition Assessment Request", filename="educational_evaluations_transition_assessment_request", has_addendum=False)
---
code: |
if student.age_in_years() >= 13:
educational_evaluations_transition_assessment_request_attachment.enabled = True
else:
educational_evaluations_transition_assessment_request_attachment.enabled = False
---
code: |
educational_evaluations_transition_assessment_request_attachment.initialize()
---

# Bundles group the ALDocuments into separate downloads, such as for court and for the user
objects:
- al_user_bundle: ALDocumentBundle.using(elements=[initial_request_attachment, educational_evaluations_copy_request_attachment, educational_evaluations_transition_assessment_request_attachment], filename="educational_evaluations_entire_record_request", title="All forms to download for your records", enabled=True)
- al_recipient_bundle: ALDocumentBundle.using(elements=[initial_request_attachment, educational_evaluations_copy_request_attachment, educational_evaluations_transition_assessment_request_attachment], filename="educational_evaluations_entire_record_request", title="All forms to file", enabled=True)

- al_user_bundle: ALDocumentBundle.using(elements=[initial_request_attachment, educational_evaluations_transition_assessment_request_attachment], filename="educational_evaluations_entire_record_request", enabled=True, title="All forms to download for your records")

- al_recipient_bundle: ALDocumentBundle.using(elements=[initial_request_attachment, educational_evaluations_transition_assessment_request_attachment], filename="educational_evaluations_entire_record_request", enabled=True, title="All forms to file", )

---
# Each attachment defines a key in an ALDocument. We use `i` as the placeholder here so the same template is
# used for "preview" and "final" keys, and logic in the template checks the value of
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ question: |
subquestion: |
Before you start, you will need:


1. Your child’s full name and date of birth.

2. Name and email of your child’s school principal or special education contact (if your child has an IEP)
Expand Down Expand Up @@ -114,6 +113,7 @@ code: |
basic_questions_signature_flow
requestor.signature
educational_evaluations_entire_record_request_download

---
## TODO add back in email feature to send directy to school
# educational_evaluations_entire_record_request_concatenated = pdf_concatenate(educational_evaluations_entire_record_request_variable)
Expand All @@ -139,6 +139,7 @@ continue button field: entire_record_request_intro_screen
# - ${student.name.first}'s starting date: student.enrollment_date
# datatype: date
#---
#mandatory: True
#id: entire record request letter screen
#question: |
# Here is your letter
Expand Down Expand Up @@ -186,11 +187,6 @@ subquestion: |
Here is a preview of the form you will sign on the next page.

${ al_recipient_bundle.as_pdf(key='preview') }

Click the image to open it in a new tab. Click the "Edit answers" button
to edit your answers.

${ action_button_html(url_action('review_educational_evaluations_entire_record_request'), label='Edit answers', color='info') }

Remember to come back to this window to continue and sign your form.
continue button field: educational_evaluations_entire_record_request_preview_question
Expand All @@ -213,10 +209,7 @@ question: |
subquestion: |
Thank you. Your form is ready to download and deliver.

View, download and send your form below. Click the "Edit answers" button to fix any mistakes.

${ action_button_html(url_action('review_educational_evaluations_entire_record_request'), label='Edit answers', color='info') }

View, download and send your form below.

${ al_user_bundle.download_list_html() }

Expand Down
4 changes: 4 additions & 0 deletions docassemble/StudentEvaluations/data/static/mac-bootstrap.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def find_package_data(where='.', package='', exclude=standard_exclude, exclude_d
url='https://www.massadvocates.org/',
packages=find_packages(),
namespace_packages=['docassemble'],
install_requires=['docassemble.AssemblyLine>=2.23.0', 'docassemble.MAPovertyScale>=2022.1.18', 'docassemble.MassAccess>=0.3.0'],
install_requires=['docassemble.AssemblyLine>=2.24.0', 'docassemble.MAPovertyScale>=2022.1.18', 'docassemble.MassAccess>=0.3.0'],
zip_safe=False,
package_data=find_package_data(where='docassemble/StudentEvaluations/', package='docassemble.StudentEvaluations'),
)
Expand Down