<div class="modal fade bs-example-modal-lg"
     id="SelectSupervisor"
     tabindex="-1"
     role="dialog"
     aria-labelledby="myModalLabel"
     aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">
                    <span aria-hidden="true">&times;</span>
                    <span class="sr-only">Cancel</span>
                </button>
                <h4 id="stock-data-header" class="modal-title">Select a supervisor</h4>
            </div>
            <div id="stockModalPreView" class="modal-body">
                <div id="stockPreView" class="container-fluid" style="padding: 0px;">
                    <div class="table-responsive">
                        <table class="table table-striped table-hover">
                            <thead>
                            <tr>
                                <th class="col-md-2">Picture</th>
                                <th class="col-md-2">Code</th>
                                <th class="col-md-5">Name</th>
                                <th class="col-md-3">Department</th>
                            </tr>
                            </thead>
                            <tbody data-bind="foreach: supervisors">
                            <tr data-bind="click: to_filter"
                                style="cursor: pointer"
                                data-dismiss="modal">
                                <td>
                                    <img data-bind="attr:{src: picture}" width="50px" height="50px">
                                </td>
                                <td data-bind="text: code"/>
                                <td data-bind="text: fullname"/>
                                <td data-bind="text: department"/>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div class="modal-footer">
                <button id="stock-modal-cancel-button" type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
            </div>
        </div>
    </div>
</div>