<div style="font-size: 10pt; margin: 1em 0;">
	<span class="ui-icon ui-icon-info" style="display: inline-block; vertical-align: middle;"></span>
	Follow these two steps to upload a file and attach it to this waiver form.  Click the "Upload" button to upload the selected file and attach it to the waiver form.
</div>

<?php echo Form::open(array('url'    => url('/forms/eligibility/' . $object->waiver->id . '/files/upload'),
					'method' => 'POST',
					'files'  => true,
					'style'  => 'font-size: 10pt;')); ?>

	<?php echo Form::hidden('redirect', url('/forms/eligibility/' . $object->waiver->id . '/edit')); ?>

	<div style="float: left; width: 5%; color: #5c9ccc; font-size: 26pt; font-weight: bold; padding-top: 6px;">1</div>
	<div style="float: left; width: 94%;">

		<label for="file_type" style="margin-bottom: 0.25em; width: auto;">Select the File Type:</label><br />
		<select name="file_type" style="width: 100%;">

			<?php foreach ($options['file_types'] as $option): ?>
				<option value="<?php echo $option->slug; ?>" data-description="<?php echo $option->description; ?>"><?php echo $option->name; ?></option>
			<?php endforeach; ?>

		</select>
	</div>

	<br class="clear" />

	<div name="file_type_description" class="gray" style="margin: 1em 0; height: 8em; line-height: 1.25em; font-size: 9pt;"><?php echo $options['file_types'][0]->description; ?></div>

	<div style="float: left; width: 5%; color: #5c9ccc; font-size: 26pt; font-weight: bold; padding-top: 6px;">2</div>
	<div style="float: left; width: 94%;">

		<label for="upload_file" style="margin-bottom: 0.25em; width: auto;">Select the File on Your Computer to Upload:</label><br />
		<?php echo Form::file('upload_file', array('style' => 'width: 100%;')); ?><br />
	</div>

	<br class="clear" />
	
	<div class="gray" style="margin-top: 1em; line-height: 1.25em; font-size: 9pt;">Although almost any file type can be accepted, it is preferable to upload files in a commonly readable format like Adobe PDF.  The maximum file size that can be uploaded for a single file is 8 MB.  If you experience any issues, please contact OSAA Support, <a href="mailto:support@osaa.org">support@osaa.org</a>, (503) 682-6822 x228.</div>

<?php echo Form::close(); ?>

