
<div class="">
  <div class="page-title">
    <div class="title_left">
      <h3>Unidad</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 una nueva Unidad</h2>
          <div class="clearfix"></div>
        </div>
        <div class="x_content">
          <form id="form-nunidad" data-parsley-validate class="form-horizontal form-label-left">
              <input type="hidden" name="clave" id="clave" value="{{ $materia->id}}">
            <div class="form-group">
              <label class="control-label col-md-3 col-sm-3 col-xs-12" for="nombre">Nombre de la materia<span class="required">*</span>
              </label>
              <div class="col-md-6 col-sm-6 col-xs-12">
                <input type="text" id="nombre" name="nombre" required="required" class="form-control col-md-7 col-xs-12" value="{{ $materia->nombre}}" disabled>
              </div>
            </div>

            <div class="form-group">
              <label class="control-label col-md-3 col-sm-3 col-xs-12" for="numero">No. de la Unidad <span class="required">*</span>
              </label>
              <div class="col-md-6 col-sm-6 col-xs-12">
                <input type="text" id="numero" name="numero" required="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="tema">Nombre de la unidad <span class="required">*</span>
              </label>
              <div class="col-md-6 col-sm-6 col-xs-12">
                 <!--onchange="suma(this.value)"-->
                <input type="text" id="tema" name="tema" required="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="subtema">Subtema de la unidad <span class="required">*</span>
              </label>
              <div class="col-md-6 col-sm-6 col-xs-12">
                <textarea class="form-control col-md-7 col-xs-12"  id="subtema" name="subtema" rows="3" required="required"></textarea>
              </div>
              <div class="col-md-1 col-sm-1 col-xs-12">
                <button type="button" class="btn btn-block btn-dark" onClick="mas_unidades()"><span class="fa fa-plus-circle"></span>
                </button>
              </div>
            </div>
            <div id="contenedor_temario">
            </div>

            <div class="ln_solid"></div>
            <div class="form-group">
              <div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
                <button class="btn btn-default" type="button" onclick="listar_materias()">Regresar</button>
                <button type="button" onclick="add_unidad(this.form)" class="btn btn-success" form="form-nunidad">Enviar</button>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
</div>

<!--
    <label for="nom">Nombre</label>
    <input type="text" name="nombre" id="nombre">
    <label for="tipo">tipo</label>
    <select name="tip" id="tip">
        <option value="">Seleccione</option>
        <option value="L">Licenciatura</option>
        <option value="M">Maestria</option>
    </select>
    <button onclick="add_carrera()">Guardar</button>
    <button>Cancelar</button>-->
