@extends('layouts.master') @section('css') @stop @section('content') @if(Session::has('message_success'))
{!! Session::get('message_success') !!}
@endif @if(Session::has('message_error'))
{!! Session::get('message_error') !!}
@endif
{!! Form::open(array('url'=>'datos/actualizarunidad','class'=>'formulario'))!!}{!! csrf_field() !!}
{!! Form::text('descripcion',$data->descripcion, $attributes = array('class' => 'form-control mayuscula','id'=>'descripcion','maxlength' => 255))!!}
@if($errors->has('descripción')) {!! $errors->first('descripción') !!} @else {!! " " !!} @endif
{!! Form::text('id',$data->id, $attributes = array('class' => 'form-control mayuscula','id'=>'id','placeholder'=>'AI10PR','maxlength' => 20, 'readOnly' => 'readOnly'))!!}
@if($errors->has('código')) {!! $errors->first('código') !!} @else {!! " " !!} @endif
{!! Form::text('des_corta',$data->des_corta, $attributes = array('class' => 'form-control mayuscula','id'=>'des_corta','maxlength' => 255))!!}
@if($errors->has('descripción corta')) {!! $errors->first('descripción corta') !!} @else {!! " " !!} @endif
{!! Form::text('minima',$data->minima, $attributes = array('class' => 'form-control','id'=>'minima','maxlength' => 3,'placeholder'=>'70','onkeypress'=>'return soloNumeros(event)'))!!}
@if($errors->has('min aprobatoria')) {!! $errors->first('min aprobatoria') !!} @else {!! " " !!} @endif
{!! Form::text('ubi_per',$data->ubi_per, $attributes = array('class' => 'form-control','id'=>'ubi_per','maxlength' => 2,'placeholder'=>'2','onkeypress'=>'return soloNumeros(event)'))!!}
@if($errors->has('período')) {!! $errors->first('período') !!} @else {!! " " !!} @endif
{!! Form::text('cod_unico',$data->cod_unico, $attributes = array('class' => 'form-control mayuscula','id'=>'cod_unico','placeholder'=>'AI10PR','maxlength' => 20))!!}
@if($errors->has('código único')) {!! $errors->first('código único') !!} @else {!! " " !!} @endif
{!! Form::text('uc',$data->uc, $attributes = array('class' => 'form-control','id'=>'uc','maxlength' => 2,'placeholder'=>'2','onkeypress'=>'return soloNumeros(event)'))!!}
@if($errors->has('uc')) {!! $errors->first('uc') !!} @else {!! " " !!} @endif
{!! Form::text('horas',$data->horas, $attributes = array('class' => 'form-control','id'=>'horas','maxlength' => 1,'placeholder'=>'2','onkeypress'=>'return soloNumeros(event)'))!!}
@if($errors->has('horas')) {!! $errors->first('horas') !!} @else {!! " " !!} @endif
{!! Form::select('introductorio',[0 => "No", 1 => "Si"],$data->introductorio, $attributes = array('class' => 'form-control','id'=>'introductorio'))!!}
@if($errors->has('introductorio')) {!! $errors->first('introductorio') !!} @else {!! " " !!} @endif
{!!Form::close()!!}
@stop @section('postscript') {!! Html::script('js/solonumeros.js') !!} @stop