<div style="font-size: 12pt; line-height: 12pt; color: #1C43A6; font-weight: bold; margin-bottom: 0.5em;">
	<?php echo Helpers::getLevelName($info['ap_staff']->level); ?> <?php echo $info['ap_staff']->getDisplayRole(); ?>
</div>
<div style="font-size: 10pt; line-height: 10pt; font-weight: bold; color: #555555; margin-bottom: 1em;">
	<?php echo $info['ap']->name; ?>	<?php echo Helpers::getActivityName($info['ap']->activity); ?>
</div>


<p style="font-size: 10pt; line-height: 10pt;">
	<b>Instructions:</b> Use this form to edit <?php echo (!Helpers::strIsEmpty($info['staff']->getDisplayName())) ? $info['staff']->getDisplayName() . "'s" : 'this'; ?> contact information.
	<br /><br />
	Changing this contact name is not allowed in order to preserve accurate tracking of completed training courses.  To merge this contact information with another individual's or to correct a spelling error for this person's name, contact <?php echo Helpers::obfuscateEmailLink('support@osaa.org'); ?>.
	<br /><br />
	Click <b>Replace this Person</b> to remove this individual in order to replace him/her with a new staff contact.  This will retire <?php echo (!Helpers::strIsEmpty($info['staff']->getDisplayName())) ? $info['staff']->getDisplayName() . "'s" : 'this'; ?> staff contact which will allow you to input a new person's information later.	
</p>

<br />

