<?php
    function periodo(){
        $aux=explode(" ",now());
        $fecha = explode("-",$aux[0]);
        return $fecha[0];
    }
 ?>
<div class="">

    <div class="page-title">

        <div class="title_left">

            <h3>CONVOCATORIA</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>Subir documento de reinscripción</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">

                            <label class="control-label col-md-3 col-sm-3 col-xs-12">Opciones de maestria</label>

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

                                <div id="ops" class="btn-group" data-toggle="buttons">

                                    <label class="btn btn-default active ceroM" data-toggle-class="btn-primary" data-toggle-passive-class="btn-default">

                                        <input type="radio" name="maestria" value="MSC" class="btn-sm" onclick="limpiarCajaT('documento');limpiarCajaT('documentoT');" checked> MSC

                                    </label>

                                    <label class="btn btn-default ceroM" data-toggle-class="btn-primary" data-toggle-passive-class="btn-default">

                                        <input type="radio" name="maestria" value="MGA" class="btn-sm" onclick="limpiarCajaT('documento');limpiarCajaT('documentoT');"> MGA

                                    </label>

                                </div>

                            </div>

                        </div>
                        
                        <div class="form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12" for="periodo">Periodo <span class="required">*</span></label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input type="number" id="periodo" name="periodo" value="{{ periodo() }}"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="documentoT">Proceso de
                                reinscripción <span class="required">*</span> </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <div class="input-group">
                                    <label for="documento" class="input-group-addon subir" id="basic-addon1">
                                        <i class="fa fa-cloud-upload"></i> Subir archivo
                                    </label>
                                    <input id="documento" name="documento" accept="application/pdf" required
                                        onchange="sacardocumentos('documento','documentoT');" type="file"
                                        style='display: none;' />
                                    <input id="documentoT" name="documentoT" type="text" class="form-control" required
                                        placeholder="No eligio archivo" aria-describedby="basic-addon1" readonly />
                                </div>
                            </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_reinscripcion(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"><a href="/admin"
                                            class="btn btn-dark btn-block"><i class="fa fa-times"></i> Cancelar</a>
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-3 col-sm-12"></div>
                        </div>
                        
                    </form>

                </div>

            </div>

        </div>

    </div>

</div>
