Subversion Repositories SmartDukaan

Rev

Rev 28085 | Blame | Compare with Previous | Last modification | View Log | RSS feed





<script>
        $(document).ready(function() {
                $('#chcksectHead').click(function() {
                        if (this.checked == false) {
                                $('.chcktbl:checked').attr('checked', false);
                        } else {
                                $('.chcktbl:not(:checked)').attr('checked', true);
                        }

                });
        });
</script>


<div class="modal-header">
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Select Items ($cs.getBusinessName())</h4>
</div>
<div class="modal-body" style="height: 400px; overflow: auto;">

        <div class="select-item-color">

                <div class="row">

                        <div class="col-lg-12">

                                <table class="table  table-advance" id="select-item">
                                        <tbody>
                                                <tr>
                                                        <td><input type="checkbox" id="chcksectHead" /></td>
                                                        <th>Item Id</th>
                                                        <th>Name</th>
                                                        <th>Qty</th>
                                                </tr>
                                        </thead>

                                                        #foreach($item in $items )
                                        <tr>
                                                <td><input type="checkbox" class="chcktbl"
                                                        name="itemColorCheck" /></td>
                                                <td>$item.getId()</td>
                                                <td>$item.getItemDescription()</td>
                                                <td><input type="number" min="0" max="40" id="quantity"
                                                        value="" /></td>


                                        </tr>
                                        #end
                                        </tbody>
                                </table>
                        </div>
                </div>
        </div>
</div>
<div class="modal-footer">
        <button type="button" data-dismiss="modal"
                class="btn btn-default cancel-request">Cancel</button>
        <button type="button" class="btn btn-default submit-item-po"
                data-fofoid="$cs.getPartnerId()">Submit</button>

</div>