<div style="font-size: 10pt; margin: 1em 0;">
	<span class="ui-icon ui-icon-info" style="display: inline-block; vertical-align: middle;"></span>
	Use this utility to upload and attach a file to this online ejection report.
</div>

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

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

	
	<?php if (!is_null($object->data->files->{ strtolower($type) }->path)): ?>

		<div class="ui-state-error" style="padding: 0.5em;">
			<b>Note:</b> If you upload a new file, the
			<a href="<?php echo url('forms/ejection/' . $object->ejection->id . '/file/' . strtolower($type)); ?>" target="_blank" style="text-decoration: underline;">existing file</a>
			will be overwritten.
		</div>

		<br />

	<?php endif; ?>


	<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 />
	

	<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.  If you need to upload multiple files, many documents can be merged into a single PDF file or you can upload a ZIP archive.
	<br /><br />
	The maximum file size is 8 MB.
	<br /><br />
	If you experience any issues, please contact OSAA Support, <a href="mailto:support@osaa.org">support@osaa.org</a>,<br /> (503) 682-6822 x228.</div>

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

