@extends('layouts.master') @section('css') {!! Html::style('css/jquery_ui.css')!!} {!! Html::style('css/datepicker.css')!!} @stop @section('content') @if(Session::has('message_error'))
{!! Session::get('message_error') !!}
@endif @if(Session::has('message_success'))
{!! Session::get('message_success') !!}
@endif {!! Form::open(array('url'=>'datos/actualizarperiodo','class'=>'formulario'))!!}{!! csrf_field() !!}
{!! Form::text('periodo_id', $datos->id , $attributes = array('class' => 'form-control', 'id'=>'periodo_id','readOnly'=>'readOnly'))!!}
@if($errors->has('período')) {!! $errors->first('período') !!} @else {!! " " !!} @endif
{!! Form::text('descripcion', $datos->descripcion , $attributes = array('class' => 'form-control mayuscula', 'id'=>'descripcion','placeholder'=>'2018-II'))!!}
@if($errors->has('descripción')) {!! $errors->first('descripción') !!} @else {!! " " !!} @endif
{!! Form::text('anio', $datos->anio , $attributes = array('class' => 'form-control', 'id'=>'anio','readOnly'=>'readOnly'))!!}
@if($errors->has('año')) {!! $errors->first('año') !!} @else {!! " " !!} @endif
{!! Form::text('i_periodo', date_format(date_create($datos->i_periodo),'d-m-Y') , $attributes = array('class' => 'form-control', 'id'=>'i_periodo','placeholder'=>'00-00-0000', 'readonly'=>'readonly'))!!}
@if($errors->has('fecha de inicio')) {!! $errors->first('fecha de inicio') !!} @else {!! " " !!} @endif
{!! Form::text('f_periodo', date_format(date_create($datos->f_periodo),'d-m-Y') , $attributes = array('class' => 'form-control', 'id'=>'f_periodo','placeholder'=>'00-00-0000', 'readonly'=>'readonly'))!!}
@if($errors->has('fecha de culminación')) {!! $errors->first('fecha de culminación') !!} @else {!! " " !!} @endif
{!! Form::text('i_inscripciones', date_format(date_create($datos->i_inscripciones),'d-m-Y') , $attributes = array('class' => 'form-control', 'id'=>'i_inscripciones','placeholder'=>'00-00-0000', 'readonly'=>'readonly'))!!}
@if($errors->has('fecha de inicio inscripciones')) {!! $errors->first('fecha de inicio inscripciones') !!} @else {!! " " !!} @endif
{!! Form::text('f_inscripciones', date_format(date_create($datos->f_inscripciones),'d-m-Y') , $attributes = array('class' => 'form-control', 'id'=>'f_inscripciones','placeholder'=>'00-00-0000', 'readonly'=>'readonly'))!!}
@if($errors->has('fecha de culminación inscripciones')) {!! $errors->first('fecha de culminación inscripciones') !!} @else {!! " " !!} @endif
{!! Form::select('anterior',$select_periodos, $datos->anterior , $attributes = array('class' => 'form-control', 'id'=>'anterior'))!!}
@if($errors->has('período anterior')) {!! $errors->first('período anterior') !!} @else {!! " " !!} @endif
{!! Form::select('tipo_periodo_id',$tipos_periodos, $datos->tipo_periodo_id , $attributes = array('class' => 'form-control', 'id'=>'tipo_periodo_id'))!!}
@if($errors->has('tipo de período')) {!! $errors->first('tipo de período') !!} @else {!! " " !!} @endif
{!!Form::close()!!} @stop @section('postscript') {!! Html::script('js/jquery_ui.js') !!} {!! Html::script('js/datepicker/bootstrap-datepicker.js') !!} {!! Html::script('js/datepicker/locales/bootstrap-datepicker.es.js') !!} @stop