Subversion Repositories SmartDukaan

Rev

Blame | Last modification | View Log | RSS feed

<section class="wrapper">
    <div class="row">
        <div class="col-lg-12">
            <h3 class="page-header"><i class="icon_document_alt"></i>Retailer Contacts</h3>
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
                <li><i class="icon_document_alt"></i>Retailer Contacts</li>
            </ol>
        </div>
    </div>
    <div class="row col-lg-12">

        <div class="form-group">
            <table>
                <tr>
                    #if($isAdmin)
                        <td style="padding: 5px 10px;"><input placeholder="Enter Partner Name" type="text"
                                                              class="typeahead form-control"
                                                              id="typeaheadpartner"
                                                              name="Item" data-provide="typeahead" autocomplete="off">
                            <input id="partnerId" type="hidden">
                        </td>
                        <td style="padding: 5px 10px;"><input class="btn btn-primary get-retailer-contacts"
                                                              type="button"
                                                              value="Submit"></td>
                        <td style="padding: 5px 10px;"><input class="btn btn-primary" data-toggle="modal"
                                                              data-target="#update-retailer-contact-modal"
                                                              type="button"
                                                              value="Add Contact Detail"></td>
                    #end
                </tr>
            </table>
        </div>

    </div>
    <div class="retailer-contacts-container">

    </div>

</section>

<script>
    var dtable = $('#retailerContactList').DataTable(
            {
                "scrollX": true,
                "bPaginate": true,
                "bLengthChange": true,
                "bFilter": true,
                "bInfo": false,
                "bAutoWidth": false,
            });

</script>

#if($isAdmin)
<script type="text/javascript">
    $(function () {
        getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {
            partnerId = selectedPartner.partnerId;

            console.log(partnerId);
        });
    });
</script>
+#end