<div class="modal fade" id="EditarAutor" tabindex="-1" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h4 class="modal-title caption-subject font-blue-secondary sbold uppercase">Editar Autor</h4>
            </div>
            {{ Form::model($autor, array('route' => array('autor.editar', $autor->id), 'class'=>'form-horizontal','enctype'=> 'multipart/form-data', 'id' => 'form-validationeditar' ,'style'=>'padding: 5px 5px 5px 5px;', 'method' => 'POST')) }}
            {{ csrf_field() }}
            {{ Form::hidden('id') }}
            <div class="modal-body">
                <div id="ejemplarinfo">
                    <div class="form-group row">
                        <div class="col-md-3 col-xs-12">
                            <label class = "caption-subject font-blue-secondary sbold">
                                Nombre Completo:
                            </label>
                        </div>
                        <div class="col-md-9 col-xs-12">
                            {!! Form::text('nombres', null, ['class' => 'form-control', 'required' => 'required']) !!}
                        </div>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button type="submit" class="btn btn-primary mt-ladda-btn ladda-button" data-style="slide-down">
                    <span class="ladda-label">Guardar</span>
                    <span class="ladda-spinner"></span>
                </button>
                <button type="button" class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancelar</button>
            </div>
            {!! Form::close() !!}
        </div>
    </div>
</div>
<script>
    $("#form-validationeditar").validate( {
        rules:{
            nombres:{
                required:true,
                pattern: "[a-zA-ZñÑáéíóúÁÉÍÓÚüÜ]{2,25}+[a-zA-ZñÑáéíóúÁÉÍÓÚüÜ]{2,25}+[a-zA-ZñÑáéíóúÁÉÍÓÚüÜ]{2,25}"
            }
        }
    });
</script>