Subversion Repositories SmartDukaan

Rev

Rev 28272 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed


<style>
.ribbon-highlight {
        position: relative;
        margin: 0.1em;
}

.ribbon-highlight:before {
        content: "";
        z-index: -1;
        left: -0.5em;
        top: 0.1em;
        border-width: 0.5em;
        border-style: solid;
        border-color: lightgreen;
        position: absolute;
        width: 100%;
        border-left-color: transparent;
        border-right-color: transparent;
}
</style>



<form id="brand-limit-container" style="width: 30%;">
        <table class="table table-striped brands-container">
                <thead>

                        <h3>Set Limit Of $brand For All Partners</h3>
                        <tr>
                                <th>Brand</th>
                                <th>New Limit</th>
                                <th>Submit</th>
                        </tr>

                </thead>

                <tbody>
                        <div class="row">
                                #if($brandLimit)
                                <tr>

                                        <td value="$brandLimit.getBrandName()" id="inputBrand">$brandLimit.getBrandName()</td>
                                        <td><input type="text" value="$brandLimit.getBrandLimit()"
                                                class="form-control" name="inputLimit" placeholder="Limit"
                                                required></td>
                                        <td><button type="button"
                                                        class="btn btn-primary brands-update"
                                                        data-brand="$brandLimit.getBrandName()">submit</button></td>
                                </tr>
                                #else
                                <tr>

                                        <td value="$brand" id="inputBrand">$brand</td>
                                        <td><input type="text" class="form-control" name="inputLimit"
                                                placeholder="Limit" required></td>
                                        <td><button type="button"
                                                        class="btn btn-primary brands-update" data-brand="$brand">submit</button></td>
                                </tr>

                                #end
                        </div>



                </tbody>
        </table>

</form>

<form id="brand-limit-partners" style="width: 60%;">
        <table class="table table-border table-condensed table-bordered"
                id="brand-dataTable-limit" style="width: 100%;">

                <thead class="row">
                        <h3 class="ribbon-highlight">All Partner List Of $brand</h3>
                        <tr>
                                <th>Brand</th>
                                <th>Partner Id</th>
                                <th>Limit</th>
                                <th>New Limit</th>
                                <th>Submit</th>
                        </tr>

                </thead>

                <tbody>
                        #if($brandLimit) #foreach($customRetailers in
                        $customRetailers.entrySet())
                        <tr>#parse("brands-limit-row-mapping.vm")

                        </tr>
                        #end #end


                </tbody>
        </table>

</form>

<script type="text/javascript">
        $(document).ready(function() {

                if ($.fn.dataTable.isDataTable('#brand-dataTable-limit')) {
                        table = $('#example').DataTable();
                } else {
                        table = $('#brand-dataTable-limit').DataTable({
                                paging : false
                        });
                }

        });
</script>