@extends('layout.sidebar') @section('content') {{ HTML::style('packages/bootstrap-select/css/bootstrap-select.min.css') }} {{ HTML::script('packages/bootstrap-select/js/bootstrap-select.min.js') }} {{ HTML::script('packages/bootstrap-select/js/i18n/defaults-es_CL.min.js') }} @if($extracurricularActivity->exists)

Editar Extracurricular

@else

Nueva Extracurricular

@endif
{{ Form::model($extracurricularActivity,array('url' => 'extracurricularActivity/create','class'=>'form-horizontal')) }} {{ Form::hidden('id') }}
{{ Form::label('name', 'Nombre',array('class'=>'col-xs-2 control-label')) }}
{{ Form::text('name',null,array('class'=>'form-control')) }} @if ($errors->has('name'))

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

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

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

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

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

@endif
{{ Form::label('status', 'Estado',array('class'=>'col-xs-2 control-label')) }}
{{ Form::select('status',ExtracurricularActivity::$status,null,array('class'=>'form-control')) }} @if ($errors->has('status'))

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

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