<div style="font-size: 12pt; line-height: 12pt; color: #1C43A6; font-weight: bold; margin-bottom: 0.5em;">
	<?php echo $info['training_course']->name; ?>
</div>

<img src="<?php echo asset($info['training_course']->icon_file_path); ?>" class="float_right" title="" alt="" />

<div style="font-size: 10pt; line-height: 10pt; font-weight: bold; color: #555555; margin-bottom: 1em;">	
	<?php if (!$info['training_course']->is_ad_requirement and !$info['training_course']->is_coach_requirement and !$info['training_course']->is_spirit_requirement): ?>
		Optional Training Course
	<?php else: ?>
		<?php echo str_replace('Once', 'One-Time-Only', $info['training_course']->frequency); ?> Requirement for

		<?php if	($info['training_course']->is_ad_requirement): ?>
			Athletic Directors and
		<?php endif; ?>
		<?php if (!$info['training_course']->is_spirit_requirement): ?>
			Coaches
		<?php else: ?>
			Cheerleading &amp; Dance/Drill Coaches
		<?php endif; ?>
	<?php endif; ?>
</div>

<p style="font-size: 10pt; line-height: 10pt;">
	<b>Description:</b> <?php echo $info['training_course']->description; ?>
	<?php if (!is_null($info['training_course']->required_by)): ?>
		Required by <?php echo $info['training_course']->required_by; ?>.
	<?php endif; ?>
	<br /><br />
	<b>Instructions:</b> Use this form to update <?php echo $info['school_staff']->getDisplayName(); ?>'s <?php echo $info['training_course']->short_name; ?> Training certification.
</p>

<div style="clear: both; color: #990000; font-size: 11pt; font-weight: bold; margin-top: 1em;">
	<?php if (is_null($info['course_record'])): ?>
		<div class="float_right">No Certification on File</div>
	<?php else: ?>
		<div class="float_right" style="color: #7d7b7d; font-size: 10pt; font-weight: normal;">
			Updated <?php echo date('n/j/Y g:i a', strtotime($info['course_record']->updated_at)); ?>
		</div>
	<?php endif; ?>

	<?php echo $info['school_staff']->getDisplayName(); ?>
</div>

<br />

<?php echo Form::open(array('url' => '/schools/course-records/edit', 'style' => 'font-size: 10pt; line-height: 10pt;')); ?>

	<?php echo Form::hidden('training_course_id', $info['training_course']->id); ?>
	<?php echo Form::hidden('staff_id', $info['school_staff']->id); ?>

	<?php if (!is_null($info['course_record'])): ?>
		<?php echo Form::hidden('course_record_id', $info['course_record']->id); ?>
	<?php endif; ?>		

	<div style="float: left;">
		<?php echo Form::label('other_name', 'Other Name', array('style' => 'font-weight: bold; font-size: 8pt;')); ?> <span class="small gray" style="position: absolute;">(e.g. maiden name)</span><br />
		<?php echo Form::text('other_name', (!is_null($info['course_record'])) ? $info['course_record']->other_name : null, array('style' => 'width: 175px;')); ?>
	</div>
	
	<div style="float: left; margin-left: 20px;">
		<?php echo Form::label('location', 'Training Location', array('style' => 'font-weight: bold; font-size: 8pt;')); ?><br />
		<?php if (!is_null($info['training_location'])): ?>
			<?php echo Form::text('location', $info['training_location'], array('style' => 'width: 110px; color: #7d7b7d;', 'readonly' => 'readonly')); ?>
		<?php else: ?>
			<?php echo Form::text('location', (!is_null($info['course_record'])) ? $info['course_record']->location : null, array('style' => 'width: 110px;')); ?>
		<?php endif; ?>
	</div>	

	<div style="float: left; margin-left: 20px;">
		<?php echo Form::label('completion_date', 'Completion Date*', array('style' => 'font-weight: bold; font-size: 8pt;')); ?><br />
		<?php echo Form::text('completion_date', (!is_null($info['course_record'])) ? date('n/j/Y', strtotime($info['course_record']->completion_date)) : null, array('style' => 'width: 100px;', 'data-datepicker' => 'true')); ?>		
	</div>	

	<div style="float: left; margin-left: 20px;">
		<?php echo Form::label('completion_code', 'Certification Code', array('style' => 'font-weight: bold; font-size: 8pt;')); ?> <span class="small gray" style="position: absolute;">(i.e. Cert. ID #)</span><br />
		<?php echo Form::text('completion_code', (!is_null($info['course_record'])) ? $info['course_record']->completion_code : null, array('style' => 'width: 200px;')); ?>		
	</div>
	
	<br class="clear" /><br />	

	<div style="float: left;">
		<?php echo Form::label('notes', 'Notes/Comments', array('style' => 'font-weight: bold; font-size: 8pt;')); ?><br />
		<?php echo Form::textarea('notes', (!is_null($info['course_record'])) ? $info['course_record']->notes : null, array('style' => 'width: 660px; height: 3em;')); ?>
	</div>	

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

	<span class="ui-icon ui-icon-alert box_icon"></span><b>* Note:</b> A date is required in MM/DD/YYYY format for the <b>Completion Date</b> field.  Even if an exact date is unknown, using a properly formatted date will help the system track this certification's status and expiration.

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