{% import "/sistema/vistas/input/input.html.php" as forms %}
<table id="tbl-Planeador-PlanesOperaciones{{ hash_form }}" class="table table-bordered table-hover table-responsive">
    <thead>
        <tr>
            <th >{{ forms.check('planOperaciones', null, 'checkOperaciones', 'chk-seleccionarTodosLosPlanesOperaciones' ~ hash_vista )  }}</th>
            <th>Operación</th>
            <th>Tipo Operación</th>
            <th>Fecha de Inicio</th>
            <th>Fecha de Finalización</th>
            <th>Descripción</th>
            <th>Presupuesto</th>
        </tr>
    </thead>
    <tbody> 
        {% if PlanesOperaciones %}
            {% for PlanOperacion in PlanesOperaciones %}
            <tr id="{{ PlanOperacion.planOperacionID }}">
                <td>
                    <input type="checkbox" id="checkb{{ PlanOperacion.planOperacionID }}" name="checkb[]"  class="check checkPlanOperaciones" value="{{ PlanOperacion.planOperacionID }}">
                    <input type="hidden" id="planOperacionID-{{ PlanOperacion.planOperacionID }}" name="planOperacionID[]" value="{{ PlanOperacion.planOperacionID }}" />
                </td>
                <td>
                    {{ PlanOperacion.operacionPredefinidaTITULO }}
                </td>
                <td>
                    {{ PlanOperacion.tipoOperacionTITULO }}
                </td>
                <td>
                    {{ PlanOperacion.planOperacionFCHINICIO }}
                </td>
                <td >
                    {{ PlanOperacion.planOperacionFCHFINAL }}
                </td>
                <td class="titulo-flotante" title="{{ PlanOperacion.planOperacionDESCRIPCION|striptags }}" >
                    {{ PlanOperacion.planOperacionDESCRIPCION|striptags[0:21] }}...
                </td>
                <td>{{ PlanOperacion.planOperacionPRESUPUESTADO }}</td>
            </tr>
            {% endfor %}
        {% endif %}
    </tbody>
</table>
<script type="text/javascript" >
    $(document).ready(function () {
        checkBoxSICAM('.checkPlanOperaciones');
        checkBoxSICAM('#chk-seleccionarTodosLosPlanesOperaciones{{ hash_vista }}');
        activarSeleccionarTodos("chk-seleccionarTodosLosPlanesOperaciones{{ hash_vista }}", "checkPlanOperaciones");
        $('#tbl-Planeador-PlanesOperaciones{{ hash_form }}').DataTable();
    });
</script>    


                       
