Subversion Repositories SmartDukaan

Rev

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

<table class="table table-border table-condensed table-bordered" id="allPendingLoiForm" style="width:100%">
    <thead class="row htable">
    <tr>
        <th>Id</th>
        <th>Company Name</th>
        <th>Filled By</th>
        <th>Owner name</th>
        <th>Mobile</th>
        <th>Email</th>
        <th>Billing City</th>
        <th>Total Commit</th>
        <th>Brand Type</th>
        <th>Brand Fee</th>
        <th>Total collection</th>
        <th>Status</th>
        <th>Document Verified</th>
        <th>Brand Fee Completed</th>
        <th>Action</th>
    </tr>
    </thead>
    <tbody>
        #foreach($data in $pendingFormList)
        <tr style="font-weight: bold">
            <input type="hidden" value="$data.getId()">
            <td>$data.getId()</td>
            <td>$data.getCompanyName()</td>
            <td>$data.getLoiFormFilledBy()</td>
            <td>$data.getOwnerName()</td>
            <td>$data.getMobile()</td>
            <td>$data.getEmail()</td>
            <td>$data.getCity()</td>
            <td class="currency">$data.getTotalCommitment()</td>
            #if($isAgreedBrandFeeChanger)
                <td><select name="brandType">
                    $data.getBrandType()
                    #foreach($type in $brandType)
                        <option value="$type" #if($type==$data.getBrandType()) selected
                        #end>$type</option>
                    #end
                </select>
                <td><input name="brandFee" value="$data.getBrandFee()">
                    <div align="right">
                        <button type="button" class="save_agree_brand_fee btn-success"
                                value="$data.getId()">Save
                        </button>
                    </div>
                </td>

            #else
                <td>$data.getBrandType()</td>
                <td class="currency">$data.getBrandFee()</td>
            #end
            <td class="currency" class="btn btn-primary" id="paymentDetail"
                onclick="getPaymentsDetails($data.getId())" data-toggle="modal"
                data-target="#commonModalDiv"> $data.getTotalFeeCollection()
            </td>
            <td>$data.getStatus()</td>
            #if($data.isDocVerified().equals(true))
                <td style="background-color: #2ac845" class="mk_docVerified">Yes</td>
            #elseif($data.isDocVerified().equals(false))
                <td style="background-color: red" class="mk_docVerified">No</td>
            #else
                <td>--</td>
            #end
            #if($data.getBrandFee()==$data.getTotalFeeCollection())
                <td style="background-color: #2ac845" class="mk_feeCompleted">Yes</td>
            #else
                <td style="background-color: red" class="mk_feeCompleted">No</td>
            #end

            #if(!$data.isPaymentApprover())
                <td>
                    #if(!$data.isLoiOtpPresent() &&  $data.isDocVerified() && $data.getBrandFee()==$data.getTotalFeeCollection() && !$data.isDocApprover() && $data.isLoiApproved())
                        <button type="button" class="btn-primary generateLoi" value="$data.getId()">Generate
                            LOI
                        </button>

                    #end
                    #if($isAuthUser)
                        <button type="button" class="btn-danger mk-approve-loi" value="$data.getId()"
                                data-company="$data.getCompanyName()" data-flag="0">Reject Loi
                        </button>
                    #end
                    #if(!($data.getLoiFillerEmail().equals($data.getLoginEmail())) && !$data.isDocApprover() && !$data.isLoiApproved() &&!$isAuthUser)
                        <button type="button" class="btn-danger mk-approve-loi" value="$data.getId()"
                                data-company="$data.getCompanyName()" data-flag="0">Reject Loi
                        </button>
                        <button type="button" class="btn-success mk-approve-loi" value="$data.getId()"
                                data-company="$data.getCompanyName()" data-flag="1">
                            Approve Loi
                        </button>
                    #end

                    #if($data.getBrandFee()>$data.getTotalFeeCollection() && !$data.isDocApprover())
                        <button type="button" class="btn-primary payModelBtn" value="$data.getId()"
                                data-toggle="modal" data-target="#brandFeeCollectionModel">Add payment
                        </button>
                    #end
                    #if($data.getLoiDoc()==0 && $data.isSalesTeam() && !$data.isLoiOtpPresent() && !$data.isDocApprover())
                        <button type="button" class="btn-primary updateLoiForm" value="$data.getId()"
                                style="width: 100px">Update
                        </button>
                    #end
                    #if(!$data.isDocVerified() && $data.isSalesTeam()&& !$data.isDocApprover())
                        <button type="button" class="upload-document-form btn-primary"
                                value="$data.getId()">Upload
                            Document
                        </button>
                    #else
                        #if($data.isDocApprover())
                            #if($data.isDocApprover() && !$data.isDocVerified())
                                <button class="upload-document-form btn-primary" value="$data.getId()">
                                    Approve
                                    Document
                                </button>
                            #else
                                <p>Document verified</p>
                            #end
                        #end
                    #end
                </td>
            #else
                <td>
                    <button id="paymentDetail"
                            onclick="getPaymentsDetails($data.getId())" data-toggle="modal"
                            data-target="#commonModalDiv">View Payments
                    </button>
                </td>
            #end
        </tr>
        #end
    </tbody>
    <tfoot class="row htable">
    <tr>
        <th>Id</th>
        <th>Company Name</th>
        <th>Filled By</th>
        <th>Owner name</th>
        <th>Mobile</th>
        <th>Email</th>
        <th>Billing City</th>
        <th>Total Commit</th>
        <th>Brand Type</th>
        <th>Brand Fee</th>
        <th>Total collection</th>
        <th>Status</th>
        <th>Document Verified</th>
        <th>Brand Fee Completed</th>
        <th>Action</th>
    </tr>
    </tfoot>
</table>
<div>$paginationInfo</div>
<script>
    function pageInfo() {
        $('#paginationInfo').empty();
        $('#paginationInfo').html($paginationInfo);
    }

</script>