Subversion Repositories SmartDukaan

Rev

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

<div class="col-lg-12">
    <table class="table table-bordered table-condensed" id="retailerContactList" style="width:100%">
        <thead class="row htable" style="background:#F5F5F5;">
        <tr style="color:black;">
            <th>Name</th>
            <th>Mobile</th>
            <th>Brand Name</th>
            <th>Contact Type</th>
            <th>status</th>
            <th>Action</th>
        </tr>
        </thead>
        <tbody>
            #foreach($contact in $retailerContacts)
            <tr>
                <td>$contact.getName()</td>
                <td>$contact.getMobile()</td>
                <td>$!contact.getBrandName()</td>
                <td>$!contact.getContactType()</td>
                <td>
                    #if($contact.isActive())
                        Active
                    #else
                        In-Active
                    #end
                </td>
                <td>
                    #if($contact.isActive())
                        <button type="button" class="btn btn-danger update-contact-status"
                                data-contactid="$contact.getId()" data-status="false">Do In-active
                        </button>
                    #else
                        <button type="button" class="btn btn-success update-contact-status"
                                data-contactid="$contact.getId()" data-status="true">Do Active
                        </button>
                    #end
                </td>
            </tr>
            #end
        </tbody>
    </table>
</div>


<div id="update-retailer-contact-modal" class="modal" role="dialog">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title"> Offers</h4>
            </div>
            <div class="modal-body" style="overflow: auto;">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="form-group">
                            <label>Contact Name</label>
                            <input type="text" class="form-control" name="retailer-contact-name"
                                   id="retailer-contact-name">
                        </div>
                        <div class="form-group">
                            <label>Contact Number</label>
                            <input type="text" class="form-control" name="retailer-contact-number"
                                   id="retailer-contact-number">
                        </div>
                        <div class="form-group">
                            <label>Brand Name</label>
                            <select class="form-control" id="retailer-contact-brand" name="retailer-contact-brand">
                                <option value="">Select Brand</option>
                                #foreach($brand in $brands)
                                    <option value="$brand.getName()">$brand.getName()</option>
                                #end
                            </select>
                        </div>
                        <div class="form-group">
                            <label>Contact Type</label>
                            <select class="form-control" id="retailer-contact-type" name="retailer-contact-type">
                                <option value="">Select Contact Type</option>
                                <option value="Shopkeeper">Shopkeeper</option>
                                <option value="Seller">Seller</option>
                                <option value="Owner">Owner</option>
                                <option value="Promoter">Promoter</option>
                            </select>
                        </div>
                    </div>
                </div>
            </div>

            <div class="modal-footer">
                <button type="button"
                        class="btn btn-primary retailer-contact-submit">Submit
                </button>
                <button type="button" data-dismiss="modal"
                        class="btn btn-default view-close">Close
                </button>

            </div>
        </div>
    </div>
</div>