Project Claire: intake step1.html

From PikaDocs

 Valid XHTML 1.0!

Last modified: July 2, 2005

<!-- intake_step1.html = Citizenship Screening subtemplate -->
<!-- called from intakes.php at line 72 -->

<script type="text/javascript" src="/pika/js/pop_up_help.js"></script>

<!-- "content-container" DIV -->

<div id="content-container">

    <!-- "side-content" DIV -->

    <div class="side-content">

        <!-- primary client info -->

        <h2>Primary Client</h2>

        <p>
        <a href='%%[base_url]%%/contacts.php/%%[contact_id]%%/?intake_id=%%[intake_id]%%'>%%[client_name]%%</a><br />
        Address:<br />
        %%[client_address]%%<br />
        Phone: %%[client_phone]%%<br />
        Notes: %%[phone_notes]%%<br />
        Language: %%[language,language,text]%%<br />
        DOB: %%[birth_date]%%<br />
        %%[client_remove]%%
        </p>
			
        %%[client_list]%%

        %%[case_charges]%%

        %%[opposing_list]%%

        %%[other_contacts_list]%%

        <!-- intake workflow -->
        
        <h2>Intake Workflow</h2>

        <ul>
        <li><a href="%%[base_url]%%/intakes.php/%%[intake_id]%%/step1/">Step 1: Citizenship</a></li>
        <li><a href="%%[base_url]%%/intakes.php/%%[intake_id]%%/step1b/">Step 1b: Eligible Alien</a></li>
        <li><a href="%%[base_url]%%/intakes.php/%%[intake_id]%%/step2/">Step 2: Income|Assets</a></li>
        </ul>

    </div> <!-- "side-content" closing DIV -->
	
    <!-- "main-content" DIV -->

    <div class="main-content"> <!-- "wrapper" for "main content" area -->
		
        <!-- citizenship screening form elements -->
        
        <h2>Step 1: Citizenship Screening</h2>
			
        <form action="%%[base_url]%%/ops/update_intake.php" method="post" name="ws">
	    	
            <!-- radio buttons -->
            
            <div class="radio-buttons">
            %%[citizen radio]%%
            </div>
            
            <!-- verification checkbox -->
            
            <div id="verify">
            %%[citizen_check,yes_no,checkbox]%% Citizenship Verified?
            <a class="context-help" href="javascript:popUp('%%[base_url]%%/helpdocs/help_citizen.html')" title="Click to see definitions and applicable rules for each of these terms.">:: What do these terms mean?</a>
            </div>
            
            <!-- intake notes -->
            
            <div class="notes">
            Intake Notes:
            <br />
            <textarea id="intake-notes" name="intake_notes" cols="" rows="6" tabindex="1">%%[intake_notes]%%</textarea>
            </div>
			
            <input type="hidden" name="intake_id" value="%%[intake_id]%%" />
            <input type="hidden" name="current_step" value="1" />
			
            <!-- submit buttons -->
            
            <div class="input-submit-step">

                <input class="button initial-intake" type="submit" name="button_press_5" value="Eligible Citizen" tabindex="2" onclick="citbutton(ws);return false;" onmouseover="this.className='button button-hover'" onmouseout="this.className='button initial-intake'" title="Confirm the prospective client is a U.S. citizen and go the financial eligibility page." />
                <input class="button initial-intake" type="submit" name="button_press_4" value="Eligible Alien" tabindex="1" onclick="eligbutton(ws);return false;"onmouseover="this.className='button button-hover'" onmouseout="this.className='button initial-intake'" title="Confirm the prospective client is an LSC-eligible alien and go to the next step to document alien status." />
                <input class="button initial-intake" type="submit" name="button_press_2" value="Not Eligible" tabindex="1" onclick="return confirm('Are you sure you want to\nreject this intake and\ndelete all intake data?');" onmouseover="this.className='button button-hover'" onmouseout="this.className='button initial-intake'" title="Confirm the prospective client is NOT eligible and DELETE this intake record." />
                <input class="button initial-intake" type="submit" name="button_press_3" value="Save" tabindex="1" onmouseover="this.className='button button-hover'" onmouseout="this.className='button initial-intake'" title="Save this intake record." />

            </div>

        </form> <!-- closing FORM -->

    </div> <!-- "main-content" closing DIV -->
	
</div> <!-- "content-container" closing DIV -->



<!-- additional validation scripts -->

<script type="text/javascript">
<!-- 
function citbutton(thisform) {
// place any other field validations that you require here
// validate myradiobuttons
oho = "";

myOption = -1;
for (i=0; i<thisform.citizen.length; i++) {
if (thisform.citizen[i].checked) {
myOption = i;
}
}
if (myOption == 0) 
{
submit();
}
if (myOption == -1)
{oho = "nothing";}
else if (myOption == 1)
{oho = "Eligible Alien";}
else if (myOption == 2)
{oho = "Undocumented Alien";}
alert("You selected " + oho + " in step 1. Please review your choice and re-submit");
return false;
// place any other field validations that you require here
// thisform.submit(); // this line submits the form after validation
}

function eligbutton(thisform) {
// place any other field validations that you require here
// validate myradiobuttons
oho = "";

myOption = -1;
for (i=0; i<thisform.citizen.length; i++) {
if (thisform.citizen[i].checked) {
myOption = i;
}
}
if (myOption == 1) 
{
submit();
}
else if (myOption == 2) 
{
submit();
}
if (myOption == -1)
{oho = "nothing";}
else if (myOption == 0)
{oho = "Citizen";}
alert("You selected " + oho + " in step 1. Please review your choice and re-submit");
return false;
// place any other field validations that you require here
// thisform.submit();
// this line submits the form after validation
}
// -->
</script>


Return to Table of Contents

Related articles and files: