<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 edit this group's information.  Click the "Save" button when finished.
</div>

<?php echo Form::open(array('url'    => url('/forms/music/large-ensemble/' . $info['form']->id . '/edit-group'),
					'method' => 'POST',
					'style'  => 'font-size: 10pt;')); ?>

	<?php echo Form::hidden('redirect', url('/forms/music/large-ensemble/' . $info['form']->id . '')); ?>
	<?php echo Form::hidden('form_id', $info['form']->id); ?>
	<?php echo Form::hidden('index', $info['index']); ?>

	<?php echo Form::label('ap_id', 'School', array('style' => 'width: 100px;')); ?>
	<?php echo Form::select('ap_id', $info['ap_options'], $info['group']->id, array('style' => 'width: 300px;')); ?>
	
	<div class="small gray" style="margin: 0.5em 0 0 125px; line-height: 125%;">
		<span class="ui-icon ui-icon-pin-s" style="display: inline-block; vertical-align: middle; float: left; margin-right: 5px;"></span>
		Only schools offering <?php echo strtolower(Helpers::getActivityName($info['form']->activity)); ?> are included on this list.  If a school is not listed, contact<br /> 		
		<?php if (Helpers::strEqual($info['form']->activity, array('CHO'))): ?>
			Kelly Foster, OSAA Associate Director, at (503) 682-6722 x233.
		<?php elseif (Helpers::strEqual($info['form']->activity, array('BND', 'ORC'))): ?>
			Cindy Simmons, OSAA Assistant Executive Director, at (503) 682-6722 x227.
		<?php else: ?>
			OSAA Support, (503) 682-6722 x228.
		<?php endif; ?>		
	</div>

	<br class="clear" />

	<?php /*
	<?php echo Form::label('is_league_contest', 'In League', array('style' => 'width: 100px;')); ?>
	<?php
		$is_league_contest_value = false;
		$is_league_contest_help = 'This event serves as this school\'s league contest.';

		if (Helpers::strEqual($info['form']->event_type, array('OSAA League')))
		{
			$is_league_contest_value = true;			
			$is_league_contest_help = 'This school is in the ' . $info['league_name'] . '.';
		}
	?>

	<?php echo Form::checkbox('is_league_contest', true, $is_league_contest_value, array('style' => 'vertical-align: middle;')); ?>
	<span class="small gray" style="margin-left: 25px;">
		<span class="ui-icon ui-icon-info" style="display: inline-block; vertical-align: middle;"></span>
		<?php echo $is_league_contest_help; ?>
	</span>

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

	<?php if (Helpers::strEqual($info['form']->activity, array('ORC'))): ?>

		<?php echo Form::label('full_orchestra', 'Full Orchestra', array('style' => 'width: 100px;')); ?>
		<?php echo Form::checkbox('full_orchestra', true, $info['group']->is_full_orchestra, array('style' => 'vertical-align: middle;')); ?>

		<span class="small gray" style="margin-left: 25px;">
			<span class="ui-icon ui-icon-info" style="display: inline-block; vertical-align: middle;"></span>
			Is this group a full orchestra?  Leave unchecked for string orchestras.
		</span>

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

	<?php endif; ?>


	<?php echo Form::label('director', 'Director Name', array('style' => 'width: 100px;')); ?>
	<?php echo Form::text('director', $info['group']->director, array('style' => 'width: 150px;', 'data-placeholder' => 'First Last')); ?>

	<?php echo Form::label('director_email', 'Director E-Mail', array('style' => 'width: 115px;')); ?>
	<?php echo Form::text('director_email', $info['group']->director_email, array('style' => 'width: 200px;', 'data-placeholder' => 'email@domain.com')); ?>

	<br /><br />

	<?php if (Helpers::strEqual($info['form']->activity, array('ORC'))): ?>		
		<?php echo Form::hidden('required_selection', true); ?>
	<?php else: ?>
		<?php echo Form::label('required_selection', 'Required/Approved Selection Confirmed', array('style' => 'width: auto;')); ?>
		<?php echo Form::checkbox('required_selection', true, $info['group']->is_required_selection, array('style' => 'vertical-align: middle;')); ?>
	<?php endif; ?>

	<br /><br />

	<?php echo Form::label('time', 'Duration', array('style' => 'width: 100px;')); ?>
	<?php echo Form::text('time', $info['group']->time, array('style' => 'width: 75px;')); ?>

	<span class="small gray" style="margin-left: 25px;">
		<span class="ui-icon ui-icon-info" style="display: inline-block; vertical-align: middle;"></span>
		List the actual performance duration using "MM:SS" format.
	</span>

	<br class="clear" /><br />
	
	<div class="label" style="width: 100px;">Scores</div>

	
	<?php echo Form::text('score_1', $info['group']->score_1, array('data-placeholder' => '##', 'data-numbers-only' => 'integer', 'maxlength' => '3', 'style' => 'width: 50px;')); ?>
	<?php echo Form::text('score_2', $info['group']->score_2, array('data-placeholder' => '##', 'data-numbers-only' => 'integer', 'maxlength' => '3', 'style' => 'width: 50px; margin-left: 50px;')); ?>
	<?php echo Form::text('score_3', $info['group']->score_3, array('data-placeholder' => '##', 'data-numbers-only' => 'integer', 'maxlength' => '3', 'style' => 'width: 50px; margin-left: 50px;')); ?>
	<?php echo Form::text('score_4', $info['group']->score_4, array('data-placeholder' => '##', 'data-numbers-only' => 'integer', 'maxlength' => '3', 'style' => 'width: 50px; margin-left: 50px;')); ?>
	<?php echo Form::text('score_sr', $info['group']->score_sr, array('data-placeholder' => '##', 'data-numbers-only' => 'integer', 'maxlength' => '3', 'style' => 'width: 50px; margin-left: 50px;')); ?>

	<div style="position: relative; overflow: hidden; height: 3em;">
		<div class="small gray" style="width: 90px; text-align: center; line-height: 125%;" data-position="true" data-position-my="center center" data-position-at="center bottom+20" data-position-of="input[name='score_1']">Adjudicator #1 Score</div>

		<div class="small gray" style="width: 90px; text-align: center; line-height: 125%;" data-position="true" data-position-my="center center" data-position-at="center bottom+20" data-position-of="input[name='score_2']">Adjudicator #2 Score</div>

		<div class="small gray" style="width: 90px; text-align: center; line-height: 125%;" data-position="true" data-position-my="center center" data-position-at="center bottom+20" data-position-of="input[name='score_3']">Adjudicator #3 Score</div>

		<div class="small gray" style="width: 90px; text-align: center; line-height: 125%;" data-position="true" data-position-my="center center" data-position-at="center bottom+20" data-position-of="input[name='score_4']">Adjudicator #4 Score</div>

		<div class="small gray" style="width: 90px; text-align: center; line-height: 125%;" data-position="true" data-position-my="center center" data-position-at="center bottom+20" data-position-of="input[name='score_sr']">Sight-Reading Score</div>
	</div>

	<br class="clear" />

	<b>Notes</b><br />
	<?php echo Form::textarea('notes', (property_exists($info['group'], 'notes')) ? $info['group']->notes : null, array('style' => 'width: 92%; height: 3em;')); ?>
	
<?php echo Form::close(); ?>

