<div style="font-size: 11pt; padding-top: 1em;">

	<?php echo Form::open(array('url'    => url('/radio-network/schedule-broadcast'),
					    'method' => 'post',
					    'id'     => 'assign_matchup_form')); ?>

		<?php echo Form::hidden('matchup', $info['matchup']->id); ?>		

		<div style="font-weight: bold; font-size: 12pt; color:#990000;">Schedule Broadcast</div>
		<p style="font-size: 9pt;">
			Use this form to schedule this matchup to be broadcast on the OSAA Radio Network.
		</p>		

		<br />	

		<div class="columns">
			<div class="half" style="width: 70%;">

				<b><?php echo $info['contest']->division; ?> <?php echo Helpers::getActivityName($info['contest']->activity); ?> <?php echo $info['round_type']->name; ?></b>
				<div style="color: #1C43A6;"><?php echo str_replace('<br />', ' ', Helpers::formatDateTime('%RADIO_NETWORK_TIMESTAMP%', strtotime($info['event']->start_at), $info['event']->time_zone)); ?></div>
				<?php echo $info['contest']->away_team_name; ?> vs. <?php echo $info['contest']->home_team_name; ?>		
				
				<br /><br />

				<b>Audio URL</b><br />
				http://www.osaa.org/radio-network/<?php echo $info['matchup']->id; ?>
			</div>

			<div class="half" style="width: 25%;">
				<b>Updated</b><br />
				<?php if (!is_null($info['broadcast'])): ?>
					<?php echo date('n/j/y g:ia', strtotime($info['broadcast']->updated_at)); ?>
				<?php else: ?>
					- -
				<?php endif; ?>

				<br /><br />

				<b>Created</b><br />
				<?php if (!is_null($info['broadcast'])): ?>
					<?php echo date('n/j/y g:ia', strtotime($info['broadcast']->created_at)); ?>
				<?php else: ?>
					- -
				<?php endif; ?>

			</div>

		</div>

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

		<?php echo Form::label('network', 'OSAA Radio Network Station', array('style' => 'font-weight: bold;')); ?><br />				
		
		<select style="" id="network" name="network">
        	<option value="">TBD</option>
        	<?php foreach ($info['networks'] as $network): ?>
        		<?php if (!is_null($info['broadcast']) and Helpers::strEqual($info['broadcast']->network, $network->slug)): ?>
        			<option value="<?php echo $network->slug; ?>" selected="selected"><?php echo $network->name; ?></option>	
        		<?php else: ?>
        			<option value="<?php echo $network->slug; ?>"><?php echo $network->name; ?></option>
        		<?php endif; ?>
        	<?php endforeach; ?>
        </select>

        <br /><br />

        <?php echo Form::label('is_archived', 'Archive This Broadcast', array('style' => 'font-weight: bold;')); ?>
        <?php echo Form::checkbox('is_archived', true, (!is_null($info['broadcast']) and $info['broadcast']->is_archived) ? true : false, array('style' => 'vertical-align: middle;')); ?><br />
        <span class="small gray note">Select this check-box once the broadcast is over and the recording is available online.  Archiving this broadcast will remove it from the broadcast and radio network schedules and it's link will redirect to the online recording of the broadcast.</span>

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