<div class="help_dialog">

	<?php if (Helpers::strEqual($topic, 'create')): ?>
		<h1>Creating a New Student Eligibility Request Form</h1>

		<h2>Instructions</h2>
		To create a new form, follow the instructions included on the page.  Each instruction is marked with an info icon, <span class="ui-icon ui-icon-info" style="vertical-align: middle; display: inline-block;"></span>.  Please use proper capitalization, do not type in all caps.

		<br /><br />

	  	<img src="<?php echo asset('images/icons/refresh_32px.png'); ?>" alt="" title="" style="float: left; margin-right: 5px;" />
	  	<b>Note:</b> If you refresh the page during this step, your previously input information will be lost and you will have to start over from scratch.<br />	  	
		<h3>Form Fields</h3>
		The information you input on this form will be used to setup a new student eligibility request form for submitting a hardship waiver.  Each field on the form is required, except as noted.  The fields are described as follows:
		<ul>
			<li><b>School Name</b> - The name of your school.  If the school listed is not correct, close the form by clicking the "Cancel" button and create a new form by selecting a different school.</li>
			<li><b>School Year</b> - The school year for which you are requesting the student to be eligible.</li>
			<li><b>Waiver Type</b> - The appropriate hardship waiver for which you are requesting exemption.  Select an option and additional information will be displayed including rule references.</li>
			<li><b>First Name</b> - Student's first name.</li>
			<li><b>Middle Initial</b> - Student's optional middle initial.</li>
			<li><b>Last Name</b> - Student's last name.</li>
			<li><b>Date of Birth</b> - The student's birth date.  Click this field to bring up a date picker.  Once you select a date, the student's age will be calculated.</li>
			<li><b>Country</b> - The student's country of origin.</li>
		</ul>

		<h3>Action Items</h3>		
		<img src="<?php echo asset('images/icons/waiver_action_icon_48px.png'); ?>" alt="" title="" style="width: 32px; height: 32px; float: left; margin: 0 10px 0 0;" />When you start working on the form, you'll notice blue arrows pointing to form fields that require input.  Please supply an input for these fields.  Once you input something, the arrows will disappear.

		<h3>Moving onto Step 2</h3>
		<img src="<?php echo asset('images/icons/waiver_action_icon_2_48px.png'); ?>" alt="" title="" style="width: 32px; height: 32px; float: left; margin: 0 10px 0 0;" />
		Once all of the required information is provided and all of the blue arrows are gone, a green arrow will point to the "Next" button.  Click this button to generate your form.	

	<?php elseif (Helpers::strEqual($topic, 'waiver-types')): ?>
		
		<?php

			$waiver_types = waivertype::where('slug', '!=', 'Special')
								      ->get();			

		?>		

		<?php foreach ($waiver_types as $type): ?>

			<h3><?php echo $type->slug; ?></h3>
			OSAA Rule <?php echo $type->rule; ?> - <?php echo $type->name; ?>, handled by the <?php echo str_replace('Executive Director', 'OSAA Executive Director', $type->default_handler_type); ?>.

		<?php endforeach; ?>


	<?php elseif (Helpers::strEqual($topic, 'new-form')): ?>		

		<h1>Your Form Was Successfully Created</h1>

		<h2 style="color: #990000 !important;">Please Read This Information About Your New Form</h2>

		<h2>A Notification Has Been Sent</h2>
		You have just been sent an e-mail notification indicating that your form was created and assigned a unique ID number.  If, for any reason, you need to close your form and pick up editing at a later time, you can refer to that e-mail for a link back to this form.

		<br />

		<h2>Eligibility Form Process</h2>
				
		<div style="margin-left: 30px;">
			<b>1. Create Form</b> - <img src="<?php echo asset('/images/icons/check_16px.png'); ?>" alt="" title="" style="vertical-align: middle;" /> Done
			<div class="small gray">Your form's current status is WORK - A Work in Progress:</div>

			<div class="status_path" style="margin-left: 30px;">
	            <?php if (Helpers::strEqual($object->waiver->waiver_status, array('WORK'))): ?>
	                <div class="state current">WORK</div>
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <div class="state">RECD</div>
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <div class="state">PEND</div>
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <div class="state">DONE</div>
	            <?php elseif (Helpers::strEqual($object->waiver->waiver_status, array('RECD'))): ?>
	                <div class="state complete">WORK</div>
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <div class="state current">RECD</div>
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <div class="state">PEND</div>
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <div class="state">DONE</div>
	            <?php elseif (Helpers::strEqual($object->waiver->waiver_status, array('PEND'))): ?>
	                <div class="state complete">WORK</div>
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <div class="state complete">RECD</div>
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <div class="state current">PEND</div>
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <div class="state">DONE</div>
	            <?php elseif (Helpers::strEqual($object->waiver->waiver_status, array('DONE', 'APPL', 'ARCH'))): ?>
	                <div class="state complete">WORK</div>
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <div class="state complete">RECD</div>
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <div class="state complete">PEND</div>
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_complete.png'); ?>" alt="" title="" />
	                <div class="state current">DONE</div>
	            <?php elseif (Helpers::strEqual($object->waiver->waiver_status, array('INSF'))): ?>
	                <div class="state current">INSF</div>
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <div class="state">RECD</div>
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <div class="state">PEND</div>
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <img src="<?php echo asset('/images/icons/progress_not_yet.png'); ?>" alt="" title="" />
	                <div class="state">DONE</div>
	            <?php elseif (Helpers::strEqual($object->waiver->waiver_status, array('WTDN'))): ?>
	                <div class="state current">WTDN</div>                
	            <?php endif; ?>            
	        </div>

	        <br />

	        <b>2. Fill In All Information</b>
			<div class="small gray">Fill in all required information on the form.  Required fields are indicated with a red asterisk, <span style="color: #990000; font-weight: bold; font-size: 14pt !important; position: relative; top: 6px;">*</span>.  You can check if your form meets all of the requirements by clicking the "Run Check" button.</div>

			<br />

	        <?php if (Helpers::strEqual($object->waiver_type->default_handler_type, 'Executive Director')): ?>

		        <b>3. Submit Online Form</b>
				<div class="small gray">
					Click the "Submit" button to submit your completed online form to the OSAA.  If you entered in all of the required information and attached all of the required files, your form's status will change to RECD - Received.  Your form will then turn to PEND - Pending if your form passes muster by OSAA examination, or it will be returned as INSF - Insufficient if you missed something.
				</div>

			<?php else: ?>

				<b>3. Submit &amp; Print Form</b>
				<div class="small gray">
					Click the "Submit" button to verify your online form is complete.  If you entered in all of the required information and attached all of the required files, your form's status will change to PEND - Pending.  You will see a PDF view of your form displayed.  Print a copy of your form and send it to your District Athletic Committee.  Instructions will be provided on the printable version on your form.
				</div>

			<?php endif; ?>

		</div>		

		<h2>Using This Form</h2>
		<img src="<?php echo asset('images/icons/autosave_32px.png'); ?>" alt="" title="" style="float: left; margin: 0 10px 0 0;" />
	  	<b>Auto-Save:</b> Changes to your form are automatically saved after a field's value is confirmed (i.e. clicking outside of a text box or tabbing to another field.)

	  	<br /><br />

	  	<img src="<?php echo asset('images/icons/refresh_32px.png'); ?>" alt="" title="" style="float: left; margin: 0 10px 0 0;" />
	  	<b>Auto-Refresh:</b> Some fields will trigger your form to reload.  You will see your page refreshed with updated information.

	  	<br /><br />	  	

	  	<img src="<?php echo asset('images/icons/help_32px.png'); ?>" alt="" title="" style="float: left; margin: 0 10px 0 0;" />
	  	<b>More Help:</b> Click the "Help" button anytime for detailed instructions.  For assistance, contact OSAA Support: (503) 682-6722 x228 or <?php echo Helpers::obfuscateEmailLink ("support@osaa.org"); ?>.		
		
        <div style="width: 100%; text-align: center; padding-top: 1.5em; position: relative;">

        	<div class="close_first_view_button">Got it, let's get started</div>
        	<img src="<?php echo asset('/images/icons/waiver_action_icon_48px.png'); ?>" class="action_item" alt="" title="" style="position: absolute; left: 0; top: 0; width: 32px; height: 32px;" data-direction="left" />

        </div>

	<?php elseif (Helpers::strEqual($topic, 'edit')): ?>		

		<h1>Editing a Student Eligibility Request Form</h1>
		
		<h2>Editing Form <?php echo $object->waiver->id; ?></h2>
		You are currently editing the Student Eligibility Request Form seeking a hardship waiver for <?php echo $object->student->getDisplayName(); ?> to be eligible to participate at <?php echo $object->school->name; ?>.
		
		<h2>Using This Form</h2>
		<img src="<?php echo asset('images/icons/autosave_32px.png'); ?>" alt="" title="" style="float: left; margin: 0 10px 0 0;" />
	  	<b>Auto-Save:</b> Changes to your form are automatically saved after a field's value is confirmed (i.e. clicking outside of a text box or tabbing to another field.)

	  	<br /><br />

	  	<img src="<?php echo asset('images/icons/refresh_32px.png'); ?>" alt="" title="" style="float: left; margin: 0 10px 0 0;" />
	  	<b>Auto-Refresh:</b> Some fields will trigger your form to reload.  You will see your page refreshed with updated information.

	  	<br /><br />	  	

	  	<img src="<?php echo asset('images/icons/help_32px.png'); ?>" alt="" title="" style="float: left; margin: 0 10px 0 0;" />
	  	<b>More Help:</b> Click the "Help" button anytime for detailed instructions.  For assistance, contact OSAA Support: (503) 682-6722 x228 or <?php echo Helpers::obfuscateEmailLink ("support@osaa.org"); ?>.		
		


		<h2>Form Actions</h2>
		The "Form Actions" section is the gray area underneath the header at the top of the form:
		<ul>
			<li><b>Print</b> - This generates a PDF version of the request form.</li>			
			<li><b>Withdraw</b> - If you no longer wish to seek a hardship waiver, you can redact your form by clicking this button.  You cannot withdraw a form after it has been submitted.  Once withdrawn, forms cannot be reinstated.</li>
			<li><b>Run Check</b> - Click this button to check if your form meets all of the requirements to be submitted.</li>
			<li><b>Submit</b> - Click this button to submit your form.</li>
			<?php if (Auth::user()->isOsaaUser()): ?>
				<li><b>Mail Merge</b> - This will generate a CSV file that will be downloaded automatically.  Use this CSV file as the data source for a new mail-merge document for notification letters.</li>
			<?php endif; ?>
		</ul>
		
		<?php if (Helpers::strEqual($object->waiver_status->slug, 'WTDN')): ?>
			<h2 style="color: #990000 !important;">This Form Is Withdrawn</h2>
			This form has been withdrawn and it cannot be edited.  There is nothing left to do with this form.
		
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'WORK')): ?>
			<h2 style="color: #990000 !important;">Next Steps</h2>
			You will need to fill in <b>Additional Information</b>: student's current address, student's parent/guardian information, enrollment history and academic records, etc.

	        <br /><br />

	        You will need to <b>Add Enrollment Records</b> for this student's full high school academic progress.  An up-to-date student enrollment record history is required.  (Foreign exchange students are not required to have enrollment histories entered for academic progress outside the United States.)

			<br /><br />

			<img src="<?php echo asset('images/icons/yield_icon_32px.png'); ?>" alt="" title="" style="float: left; margin-right: 5px;" />
		  	<b>Note:</b> This online form's enrollment record requirement cannot be substituted by an attached academic transcript.
		  	

		  	<?php if (count($object->required_files) > 0): ?>

	            <h2>Required Files</h2>
	            <?php if ($object->required_files->missing > 0): ?>
	                You must upload files in order to submit this form.  The following file types must be uploaded and attached to this waiver:
	            <?php else: ?>
	                You have uploaded all of the required files.  You can attach additional files if you want to provide additional information for consideration.
	            <?php endif; ?>

	            <div style="margin: 0.5em 0 0 30px; font-size: 9pt;">
	                <?php foreach ($object->required_files->types as $type): ?>
	                    <div style="margin-bottom: 1em; clear: both;">
	                        <div style="float: left; height: 5em; width: 24px;">
	                            <?php if ($type->uploaded): ?>
	                                <img src="<?php echo asset('images/icons/check_16px.png'); ?>" alt="" title="Uploaded and attached" style="vertical-align: middle;" />
	                            <?php else: ?>
	                                <img src="<?php echo asset('images/icons/no_form_data_16px.png'); ?>" alt="" title="Missing" style="vertical-align: middle;" />
	                            <?php endif; ?>
	                        </div>

	                        <div style="font-weight: bold;">
	                            <?php echo $type->name; ?>
	                        </div>

	                        <div class="gray" style="font-size: 8pt; line-height: 1.25em;">
	                            <?php echo $type->description; ?>
	                        </div>
	                    </div>
	                <?php endforeach; ?>
	            </div>

	        <?php endif; ?>

		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'RECD')): ?>
			<h2 style="color: #990000 !important;">Next Steps</h2>
			Your form has been submitted and it can no longer be edited.  Once the OSAA has verified all of the required information has been submitted, the form's status will be changed to pending (PEND) or returned as insufficient (INSF.)
			<br /><br />
			If you form is returned as insufficient, you will be able to edit the form and add additional information.  A note will indicate why your form was returned as insufficient.  			
		
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'INSF')): ?>
			<h2 style="color: #990000 !important;">Next Steps</h2>
			Your form has been returned as insufficient.  The reason for this is explained below.<br /><br />
			<?php echo end($object->data->insufficient_notes)->notes; ?> [<i><?php echo end($object->data->insufficient_notes)->user; ?></i>]
			<br /><br />
			Please be sure to provide all of the required information.
			<ol>				
				<li>Fill in any missing information or upload additional files.</li>
				<li>Click the "Run Check" button to verify your form can be submitted.</li>
				<li>Click the "Submit" button to re-submit your form.</li>
			</ol>	
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'PEND')): ?>
			<h2 style="color: #990000 !important;">Next Steps</h2>
			Your form has been submitted and received.  A decision is currently pending.
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'DONE')): ?>
			<h2 style="color: #990000 !important;">A Decision Has Been Made</h2>
			A decision has been made.  Refer to the form's "Decisions" section for the outcome of your request.  A notification has been sent.<br /><br />
			If you want to appeal this decision, please do so by sending an e-mail with your request for an appeal to the OSAA Executive Director, Tom Welter (<a href="mailto:tomw@osaa.org?subject=Eligibility%20Appeal%20-%20<?php echo $object->student->first_name; ?>%20<?php echo $object->student->last_name; ?>">tomw@osaa.org</a>.)
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'APPL')): ?>
			<h2 style="color: #990000 !important;">Decision Is Being Appealed</h2>
			A decision has been made that is being appealed.  Refer to the form's "Appeals" section for additional information.
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'ARCH')): ?>
			<h2 style="color: #990000 !important;">Form Is Archived</h2>
			This form has been archived.  It will be retained in the database for record keeping purposes for up to five years.
		<?php endif; ?>		        

         

    <?php elseif (Helpers::strEqual($topic, 'add-enrollment-record')): ?>

    	<h1>Adding a New Student Enrollment Record</h1>

		<h2>What Is an Enrollment Record?</h2>
		A student enrollment record is a history of a specific student's academic progress.  A record indicates the student's academic progress throughout his/her high school career.

		<h2>Waiver Requirement</h2>
		An up-to-date student enrollment record history is required to submit an eligibility request form.  Foreign exchange students are not required to have enrollment histories entered for academic progress outside the United States.

		<br /><br />

		<img src="<?php echo asset('images/icons/yield_icon_32px.png'); ?>" alt="" title="" style="float: left; margin-right: 5px;" />
	  	<b>Note:</b> This online form's enrollment record requirement cannot be substituted by an attached academic transcript.

		<h2>Add Enrollment Record Utility</h2>
		Use this utility to create a new student enrollment record. Click the "Add" button to save this record to your form.  Click "Cancel" button to discard any changes and close the utility window without saving.
			  	
		<h3>Form Fields</h3>
		All fields in this utility must have a value, including:
		<ul>
			<li><b>School Year</b> - The academic school year for this enrollment period.</li>
			<li><b>Grade</b> - The student's grade in school during this school year (9, 10, 11, or 12.)</li>
			<li><b>Grading Period</b> - The academic term during the selected school year, this field indicates which semester or trimester the enrollment period covered.</li>
			<li><b>Dates Attended</b> - When was the student enrolled?  When was the <b>First Date</b> of the academic term and when was the <b>Last Date</b>?  These entries should be provided in MM/DD/YYYY format.</li>
			<li><b>School</b> - The name of the school the student attended during this period.  As you type, suggested school names will appear in a list below the form field.</li>			
			<li><b># Credits Earned</b> - The number of academic credits the student earned during this enrollment period.  The value entered can be a decimal number.</li>
			<li><b># Classes Passed</b> - How many classes did the student pass during this enrollment period?  This entry must be a whole number.</li>
		</ul>			

	<?php elseif (Helpers::strEqual($topic, 'edit-enrollment-record')): ?>

    	<h1>Editing an Existing Student Enrollment Record</h1>
		
		<h2>Edit Enrollment Record Utility</h2>
		Use this utility to edit an existing student enrollment record. Click the "Save" button to save this record on your form.  Click "Cancel" button to discard any changes and close the utility window without saving.  To delete this record, close the utility and click the record's trash can icon from the form editor.
			  	
		<h3>Form Fields</h3>
		All fields in this utility must have a value, including:
		<ul>
			<li><b>School Year</b> - The academic school year for this enrollment period.</li>
			<li><b>Grade</b> - The student's grade in school during this school year (9, 10, 11, or 12.)</li>
			<li><b>Grading Period</b> - The academic term during the selected school year, this field indicates which semester or trimester the enrollment period covered.</li>
			<li><b>Dates Attended</b> - When was the student enrolled?  When was the <b>First Date</b> of the academic term and when was the <b>Last Date</b>?  These entries should be provided in MM/DD/YYYY format.</li>
			<li><b>School</b> - The name of the school the student attended during this period.  As you type, suggested school names will appear in a list below the form field.</li>			
			<li><b># Credits Earned</b> - The number of academic credits the student earned during this enrollment period.  The value entered can be a decimal number.</li>
			<li><b># Classes Passed</b> - How many classes did the student pass during this enrollment period?  This entry must be a whole number.</li>
		</ul>	

	<?php elseif (Helpers::strEqual($topic, 'upload-file')): ?>    	

    	<h1>Uploading and Attaching a File to the Waiver</h1>
		
		<h2>Why Upload Files?</h2>
		Some eligibility waivers require additional information that cannot be easily captured on an online form.  Schools might also want to provide additional information to be considered regarding a student's eligibility.

		<br /><br />

		Uploading files and attaching them to a waiver is easy and allows for additional information to be provided.
			  	
		<h2>Required File Types for this Waiver</h2>
		For the current waiver you're editing, you must upload the following files types:
		<div style="margin-left: 28px;">
			<?php foreach ($object->required_files->types as $type): ?>
				<div style="font-weight: bold;">
					<?php if ($type->uploaded): ?>
						<img src="<?php echo asset('images/icons/check_16px.png'); ?>" alt="" title="Uploaded and attached" style="vertical-align: middle;" />
					<?php else: ?>
						<img src="<?php echo asset('images/icons/no_form_data_16px.png'); ?>" alt="" title="Missing" style="vertical-align: middle;" />
					<?php endif; ?>
					<?php echo $type->name; ?>
				</div>
			<?php endforeach; ?>
		</div>

		<h2>How to Upload &amp; Attach a File</h2>
		To upload a new file and attach it to the waiver, you need to use the upload file utility and complete these two steps:
		
		<h3>Step 1 - Select the File Type</h3>
		First, select what type of file you are attaching to the waiver.  There are many types of files, some are required, others are optional.  When you choose an option, a description of the file type will be displayed below the drop-down list to provide you with more information.
		
		<h3>Step 2 - Select the File on Your Computer to Upload</h3>
		Click the button to bring up a file browser window.  Navigate to the file's folder on your computer and select a single file to upload.

		<h2>File Restrictions</h2>
		Although almost any file extension can be accepted, it is preferable to upload files in a commonly readable format like Adobe PDF.  (I.e., files with extension ".pdf" work the best.)  The OSAA office uses Microsoft Office 2013.  Uploading a Mac/Apple formatted file may add a delay to processing your waiver because your files may have to be re-formatted to Windows readable files.

		<br /><br />

		The maximum file size that can be uploaded for a single file is 8 MB.

	<?php elseif (Helpers::strEqual($topic, 'add-signature')): ?>

    	<h1>Digitally Signing the Affirmation Statement</h1>
		
		<h2>Affirmation Statement</h2>
		<div style="padding: 0.5em; background-color: #f2f2f2; border: 1px solid #d9e1e0;">
			Under penalty of perjury, the parties below do affirm that no coach, parent, administrator, teacher, or other representative of the current school initiated contact or offered any inducements for the purpose of having the student attend the current school for athletic participation. Further, they authorize release of permanent school records to the Oregon School Activities Association. 
		</div>
			  	
		<h2>Required</h2>
		In order for your eligibility request to be considered by the OSAA Executive Director or the District Athletic Committee, both the school's administrator (Principal or Superintendent,) and the student's parent/guardian or host family must agree to the affirmation statement.

		<h2>How to Sign</h2>
		There are two ways to sign the affirmation statement.

		<h3 style="color: #990000 !important;">1. Digital Signatures</h3>
		Using the online form, you can add a signature for each party.  The party must read the affirmation statement, then he or she must then type in his or her full legal name in the text box.  (/s/ indicates an electronic signature.)  Once both parties have signed, the form can be submitted.

		<h3 style="color: #990000 !important;">2. Print &amp; Sign Signatures</h3>
		You can alternatively download a <a href="http://www.osaa.org/docs/forms/AffirmationStatementSignatureForm.pdf" target="_blank">blank signature form</a> to print off, sign, scan, and upload to this online form.  This method is useful when the student's parent/guardian is not present to digitally sign the form at the time of submission.  You can print off the blank form and send with the student home for a signature.  The blank signature form has instructions on how to upload the file and attach it to your waiver.
		
	<?php elseif (Helpers::strEqual($topic, 'view')): ?>

		<h1>Student Eligibility Request Form</h1>
		
		<h2>Viewing Form <?php echo $object->waiver->id; ?></h2>
		You are currently viewing the Student Eligibility Request Form seeking a hardship waiver for <?php echo $object->student->getDisplayName(); ?> to be eligible to participate at <?php echo $object->school->name; ?>.		
			  	
		<h2>Form Actions</h2>
		The "Form Actions" section is the gray area underneath the header at the top of the form:
		<ul>
			<li><b>Print</b> - This generates a PDF version of the request form.</li>
			<li><b>Edit Form</b> - Use this button to edit your form.  You cannot edit the form after it has been submitted.</li>
			<li><b>Withdraw</b> - If you no longer wish to seek a hardship waiver, you can redact your form by clicking this button.  You cannot withdraw a form after it has been submitted.  Once withdrawn, forms cannot be reinstated.</li>
			<?php if (Auth::user()->isOsaaUser()): ?>
				<li><b>Mail Merge</b> - This will generate a CSV file that will be downloaded automatically.  Use this CSV file as the data source for a new mail-merge document for notification letters.</li>
			<?php endif; ?>
		</ul>
		
		<?php if (Helpers::strEqual($object->waiver_status->slug, 'WTDN')): ?>
			<h2 style="color: #990000 !important;">This Form Is Withdrawn</h2>
			This form has been withdrawn and it cannot be edited.  There is nothing left to do with this form.
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'WORK')): ?>
			<h2 style="color: #990000 !important;">Next Steps</h2>
			Ensure all information is provided.  Edit your form to provide additional information or attach required items.  The next step is to submit the form.
			<ol>
				<li>Click the "Edit Form" button to bring up the form editor.</li>
				<li>Click the "Run Check" button to verify your form can be submitted.</li>
				<li>Click the "Submit" button to submit your form.</li>
			</ol>			
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'RECD')): ?>
			<h2 style="color: #990000 !important;">Next Steps</h2>
			Your form has been submitted and it can no longer be edited.  Once the OSAA has verified all of the required information has been submitted, the form's status will be changed to pending (PEND) or returned as insufficient (INSF.)
			<br /><br />
			If you form is returned as insufficient, you will be able to edit the form and add additional information.  A note will indicate why your form was returned as insufficient.  			
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'INSF')): ?>
			<h2 style="color: #990000 !important;">Next Steps</h2>
			Your form has been returned as insufficient.  The reason for this is explained below.<br /><br />
			<?php echo end($object->data->insufficient_notes)->notes; ?> [<i><?php echo end($object->data->insufficient_notes)->user; ?></i>]
			<br /><br />
			Please edit your form and provide all of the required information.
			<ol>
				<li>Click the "Edit Form" button to bring up the form editor.</li>
				<li>Fill in any missing information or upload additional files.</li>
				<li>Click the "Run Check" button to verify your form can be submitted.</li>
				<li>Click the "Submit" button to re-submit your form.</li>
			</ol>	
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'PEND')): ?>
			<h2 style="color: #990000 !important;">Next Steps</h2>
			Your form has been submitted and received.  A decision is currently pending.
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'DONE')): ?>
			<h2 style="color: #990000 !important;">A Decision Has Been Made</h2>
			A decision has been made.  Refer to the form's "Decisions" section for the outcome of your request.  A notification has been sent.<br /><br />
			If you want to appeal this decision, please do so by sending an e-mail with your request for an appeal to the OSAA Executive Director, Tom Welter (<a href="mailto:tomw@osaa.org?subject=Eligibility%20Appeal%20-%20<?php echo $object->student->first_name; ?>%20<?php echo $object->student->last_name; ?>">tomw@osaa.org</a>.)
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'APPL')): ?>
			<h2 style="color: #990000 !important;">Decision Is Being Appealed</h2>
			A decision has been made that is being appealed.  Refer to the form's "Appeals" section for additional information.
		<?php elseif (Helpers::strEqual($object->waiver_status->slug, 'ARCH')): ?>
			<h2 style="color: #990000 !important;">Form Is Archived</h2>
			This form has been archived.  It will be retained in the database for record keeping purposes for up to five years.
		<?php endif; ?>

	<?php elseif (Helpers::strEqual($topic, 'submitted')): ?>		

		<?php if (Helpers::strEqual($object->waiver_type->default_handler_type, 'Executive Director')): ?>
			<h1>Your Form Was Submitted Successfully</h1>	

			<h2>Next Steps</h2>

			<div style="border-left: 5px groove #b0dcff; padding-lefT: 10px; margin-bottom: 1.5em;">
				<img src="<?php echo asset('images/icons/check_document_32px.png'); ?>" alt="" title="" style="float: left; margin-right: 10px;" />			
				<b>Waiting for Inspection</b><br />
				<span class="small">Form was received, OSAA staff will review your form to ensure all information is provided.</span>

				<br class="clear" />
			</div>

			<div style="border-left: 5px groove #b0ffbe; padding-lefT: 10px; margin-bottom: 0.25em;">
				<img src="<?php echo asset('images/icons/accept_32px.png'); ?>" alt="" title="" style="float: left; margin-right: 10px;" />			
				<b>Pending, Waiting for a Decision</b><br />
				<span class="small">If your form passes muster, the OSAA Executive Director will consider your request.</span>

				<br class="clear" />
			</div>

			- Or -

			<div style="border-left: 5px groove #ffb0b0; padding-lefT: 10px; margin-top: 0.25em; margin-bottom: 1.5em;">
				<img src="<?php echo asset('images/icons/missing_32px.png'); ?>" alt="" title="" style="float: left; margin-right: 10px;" />			
				<b>Form Returned as Insufficient</b><br />
				<span class="small">Otherwise, your form will be returned as insufficient.  You'll need to add more information.</span>

				<br class="clear" />
			</div>

			<h2>A Notification Has Been Sent</h2>
			An e-mail was just sent to the OSAA office indicating that your form has been submitted, your school was also copied on that notification.  You can refer to that e-mail for a link back to this form.

			<h2>Directions</h2>
			You do not need to send a copy of your form to the OSAA.  By submitting the online form, the OSAA has been notified and can access your form online to make a decision.

			<br /><br />

			It is recommended to print a copy of this form for your own records.


		<?php else: ?>
			<h1>Your Form Is Ready to Be Printed</h1>

			<h2>Next Steps</h2>
			
			<div style="border-left: 5px groove #b0dcff; padding-lefT: 10px; margin-bottom: 1.5em;">
				<img src="<?php echo asset('images/icons/print_32px.png'); ?>" alt="" title="" style="float: left; margin-right: 10px;" />			
				<b>Print Your Form</b><br />
				<span class="small">Click the "Print" button to view a printable PDF version of your form.</span>

				<br class="clear" />
			</div>

			<div style="border-left: 5px groove #b0ffbe; padding-lefT: 10px; margin-bottom: 1.5em;">
				<img src="<?php echo asset('images/icons/send_32px.png'); ?>" alt="" title="" style="float: left; margin-right: 10px;" />			
				<b>Send to District Athletic Committee</b><br />
				<span class="small">Send your form directly to your District Athletic Committee with any other attachments.</span>

				<br class="clear" />
			</div>

			<div style="border-left: 5px groove #ffb0b0; padding-lefT: 10px; margin-bottom: 1.5em;">
				<img src="<?php echo asset('images/icons/info_32px.png'); ?>" alt="" title="" style="float: left; margin-right: 10px;" />			
				<b>Wait for a Decision</b><br />
				<span class="small">The District Athletic Committee will notify your school of the decision.</span>

				<br class="clear" />
			</div>

			<h2>A Notification Has Been Sent</h2>
			You have just been sent an e-mail notification indicating that your form is ready to be printed.  You can refer to that e-mail for a link back to this form.

			<h2>Directions</h2>
			Send this printed Student Eligibility Request Form and any attached files to your District Athletic Committee.  Do not send this to the OSAA office.  Keep a copy for your school's records.  Allow five business days for your request to be processed.  Once a decision is made, the District Athletic Committee will notify your school.
			
		<?php endif; ?>			

		<h2>Adobe PDF</h2>
		<img src="<?php echo asset('/images/icons/pdf_64px.png'); ?>" alt="" title="" style="float: right; margin: 0 0 0 0.5em;" />
		A printable version of your form is generated as an Adobe PDF file.  You can <a href="https://en.wikipedia.org/?title=Portable_Document_Format" target="_blank">learn more</a> about the portable document format online.  Your computer will need a program that can read and display PDF files.  Most internet browsers (like Internet Explorer, Google Chrome, and Safari) have a built-in PDF extension.  You can also download a <a href="http://get.adobe.com/reader/" target="_blank">free PDF reader</a>.

		<div style="width: 100%; text-align: center; padding-top: 1.5em; position: relative;">

        	<div class="close_submitted_button">OK, show me the printable PDF</div>
        	<img src="<?php echo asset('/images/icons/waiver_action_icon_48px.png'); ?>" class="action_item" alt="" title="" style="position: absolute; left: 0; top: 0; width: 32px; height: 32px;" data-direction="left" />

        </div>

		

	<?php else: ?>

		<div style="text-align: center;"><br />No help is available for the given topic "<?php echo $topic; ?>".</div>

	<?php endif; ?>



</div>