<div style="float: right; font-size: 9pt; font-family: monospace; line-height: 105%;">
	Form ID: <?php echo $info['form']->id; ?>
</div>

<div style="color: #1c43a6; font-size: 13pt; margin: 0.25em 0 0.5em 0; padding-bottom: 2px; border-bottom: 1px solid #1c43a6; width: 100%; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; display: block; font-weight: bold;"><?php echo $info['ap']->name; ?></div>

<div style="float: right; font-size: 11pt; color: #7d7b7d;">
	<?php if (Helpers::strEqual($info['data']->qualification, 'AUTO')): ?>
		<img src="<?php echo asset('/images/icons/automatic_qualifier_16px.png'); ?>" alt="" title="" style="vertical-align: middle;" /> Automatic
	<?php elseif (Helpers::strEqual($info['data']->qualification, 'TAPE')): ?>
		<img src="<?php echo asset('/images/icons/tape_pool_qualifier_16px.png'); ?>" alt="" title="" style="vertical-align: middle;" /> Tape Pool
	<?php else: ?>
		<img src="<?php echo asset('/images/icons/not_selected_16px.png'); ?>" alt="" title="" style="vertical-align: middle;" /> Not a
	<?php endif; ?>
	Qualifier
</div>

<div style="color: #990000; font-size: 11pt; margin: 0; font-weight: bold;"><?php echo ucwords(str_replace('-', ' ', str_replace('concert', '', $info['form']->category))); ?></div>

<br />

<div style="float: right; font-size: 10pt; width: 250px; height: 14em;">
	<b>Registration Status</b><br />

	<?php if ($info['data']->complete): ?>
		<img src="<?php echo asset('/images/icons/finished_16px.png'); ?>" alt="" title="" style="vertical-align: middle; margin-right: 4px;" />
		Complete
	<?php elseif ($info['data']->items->form): ?>
		<img src="<?php echo asset('/images/icons/pending_16px.png'); ?>" alt="" title="" style="vertical-align: middle; margin-right: 4px;" />
		Pending Additional Materials
	<?php else: ?>
		<img src="<?php echo asset('/images/icons/never_started_16px.png'); ?>" alt="" title="" style="vertical-align: middle; margin-right: 4px;" />
		Incomplete
	<?php endif; ?>

	<div style="height: 0.5em;"></div>

	<?php if ($info['data']->selected): ?>
		<img src="<?php echo asset('/images/icons/check_mark_16px.png'); ?>" alt="" title="" style="vertical-align: middle; margin-right: 4px;" />
		Selected for State
	<?php else: ?>	
		<img src="<?php echo asset('/images/icons/not_selected_16px.png'); ?>" alt="" title="" style="vertical-align: middle; margin-right: 4px;" />
		Not Selected for State
	<?php endif; ?>

	<br /><br />

	<b>Director Information</b><br />

	<?php echo $info['data']->director->name; ?><br />
	<a href="mailto:<?php echo $info['data']->director->email; ?>"><?php echo $info['data']->director->email; ?></a><br />
	<?php echo Helpers::displayCombinedPhone($info['data']->director->phone); ?>

	
</div>

<div style="font-size: 10pt;">

	<?php echo Form::open(array('url'    => url('/forms/music/registration/' . $info['form']->id . '/edit'),
					    'method' => 'post')); ?>

		<?php echo Form::hidden('form_id', $info['form']->id); ?>
		<?php echo Form::hidden('required_items', json_encode($info['required_items'])); ?>

		<?php
			$items = array('form'   => 'Registration Form',
						   'scores' => 'Adjudicator Scores',
						   'roster' => 'Class Roster',
						   'music'  => 'Sheet Music',
						   'tape'   => 'Recording');
		?>

		<?php foreach ($items as $item => $title): ?>
			
			<?php

				$options = array('false' => (object)array('value' => '0', 'checked' => null),
								 'na'    => (object)array('value' => 'NA', 'checked' => null),
								 'true'  => (object)array('value' => '1', 'checked' => null));

				if (!in_array(strtoupper($item), $info['required_items']))
				{
					$options['na']->checked = 'checked="checked"';
				}
				else
				{
					if ($info['data']->items->{$item})
					{
						$options['true']->checked = 'checked="checked"';
					}
					else
					{
						$options['false']->checked = 'checked="checked"';
					}
				}
			?>

			<div style="width: 150px; display: inline-block; font-weight: bold;" <?php if (!is_null($options['na']->checked) or Helpers::strEqual($item, 'form')): ?> data-title-disabled="disabled"<?php endif; ?>><?php echo $title; ?></div>
		
			<div data-buttonset="true" style="float: right; margin-right: 75px;" <?php if (!is_null($options['na']->checked) or Helpers::strEqual($item, 'form')): ?> data-buttonset-disabled="disabled"<?php endif; ?>>
				<?php foreach ($options as $option => $opt_obj): ?>
					<input type="radio" id="<?php echo $item; ?>_<?php echo $option; ?>" name="<?php echo $item; ?>" value="<?php echo $opt_obj->value; ?>" <?php echo $opt_obj->checked; ?> /><label for="<?php echo $item; ?>_<?php echo $option; ?>"></label>
	    		<?php endforeach; ?>	    		
			</div>

			<br /><br />
		<?php endforeach; ?>

		<?php echo Form::label('email', 'Send e-mail confirmation on save', array('style' => 'margin-left: 5px;')); ?>
		<?php echo Form::checkbox('email', true, true, array('style' => 'float: left; position: relative; top: 2px;')); ?>
		
	<?php echo Form::close(); ?>
</div>