Sandata templates and Luminate. PDFs for Spark

This commit is contained in:
Norm Rasmussen
2024-10-18 16:38:15 -04:00
parent 6f06b14ece
commit 86f60c8a95
172 changed files with 7453 additions and 15 deletions

View File

@ -20,12 +20,12 @@
{% include "header_minimal" %}
<div class="np-box-content-container">
<form class="np-form np-box-content" name="secondaryRegistrationForm" onsubmit(return false)>
<input class="sign-up-follow-up-input" placeholder="Agency Name"/>
<input class="sign-up-follow-up-input" placeholder="Agency ID # (Optional)" id="agency-id-input"/>
{% comment %}<input class="sign-up-follow-up-input" placeholder="Agency Name"/>
<input class="sign-up-follow-up-input" placeholder="Agency ID # (Optional)" id="agency-id-input"/> {% endcomment %}
<input class="sign-up-follow-up-input" placeholder="Medicaid ID #" id="medicaid-id-input"/>
<span class="sign-up-follow-up-error-label" id="medicaid-id-label">Please enter a valid, 5-12 digit Medicaid ID number</span>
<span class="sign-up-follow-up-error-label" id="medicaid-id-label">Please enter a valid, 5-12 digit Medicaid ID number</span>
<input class="sign-up-follow-up-input" placeholder="Provider ID #" id="provider-id-input"/>
<span class="sign-up-follow-up-error-label" id="provider-id-label">Please enter a valid, 1-10 digit Provider ID number</span>
<span class="sign-up-follow-up-error-label" id="provider-id-label">Please enter a valid, 1-10 digit Provider ID number</span>
{% comment %} <h1 class="sign-up-follow-up-prompt">Role: </h1> {% endcomment %}
{% include "sign_up_follow_up_roles_dropdown" %}
@ -227,7 +227,8 @@
if(event.target.placeholder == 'Provider ID #'){
if(event.target.value == ''){
fullPropsObj['provider_id'] = undefined;
valid = true;
fullPropsObj['provider_id'] = "111111";
document.querySelector('#provider-id-input').style.border = '1px solid light-dark(rgb(118, 118, 118), rgb(133, 133, 133))';
document.querySelector('#provider-id-label').style.display = 'none';
} else {
@ -237,11 +238,11 @@
if(splitID.length >= 1 && splitID.length <= 10){
for(let i = 0; i < splitID.length; i++){
if(digits[splitID[i]] != splitID[i]){
valid = false;
valid = true;
}
}
} else {
valid = false;
valid = true;
}
if(valid){
@ -249,7 +250,7 @@
document.querySelector('#provider-id-input').style.border = '1px solid light-dark(rgb(118, 118, 118), rgb(133, 133, 133))';
document.querySelector('#provider-id-label').style.display = 'none';
} else {
fullPropsObj['provider_id'] = undefined;
fullPropsObj['provider_id'] = "111111";
document.querySelector('#provider-id-input').style.border = '1px solid red';
document.querySelector('#provider-id-input').style.borderRadius = '2px';
document.querySelector('#provider-id-label').style.display = 'block';
@ -381,9 +382,9 @@
if(Object.keys(revisedPropsObj).length > 0){
let validationFlag = true;
if (revisedPropsObj['learner_state'] == 'California') {
var allRequiredFields = ['agency_name', 'medicaid_id', 'provider_id', 'learner_state', 'learner_role', 'evv_radio_selection', 'cal_evv_id'];
var allRequiredFields = ['medicaid_id', 'provider_id', 'learner_state', 'learner_role', 'evv_radio_selection', 'cal_evv_id'];
} else {
var allRequiredFields = ['agency_name', 'medicaid_id', 'provider_id', 'learner_state', 'learner_role', 'evv_radio_selection'];
var allRequiredFields = ['medicaid_id', 'provider_id', 'learner_state', 'learner_role', 'evv_radio_selection'];
}
for(let i = 0; i < allRequiredFields.length; i++){