<?php echo Form::open(array('url' => '/schools/activity-staff/' . $info['staff']->id . '/edit', 'style' => 'font-size: 10pt; line-height: 10pt;')); ?>

	<?php echo Form::hidden('staff_id', $info['staff']->id); ?>
	<?php echo Form::hidden('ap_staff_id', $info['ap_staff']->id); ?>
	<?php echo Form::hidden('school_id', $info['school']->id); ?>

	<div style="float: left;">
		<?php echo Form::label('name_prefix', 'Prefix', array('style' => 'font-weight: bold; font-size: 8pt;')); ?> <span class="small gray" style="position: absolute;">(i.e. "Dr.")</span><br />
		<?php if (!Auth::user()->isOsaaUser() and !Helpers::strIsEmpty($info['staff']->name_prefix)): ?>
			<?php echo Form::text('name_prefix', $info['staff']->name_prefix, array('style' => 'width: 90px; color: #7d7b7d;', 'readonly' => 'readonly')); ?>
		<?php else: ?>
			<?php echo Form::text('name_prefix', $info['staff']->name_prefix, array('style' => 'width: 90px;')); ?>
		<?php endif; ?>
	</div>

	<div style="float: left; margin-left: 20px;">
		<?php echo Form::label('first_name', 'First Name', array('style' => 'font-weight: bold; font-size: 8pt;')); ?><br />
		<?php if (!Auth::user()->isOsaaUser() and !Helpers::strIsEmpty($info['staff']->first_name)): ?>
			<?php echo Form::text('first_name', $info['staff']->first_name, array('style' => 'width: 120px; color: #7d7b7d;', 'readonly' => 'readonly')); ?>
		<?php else: ?>
			<?php echo Form::text('first_name', $info['staff']->first_name, array('style' => 'width: 120px;')); ?>
		<?php endif; ?>
	</div>

	<div style="float: left; margin-left: 20px;">
		<?php echo Form::label('middle_name', 'Middle Name', array('style' => 'font-weight: bold; font-size: 8pt;')); ?><br />
		<?php if (!Auth::user()->isOsaaUser() and !Helpers::strIsEmpty($info['staff']->middle_name)): ?>
			<?php echo Form::text('middle_name', $info['staff']->middle_name, array('style' => 'width: 90px; color: #7d7b7d;', 'readonly' => 'readonly')); ?>
		<?php else: ?>
			<?php echo Form::text('middle_name', $info['staff']->middle_name, array('style' => 'width: 90px;')); ?>
		<?php endif; ?>
	</div>

	<div style="float: left; margin-left: 20px;">
		<?php echo Form::label('last_name', 'Last Name', array('style' => 'font-weight: bold; font-size: 8pt;')); ?><br />
		<?php if (!Auth::user()->isOsaaUser() and !Helpers::strIsEmpty($info['staff']->last_name)): ?>
			<?php echo Form::text('last_name', $info['staff']->last_name, array('style' => 'width: 120px; color: #7d7b7d;', 'readonly' => 'readonly')); ?>
		<?php else: ?>
			<?php echo Form::text('last_name', $info['staff']->last_name, array('style' => 'width: 120px;')); ?>
		<?php endif; ?>
	</div>

	<div style="float: left; margin-left: 20px;">
		<?php echo Form::label('name_suffix', 'Suffix', array('style' => 'font-weight: bold; font-size: 8pt;')); ?> <span class="small gray" style="position: absolute;">(i.e. "III")</span><br />
		<?php if (!Auth::user()->isOsaaUser() and !Helpers::strIsEmpty($info['staff']->name_suffix)): ?>
			<?php echo Form::text('name_suffix', $info['staff']->name_suffix, array('style' => 'width: 90px; color: #7d7b7d;', 'readonly' => 'readonly')); ?>
		<?php else: ?>
			<?php echo Form::text('name_suffix', $info['staff']->name_suffix, array('style' => 'width: 90px;')); ?>
		<?php endif; ?>
	</div>

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

	<div style="float: left;">
		<?php echo Form::label('role', 'Role', array('style' => 'font-weight: bold; font-size: 8pt;')); ?><br />
		<?php echo Form::select('role', $info['roles'], $info['ap_staff']->role, array('style' => '')); ?>
	</div>

	<div style="float: left; margin-left: 20px;">
		<?php echo Form::label('level', 'Level', array('style' => 'font-weight: bold; font-size: 8pt;')); ?><br />
		<?php echo Form::select('level', $info['levels'], $info['ap_staff']->level, array('style' => '')); ?>
	</div>

	<div style="float: left; margin-left: 20px;">
		<?php echo Form::label('staff_type', 'Staff Type', array('style' => 'font-weight: bold; font-size: 8pt;')); ?><br />
		<?php echo Form::select('staff_type', $info['staff_types'], $info['staff']->staff_type, array('style' => '')); ?>
	</div>

	<div style="float: left; margin-left: 20px;">
		<?php echo Form::label('is_on_rosters', 'Shown on Rosters?', array('style' => 'font-weight: bold; font-size: 8pt;')); ?><br />		
		<?php echo Form::select('is_on_rosters', array(0 => 'No', 1 => 'Yes'), $info['ap_staff']->is_on_rosters, array('style' => '')); ?>		
	</div>

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

	<div style="float: left;">
		<?php echo Form::label('email', 'Email Address', array('style' => 'font-weight: bold; font-size: 8pt;')); ?><br />
		<?php echo Form::text('email', $info['staff']->email, array('style' => 'width: 250px;')); ?><br />

		<?php echo Form::label('is_email_public', 'Email address is public:', array('style' => 'font-size: 8pt;')); ?>
		<?php echo Form::checkbox('is_email_public', 1, $info['ap_staff']->is_email_public, array('style' => 'vertical-align: middle;')); ?>

	</div>

	<div style="float: left; margin-left: 20px;">
		<?php echo Form::label('work_phone', 'Work Phone Number', array('style' => 'font-weight: bold;')); ?><br />
		<?php echo Form::text('work_phone', Helpers::displayCombinedPhone($info['staff']->work_phone), array('style' => 'width: 135px;')); ?><br />

		<?php echo Form::label('is_work_phone_public', 'Phone is public:', array('style' => 'font-size: 8pt; margin-top: 0.5em;')); ?>
		<?php echo Form::checkbox('is_work_phone_public', 1, $info['ap_staff']->is_work_phone_public, array('style' => 'vertical-align: middle;')); ?>

	</div>

	<div style="float: left; margin-left: 20px;">
		<?php echo Form::label('mobile_phone', 'Mobile Phone Number', array('style' => 'font-weight: bold; font-size: 8pt;')); ?><br />
		<?php echo Form::text('mobile_phone', Helpers::displayCombinedPhone($info['staff']->mobile_phone), array('style' => 'width: 135px;')); ?><br />

		<span style="font-size: 8pt;">Mobile phone is never public</span>
	</div>

	<?php if (Auth::check() and Auth::user()->isOsaaUser()): ?>

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

		<div style="float: left; width: 30%;">
			School Staff ID #: <?php echo $info['staff']->id; ?><br />
			AP Staff ID #: <?php echo $info['ap_staff']->id; ?>
		</div>

		<div style="float: left; width: 30%;">			
			Created: <?php echo date('n/j/Y g:ia', strtotime($info['staff']->created_at)); ?><br />
			Updated: <?php echo date('n/j/Y g:ia', strtotime($info['staff']->updated_at)); ?>
		</div>

		<div style="float: left; width: 30%;">			
			Modifier: <?php echo $info['updated_by']; ?>
		</div>

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

		<div style="float: left;">
			<?php echo Form::label('staff_notes', 'OSAA Staff Notes', array('style' => 'font-weight: bold; font-size: 8pt;')); ?> <span class="small gray" style="position: absolute;">(only visible to OSAA staff)</span><br />
			<?php echo Form::textarea('staff_notes', $info['staff']->staff_notes, array('style' => 'width: 650px; height: 3em;')); ?>
		</div>

	<?php endif; ?>

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