<div class="">

    <div class="page-title">

        <div class="title_left">

            <h3>TESIS ALUMNO</h3>

        </div>

    </div>


    <div class="clearfix"></div>



    <div class="row">

        <div class="col-md-12 col-sm-12 col-xs-12">

            <div class="x_panel">

                <div class="x_title">

                    <h2>Registrar tema de tesis y director</h2>

                    <div class="clearfix"></div>

                </div>

                <div class="x_content">

                    <form id="form-nueva" data-parsley-validate enctype="multipart/form-data"
                        class="form-horizontal form-label-left">

                        @csrf


                        <!--
                        <div class="form-group ceroM">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for=_alumno_tesisT">Imagen </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <div class="input-group">
                                    <label for="imagen" class="input-group-addon subir" id="basic-addon1">
                                        <i class="fa fa-cloud-upload"></i> Subir archivo
                                    </label>
                                    <input id="imagen" name="imagen" onchange="sacardocumentos('imagen','imagenT');"
                                        type="file" accept="image/jpeg,image/png,image/webp"
                                        style='display: none;' />
                                    <input id="imagenT" name="imagenT" type="text" class="form-control"
                                        placeholder="No eligio archivo" aria-describedby="basic-addon1" readonly />
                                </div>
                            </div>
                        </div>
                        -->
                        <div class="form-group">

                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="nombre">Nombre del alumno
                                <span class="required">*</span></label>

                            <div class="col-md-6 col-sm-6 col-xs-12">

                                <input type="text" id="nombre" name="nombre" value="{{ ucwords(mb_strtolower( $alumno->nombre." ".$alumno->ap_paterno." ".$alumno->ap_materno ))}}" disabled
                                    class="form-control col-md-7 col-xs-12">

                            </div>

                        </div>
                        <input type="hidden" name="idAlumno" id="idAlumno" value="{{ $alumno->id }}">
                        <div class="form-group">

                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="tema_tesis">Tema de tesis
                                <span class="required">*</span></label>

                            <div class="col-md-6 col-sm-6 col-xs-12">

                                <input type="text" id="tema_tesis" name="tema_tesis"
                                    placeholder="Ingrese el tema elegido para la tesis " required
                                    class="form-control col-md-7 col-xs-12">

                            </div>

                        </div>
                        <div class="form-group">

                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="director_tesis">Director de tesis
                                <span class="required">*</span></label>

                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <select class="select2_group form-control required" name="director_tesis" id="director_tesis">
                                      <option value>Seleccione un director</option>
                                      @foreach($personal as $direc)

                                      <option value="{{ $direc->id }}">{{ ucwords(mb_strtolower( $direc->nombre." ".$direc->apellido_paterno." ".$direc->apellido_materno)) }}</option>
                                      @endforeach
                                  </select>

                            </div>

                        </div>

                        <div class="ln_solid"></div>

                        <div class="row">
                            <div class="col-md-3 col-sm-12"></div>
                            <div class="col-md-6 col-sm-12 col-xs-12">
                                <div class="row">
                                    <div class="col-md-4 col-sm-4 col-xs-6"><button type="button"
                                            class="btn btn-success btn-block" onclick="cargar_alumno_tesis(this.form);"><i
                                                class="fa fa-pencil"></i>
                                            Guardar</button></div>
                                    <div class="col-md-4 col-sm-4 col-xs-6"><button type="reset"
                                            class="btn btn-info btn-block"><i class="fa fa-eraser"></i>
                                            Limpiar</button></div>
                                    <div class="col-md-4 col-sm-4 col-xs-12"><button type="button" onclick="listar_alumno_tesis();"
                                            class="btn btn-dark btn-block"><i class="fa fa-times"></i> Cancelar</button>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-12"></div>
                        </div>
                    </form>

                </div>

            </div>

        </div>

    </div>

</div>
