@extends('layouts.backBase') @section('css') {!! HTML::style('//cdn.datatables.net/1.10.11/css/jquery.dataTables.min.css') !!} {!! HTML::style('css/back/panel.css') !!} {!! HTML::style('css/back/dataTable.css') !!} @stop @section('body') {!! HTML::script('js/back/custom.js') !!} @stop @section('content')

Editar Proyecto: {{ $proj->getTitle() }}


Datos Nuevos

{!! Form::open(array('route'=>'panel/social/project/editPost', 'method'=>'POST', 'files'=>true)) !!}
{!! Form::hidden('id', $proj->getId()) !!}
{!! Form::label('year', 'Año', ['class' => 'control-label'] ) !!} {!! Form::number('year', $proj->getYear(), ['class' => 'form-control']) !!}
{!! Form::label('category', 'Categoría', ['class' => 'control-label'] ) !!} {!! Form::select('category', $catList ,$proj->getIdProjectCategory()->getId(), ['class' => 'form-control', 'placeholder' => 'Seleccione una...'] ) !!} {!! Form::hidden('active', $proj->getActive()) !!}

@if ( $proj->getActive() ) @else @endif
{!! Form::label('title', 'Nombre', ['class' => 'control-label'] ) !!} {!! Form::text('title', $proj->getTitle(), ['class' => 'form-control']) !!}
{!! Form::label('alias', 'Alias', ['class' => 'control-label'] ) !!} {!! Form::text('alias', $proj->getAlias(), ['class' => 'form-control','readonly']) !!}

{!! Form::label('description', 'Descripción', ['class' => 'control-label'] ) !!} {!! Form::textarea('description', $proj->getDescription(), ['class' => 'form-control ckeditor'] ) !!}

{!! Form::label('fundersTable', 'Búsqueda de Financiadores', ['class' => 'control-label'] ) !!} @foreach ($funderList as $funder) @endforeach
Seleccione Nombre Imagen
@if( $funderCheckedIdCollection->has($funder->getId()) ) {!! Form::checkbox('funders[]', $funder->getId(), true ,['class' => 'checkFunder']) !!} @else {!! Form::checkbox('funders[]', $funder->getId(), false ,['class' => 'checkFunder']) !!} @endif {{ $funder->getName() }} @if ( $funder->getImage() ) @else Sin foto @endif
{!! Form::label('locationsTable', 'Búsqueda de Financiadores', ['class' => 'control-label'] ) !!} @foreach ($locList as $loc) @endforeach
Seleccione Nombre Imagen
@if( $locationCheckedIdCollection->has($loc->getId()) ) {!! Form::checkbox('locations[]', $loc->getId(), true ,['class' => 'checkLocation']) !!} @else {!! Form::checkbox('locations[]', $loc->getId(), false ,['class' => 'checkLocation']) !!} @endif {{ $loc->getName() }} @if ( $loc->getImage() ) @else Sin foto @endif

{!! Form::label('fundersSelected', 'Financiadores seleccionados', ['class' => 'control-label'] ) !!}
{!! Form::label('locationsSelected', 'Lugares seleccionados', ['class' => 'control-label'] ) !!}

{!! Form::label('overallObjective', 'Objectivo General', ['class' => 'control-label'] ) !!} {!! Form::textarea('overallObjective', $proj->getOverallObjective(), ['class' => 'form-control ckeditor'] ) !!}
{!! Form::label('specificObjective', 'Objectivo Específico', ['class' => 'control-label'] ) !!} {!! Form::textarea('specificObjective', $proj->getSpecificObjective(), ['class' => 'form-control ckeditor'] ) !!}

{!! Form::label('result', 'Resultados', ['class' => 'control-label'] ) !!} {!! Form::textarea('result', $proj->getResult(), ['class' => 'form-control ckeditor'] ) !!}
{!! Form::submit('Guardar',['class' => 'btn btn-default']) !!} {!! Form::close() !!}
@stop @section('scripts') {!! Minify::javascript('/js/back/form.js')->withFullUrl() !!} {!! HTML::script('//cdn.datatables.net/1.10.11/js/jquery.dataTables.min.js') !!} @stop