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

Added DOC Custom Request Forms #591

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

johnyu95
Copy link
Contributor

@johnyu95 johnyu95 commented Feb 3, 2025

SQL Inserts

INSERT INTO public.custom_request_forms (id, agency_ein, form_name, form_description, field_definitions, repeatable, category, minimum_required, "order", is_active) VALUES (20, '0072', 'Incarceration Dates', '', '[{"First Name": {"name": "doc-form1-field1", "type": "input", "required": true, "error_message": "<span class=\"glyphicon glyphicon-exclamation-sign\"></span>&nbsp;<strong>Error, First Name is required.</strong> Please provide a name."}}, {"Last Name": {"name": "doc-form1-field2", "type": "input", "required": true, "error_message": "<span class=\"glyphicon glyphicon-exclamation-sign\"></span>&nbsp;<strong>Error, Last Name is required.</strong> Please provide a name."}}, {"NYSID": {"name": "doc-form1-field3", "type": "input", "required": false}}, {"Book and Case Number": {"name": "doc-form1-field4", "type": "input", "required": false}}]', 1, 1, 0, 1, true);
INSERT INTO public.custom_request_forms (id, agency_ein, form_name, form_description, field_definitions, repeatable, category, minimum_required, "order", is_active) VALUES (21, '0072', 'Incident Report', '', '[{"First Name": {"name": "doc-form2-field1", "type": "input", "required": true, "error_message": "<span class=\"glyphicon glyphicon-exclamation-sign\"></span>&nbsp;<strong>Error, First Name is required.</strong> Please provide a name."}}, {"Last Name": {"name": "doc-form2-field2", "type": "input", "required": true, "error_message": "<span class=\"glyphicon glyphicon-exclamation-sign\"></span>&nbsp;<strong>Error, Last Name is required.</strong> Please provide a name."}}, {"NYSID": {"name": "doc-form2-field3", "type": "input", "required": false}}, {"Book and Case Number": {"name": "doc-form2-field4", "type": "input", "required": false}}, {"Date of Incident": {"name": "doc-form2-field5", "type": "date", "required": false, "help_text": "If unknown, please provide a date range below.", "placeholder": "MM/DD/YYYY", "future_date_invalid": true}}, {"Incident Start Date": {"name": "doc-form2-field6", "type": "date", "required": false, "placeholder": "MM/DD/YYYY", "future_date_invalid": true}}, {"Incident End Date": {"name": "doc-form2-field7", "type": "date", "required": false, "placeholder": "MM/DD/YYYY", "future_date_invalid": true}}]', 1, 1, 0, 2, true);
INSERT INTO public.custom_request_forms (id, agency_ein, form_name, form_description, field_definitions, repeatable, category, minimum_required, "order", is_active) VALUES (22, '0072', 'Person in Custody File', '', '[{"First Name": {"name": "doc-form3-field1", "type": "input", "required": true, "error_message": "<span class=\"glyphicon glyphicon-exclamation-sign\"></span>&nbsp;<strong>Error, First Name is required.</strong> Please provide a name."}}, {"Last Name": {"name": "doc-form3-field2", "type": "input", "required": true, "error_message": "<span class=\"glyphicon glyphicon-exclamation-sign\"></span>&nbsp;<strong>Error, Last Name is required.</strong> Please provide a name."}}, {"NYSID": {"name": "doc-form3-field3", "type": "input", "required": false}}, {"Book and Case Number": {"name": "doc-form3-field4", "type": "input", "required": false}}, {"Start Date": {"name": "doc-form3-field5", "type": "date", "required": false, "placeholder": "MM/DD/YYYY", "future_date_invalid": true}}, {"End Date": {"name": "doc-form3-field6", "type": "date", "required": false, "placeholder": "MM/DD/YYYY", "future_date_invalid": true}}, {"Additional Details": {"name": "doc-form3-field7", "type": "textarea", "required": false, "max_length": "5000", "character_counter": true}}]', 1, 1, 0, 3, true);
INSERT INTO public.custom_request_forms (id, agency_ein, form_name, form_description, field_definitions, repeatable, category, minimum_required, "order", is_active) VALUES (23, '0072', 'DOC Personnel Record', '', '[{"First Name": {"name": "doc-form4-field1", "type": "input", "required": true, "error_message": "<span class=\"glyphicon glyphicon-exclamation-sign\"></span>&nbsp;<strong>Error, First Name is required.</strong> Please provide a name."}}, {"Last Name": {"name": "doc-form4-field2", "type": "input", "required": true, "error_message": "<span class=\"glyphicon glyphicon-exclamation-sign\"></span>&nbsp;<strong>Error, Last Name is required.</strong> Please provide a name."}}, {"Employee ID Number": {"name": "doc-form4-field3", "type": "input", "required": false}}, {"Date of Birth": {"name": "doc-form4-field4", "type": "date", "required": true, "placeholder": "MM/DD/YYYY", "error_message": "<span class=\"glyphicon glyphicon-exclamation-sign\"></span>&nbsp;<strong>Error, Date of Birth is required.</strong> Please provide a date.", "future_date_invalid": true}}, {"Shield Number": {"name": "doc-form4-field5", "type": "input", "required": false}}]', 1, 1, 0, 4, true);
INSERT INTO public.custom_request_forms (id, agency_ein, form_name, form_description, field_definitions, repeatable, category, minimum_required, "order", is_active) VALUES (24, '0072', 'Other Request', '', '[{"Description of Records": {"name": "doc-form5-field1", "type": "textarea", "required": true, "max_length": "5000", "error_message": "<span class=\"glyphicon glyphicon-exclamation-sign\"></span>&nbsp;<strong>Error, Description of Records is required.</strong> Please provide a description.", "character_counter": true}}]', 1, 1, 0, 5, true);

@johnyu95 johnyu95 requested a review from zgary February 3, 2025 17:38
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