<?php $__env->startSection('page_title'); ?>
    OSAA - Add a Team
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_sub_title'); ?>    
    Add a <?php echo Helpers::getActivityName($information['activity_program']->activity); ?> Team to <?php echo $information['activity_program']->name; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('scripts'); ?>
    @parent
	

<?php $__env->stopSection(); ?>

<?php $__env->startSection('jquery_init'); ?>
	$('.tooltip').tooltip();
	$('.button').button();	
  
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page_functions'); ?> 	

    	
<?php $__env->stopSection(); ?>


<?php $__env->startSection('main_content'); ?>    

	<h2>Add a team</h2>		

	<p>
		Select which team(s) you wish to add to this activity program.  Click <b>Add</b> when ready to create the new teams.
	</p>

	<?php echo Form::open(array('url' => url('/teams/add'), 'class' => 'addContest')); ?>

		<?php if (Session::has('errors')): ?>                
            <div class="error ui-state-error"><span class="ui-icon ui-icon-alert box_icon"></span><?php foreach ($errors->all() as $error): ?><?php echo $error; ?> <?php endforeach; ?></div>
        <?php endif; ?>
      	
      	<?php echo Form::hidden('activity_program', $information['activity_program']->id); ?>	          		          	
           
      	<h1 style="display:inline;">1</h1><div style="display:inline-block; width:25px;"></div>      	
      	<?php if ($information['activity_program']->hasTeam('V')): ?>

      		<?php echo Form::checkbox('V', true, false, array('id' => 'V', 'class' => 'button', 'disabled' => 'disabled')); ?>
		    <?php echo Form::label('V', 'Varsity', array('style' => 'font-size:10pt;', 'class' => 'tooltip ui-state-highlight', 'title' => 'A varsity team already exists.')); ?>
		    <span class="small gray note">A varsity team already exists.</span>

      	<?php else: ?>
		    
		    <?php echo Form::checkbox('V', true, false, array('id' => 'V', 'class' => 'button')); ?>
		    <?php echo Form::label('V', 'Varsity', array('style' => 'font-size:10pt;', 'class' => 'tooltip', 'title' => 'Add a varsity team.')); ?>

        <?php endif; ?>

        <br /><br />

		<h1 style="display:inline;">2</h1><div style="display:inline-block; width:25px;"></div>
        <?php if ($information['activity_program']->hasTeam('JV')): ?>

      		<?php echo Form::checkbox('JV', true, false, array('id' => 'JV', 'class' => 'button', 'disabled' => 'disabled')); ?>
		    <?php echo Form::label('JV', 'Junior Varsity', array('style' => 'font-size:10pt;', 'class' => 'tooltip ui-state-highlight', 'title' => 'A junior varsity team already exists.')); ?>
		    <span class="small gray note">A junior varsity team already exists.</span>

      	<?php else: ?>
		    
		    <?php echo Form::checkbox('JV', true, false, array('id' => 'JV', 'class' => 'button')); ?>
		    <?php echo Form::label('JV', 'Junior Varsity', array('style' => 'font-size:10pt;', 'class' => 'tooltip', 'title' => 'Add a junior varsity team.')); ?>

        <?php endif; ?>

        <br /><br />

        <h1 style="display:inline;">3</h1><div style="display:inline-block; width:25px;"></div>
        <?php if ($information['activity_program']->hasTeam('JV2')): ?>

      		<?php echo Form::checkbox('JV2', true, false, array('id' => 'JV2', 'class' => 'button', 'disabled' => 'disabled')); ?>
		    <?php echo Form::label('JV2', 'Junior Varsity 2', array('style' => 'font-size:10pt;', 'class' => 'tooltip ui-state-highlight', 'title' => 'A second junior varsity team already exists.')); ?>
		    <span class="small gray note">A second junior varsity team already exists.</span>

      	<?php else: ?>
		    
		    <?php echo Form::checkbox('JV2', true, false, array('id' => 'JV2', 'class' => 'button')); ?>
		    <?php echo Form::label('JV2', 'Junior Varsity 2', array('style' => 'font-size:10pt;', 'class' => 'tooltip', 'title' => 'Add a second junior varsity team.')); ?>

        <?php endif; ?>

        <br /><br />

        <h1 style="display:inline;">4</h1><div style="display:inline-block; width:25px;"></div>
        <?php if ($information['activity_program']->hasTeam('FR')): ?>

      		<?php echo Form::checkbox('FR', true, false, array('id' => 'FR', 'class' => 'button', 'disabled' => 'disabled')); ?>
		    <?php echo Form::label('FR', 'Freshman', array('style' => 'font-size:10pt;', 'class' => 'tooltip ui-state-highlight', 'title' => 'A freshman team already exists.')); ?>
		    <span class="small gray note">A freshman team already exists.</span>

      	<?php else: ?>
		    
		    <?php echo Form::checkbox('FR', true, false, array('id' => 'FR', 'class' => 'button')); ?>
		    <?php echo Form::label('FR', 'Freshman', array('style' => 'font-size:10pt;', 'class' => 'tooltip', 'title' => 'Add a freshman team.')); ?>

        <?php endif; ?>

        <br /><br />

        <h1 style="display:inline;">5</h1><div style="display:inline-block; width:25px;"></div>
        <?php if ($information['activity_program']->hasTeam('FR2')): ?>

      		<?php echo Form::checkbox('FR2', true, false, array('id' => 'FR2', 'class' => 'button', 'disabled' => 'disabled')); ?>
		    <?php echo Form::label('FR2', 'Freshman 2', array('style' => 'font-size:10pt;', 'class' => 'tooltip ui-state-highlight', 'title' => 'A second freshman team already exists.')); ?>
		    <span class="small gray note">A second freshman team already exists.</span>

      	<?php else: ?>
		    
		    <?php echo Form::checkbox('FR2', true, false, array('id' => 'FR2', 'class' => 'button')); ?>
		    <?php echo Form::label('FR2', 'Freshman 2', array('style' => 'font-size:10pt;', 'class' => 'tooltip', 'title' => 'Add a second freshman team.')); ?>

        <?php endif; ?>


        <?php echo Form::submit('Add', array('class' => 'float_right button', 'style' => '')); ?>

       		

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

<?php $__env->stopSection(); ?>