<table id="{{pregunta.id}}-table" class="table table-responsive">
    <thead>
        <tr>
            <th>Posición</th>
            <th>Incidencia</th>
            <th></th>

        </tr>
    </thead>
    <tbody>
        {% for mueble in parte.establecimiento.muebles %}
            {% for terminal in mueble.terminales %}
                <tr id="{{pregunta.id}}-{{mueble.id}}-{{loop.index}}" data-mueble="{{mueble.id}}" data-posicion="{{loop.index}}" data-pregunta="{{pregunta.id}}" >
                    <td>{{mueble}}-{{loop.index}}-{{terminal}}</td>
                    <td>
                        <select  id="incidencia"  data-pregunta="{{pregunta.id}}" class="form-control incidencia">
                            <option></option>
                            {% if respuesta_id is not defined %}
                                {% set respuesta_id = 0 %}
                            {% endif %}
                            {% for option in pregunta.options %}
                                <option value="{{loop.index}}"
                                        {% if respuesta_id == loop.index %}selected="selected"{% endif %}
                                        >{{option}}</option>
                            {% endfor %}
                        </select>
                    </td>

                    <td>
                        <a href="javascript:;" class="btn btn-default addFoto"><i class="fa fa-camera"></i></a>
                        <input type="file" name="foto" style="display:none" class="foto" accept="image/*" required="required"/>
                        <a href="javascript:;" class="btn btn-default addMaterial"><i class="fa fa-wrench"></i></a>
                    </td>

                </tr>
            {% endfor %}
        {% endfor %}
    </tbody>
</table>
