@extends('layout.sidebar') @section('content') {{ HTML::style('packages/bootstrap-select/css/bootstrap-select.min.css') }} {{ HTML::style('packages/lou-multi-select/css/multi-select.css') }} {{ HTML::script('packages/bootstrap-select/js/bootstrap-select.min.js') }} {{ HTML::script('packages/bootstrap-select/js/i18n/defaults-es_CL.min.js') }} {{ HTML::script('packages/lou-multi-select/js/jquery.multi-select.js') }}

{{ $groupActivity->extracurricularActivity->name . ' - ' . $groupActivity->extracurricularGroup->name }}


{{ Form::model($groupActivity,array('url' => 'extracurricularActivity/group-activity-create','class'=>'form-horizontal')) }} {{ Form::hidden('id') }}
{{ Form::label('start_date', 'Fecha de Inicio',array('class'=>'col-xs-2 control-label')) }}
{{ Form::text('start_date',null,array('class'=>'form-control')) }}
@if ($errors->has('start_date'))

{{ $errors->first('start_date') }}

@endif
{{ Form::label('end_date', 'Fecha de Fin',array('class'=>'col-xs-2 control-label')) }}
{{ Form::text('end_date',null,array('class'=>'form-control')) }}
@if ($errors->has('end_date'))

{{ $errors->first('end_date') }}

@endif
{{ Form::label('location', 'Ubicación',array('class'=>'col-xs-2 control-label')) }}
{{ Form::text('location',null,array('class'=>'form-control')) }}
{{ Form::label('activity_type', 'Tipo',array('class'=>'col-xs-2 control-label')) }}
{{ Form::select('activity_type',GroupExtracurricularActivity::$types,null,array('class'=>'form-control')) }}
{{ Form::label('quota', 'Cupo',array('class'=>'col-xs-2 control-label')) }}
{{ Form::text('quota',null,array('class'=>'form-control')) }} {{ Form::hidden('old_quota',$groupActivity->quota,array('class'=>'form-control')) }} @if ($errors->has('quota'))

{{ $errors->first('quota') }}

@endif
{{ Form::label('days', 'Dias',array('class'=>'col-xs-2 control-label')) }}
{{ Form::select('days',$days,$selectedDays,array('class'=>'form-control','multiple'=>'multiple','name'=>'days[]')) }} @if ($errors->has('days'))

{{ $errors->first('days') }}

@endif
{{ Form::label('serial_emp', 'Profesor',array('class'=>'col-xs-2 control-label')) }}
{{ Form::select('serial_emp',$teachers,null,array('class'=>'form-control')) }}
{{ Form::label('serial_scy','Año Lectivo',array('class'=>'col-xs-2 control-label')) }}

{{ $levelSectionYears[0]->schoolYear->name_scy }}

{{ Form::label('levels', 'Niveles',array('class'=>'col-xs-2 control-label')) }}
{{ Form::hidden('serial_scy',$levelSectionYears[0]->serial_scy) }} {{ Form::hidden('serial_set',$levelSectionYears[0]->serial_set) }} {{ Form::select('levels',$levels,$selectedLevels,array('class'=>'form-control','multiple'=>'multiple','name'=>'levels[]')) }} @if ($errors->has('levels'))

{{ $errors->first('levels') }}

@endif
{{ link_to_action('ExtracurricularActivityController@getGroupActivityIndex', 'Atrás', null, array('class' => 'btn btn-default')) }} {{ Form::submit('Guardar',array('class' => 'btn btn-primary')); }}
{{ Form::close() }} @stop()