<?php echo csrf_field(); ?>
<form id='form-nuevo'>
  <div class="row">
    <div class="col-md-11 col-sm-12">
      <div class="row">
        <div class="col-md-4 col-sm-12">
          <div class="form-group">
            <select class="form-control" required="" id='nuevo_anio' name='nuevo_anio'>
              <option value>.:Año:.</option>
              @for ($i = $anio->anio+1; $i < $anio->anio+11; $i++)
                  <option value={{ $i }}>{{ $i }}</option>
              @endfor
            </select>
          </div>
        </div>
        <div class="col-md-4 col-sm-12">
          <div class="form-group">
            <input type="text" name="nuevo_inicio" id="nuevo_inicio" class="form-control" onfocus="$(this).attr('type', 'datetime-local');" onblur="$(this).attr('type', 'text');" placeholder="Fecha Inicio" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}" required />
          </div>
        </div>
        <div class="col-md-4 col-sm-12">
          <div class="form-group">
            <input type="text" name="nuevo_termino" id="nuevo_termino" class="form-control" onfocus="$(this).attr('type', 'datetime-local');" onblur="$(this).attr('type', 'text');" placeholder="Fecha Termino" pattern="[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}" required />
          </div>
        </div>
      </div>
    </div>
        
    <div class="col-md-1 col-sm-12 text-center">
      <button class="btn btn-success btn-sm" type="submit" data-toggle="tooltip" data-placement="left" title="" onclick="javascript:vigencia_add();" data-original-title="Guardar"><i class="fa fa-save"></i></button>
    </div>
  </div>
</form>