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

Acknowledgement Email Point of Contact #587

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

johnyu95
Copy link
Contributor

This PR adds the functionality to use point of contact information in email templates. Currently only added to acknowledgement emails.

Point of contact notes:

  • Turn on the feature by adding it to the agency features JSON. NYPD example below.
  • By default, the current user's information will be used as the point of contact unless explicitly set.
  • To select a point of contact, add/edit user and check off the point of contact option.
  • Point of contact must have a Title and Phone Number set.
{"letters": {"footer": "<div style=\"text-align: left;\"><strong>Note: Due to issues caused by the COVID-19 pandemic there may be extensive delays, lasting up to one year, in determining your request.</strong></div>", "signature": {"text": "Very truly yours,<br/>{% if user.signature %}<img src=\"data:image/png;base64,{{ user.signature }}\" />{% else %}<br />{%endif%}<br/>{{ user.name }}<br/>{{ user.title or '' }}<br/>{{ agency.name }}<br/>", "default_user_email": "[email protected]"}, "letterhead": "<span class=\"mceNonEditable\"><div style=\"overflow: hidden; padding-bottom: 20px;\"><span class=\"mceNonEditable\"><div class=\"letter-head-image\"><span class=\"mceNonEditable\"><img height=\"100px\" title=\"City of New York Logo\" src=\"{{ url_for('static', filename='img/nyc_seal_letterhead.png') }}\"alt=\"City of New York Logo\" width=\"110\" height=\"97\" style=\"float: left; width: 110px;\"class=\"mceNonEditable\"/></span></div></span><span class=\"mceNonEditable\"><div style=\"padding-left: 120px;\"><span class=\"mceNonEditable\"><span class=\"mceNonEditable\">POLICE DEPARTMENT</span><span class=\"mceNonEditable\"><br/></span><span class=\"mceNonEditable\">LEGAL BUREAU</span><span class=\"mceNonEditable\"><br/></span><span class=\"mceNonEditable\">F.O.I.L Unit, Room 110C</span><span class=\"mceNonEditable\"><br/></span><span class=\"mceNonEditable\">One Police Plaza</span><span class=\"mceNonEditable\"><br/></span><span class=\"mceNonEditable\">New York, NY  10038</span></span></div></span></div></span>", "generate_letters": true}, "custom_request_forms": {"enabled": true, "categorized": false, "expand_by_default": true, "category_info_text": "", "category_warning_text": "", "multiple_request_types": false, "description_hidden_by_default": false}, "monitor_agency_requests": [], "specific_request_instructions": {"text": "Requests for Payroll/Employment records should be directed to:<br />&emsp;Director Payroll & Benefits Division<br />&emsp;90 Church Street, 12th Floor<br />&emsp;New York, NY 10007<br /><br />Requests for Medical Records should be directed to:<br />&emsp;Medical Division <br />&emsp;1 Lefrak City Plaza, 16th Floor<br />&emsp;59-17 Junction Blvd.<br />&emsp;Corona, NY 11368<br /><br />Criminal History/Background Checks:<br />Requests for Criminal History/Background checks, should be directed to the NYS Division of Criminal Justice Services website:<br /><a rel=\"noreferrer noopener\" target=\"_blank\" href=\"http://www.criminaljustice.ny.gov/ojis/recordreview.htm\">http://www.criminaljustice.ny.gov/ojis/recordreview.htm</a><br /><br />You can also submit a request in writing to:<br />&emsp;New York State Division of Criminal Justice Services<br />&emsp;80 S Swan Street<br />&emsp;Albany, NY 12210<br /><br />Collision Reports:<br />Requestors seeking Collision Reports taken by the New York City Police Department (NYPD) before September 30, 2016 should access the New York State Department of Motor Vehicles website:<br /><a rel=\"noreferrer noopener\" target=\"_blank\" href=\"http://dmv.ny.gov/get-accident-report\">http://dmv.ny.gov/get-accident-report</a><br /><br />You can also submit a request in writing to:<br />&emsp;NYSDMV, MV-198 C Processing<br />&emsp;6 Empire State Plaza<br />&emsp;Albany, NY 12228<br /><br />Requestors seeking Collision Reports taken by the New York City Police Department (NYPD) after September 30, 2016 should access the NYPD's Collision Report website:<br /><a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https://collisionreport.nypdonline.org/\">https://collisionreport.nypdonline.org/</a>"}, "use_point_of_contact": true}

Copy link
Contributor

@zgary zgary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@johnyu95 johnyu95 merged commit 579dbbf into main Dec 12, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants