

{% load crispy_forms_tags %}

<div class="modal-dialog modal-lg" role="document">
    <div class="modal-content">
        <div class="modal-header">
            <h2 class="modal-title">Agregar Seguimiento</h2>
            <a href="{% url 'bitacora' %}" class="btn btn-primary">Cerrar</a>
        </div>
        <div class="modal-body">
            <form method="POST" action="servrealizadob/crear/{{ controlcb }}" class="mt-3" autocomplete="off" >
                {% csrf_token %}
                <p>No. de Control</p>
                <input name="ser_s_n_control" type="text" placeholder="{{ datos.n_control }}" class="form-control" value="{{ datos.n_control }}" > <br>
                <p>No. de Reporte Bitacora</p>
                <input name="control_bit" type="text" placeholder="{{ controlcb }}" class="form-control" value="{{ controlcb }}" readonly> <br>
                {{ form|crispy }}
                <button type="submit" class="btn btn-primary">Guardar</button>
                
              </form>
        </div>
        <button class="btn btn-danger" type="button" data-dismiss="modal">Cancelar</button>
        <table class="table">
            <thead class=" text-primary">
              
              <th>Fecha</th>
              <th>IB</th>
              <th>Descripcion</th>
            </thead>
            <tbody>
              {% for datosse in datosseg %}
              <tr>
                <td>{{ datosse.fecha }}</td>
                <td>{{ datosse.ib }}</td>
                <td>{{ datosse.descripcion }}</td>
              </tr>
              {% endfor %}
            </tbody>
          </table>

    </div>

</div>