Subversion Repositories SmartDukaan

Rev

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

<div class="modal-body">
    <h4 class="modal-title">Upload NOC</h4>
    <table class="table table-bordered" name="requiredNoc" id="requiredNoc">
        <thead>
        <th>Brand</th>
        <th>Upload Noc</th>
        <th>NOC From GT</th>
        </thead>
        <tbody>
            #foreach($nrb in $nocRequiredBrands)
            <tr>
                <td align="center">
                    <input type="hidden" value="$nrb.getId()" name="brandId" class="brandId">
                    <label style="color: #688a7e ; font-weight: bold;">$nrb.getBrandName()</label>
                </td>
                <td>
                    <input type="hidden" value="$nrb.getId()" name="brandId" class="brandId">
                    <input type="hidden" name="documentId" value="$nocRequiredBrandsMap.get($nrb.getId()).getNoc()"
                           class="documentId">
                    <input type="file" required>
                    #if($nocRequiredBrandsMap.get($nrb.getId()).getNoc()>0)
                        <a href="${rc.contextPath}/download-attachment?documentId=$nocRequiredBrandsMap.get($nrb.getId()).getNoc()">Download
                            & View</a>
                    #end
                </td>
                <td align="center">
                    #if($nocRequiredBrandsMap.get($nrb.getId()).getNocGt())
                        <select name="nocRequired" class="noc-required">
                            <option value="$nrb.getNocGt()"
                                    selected>$nocRequiredBrandsMap.get($nrb.getId()).getNocGt()</option>
                            <option value="RECEIVED">RECEIVED</option>
                            <option value="NOT_RECEIVED">NOT_RECEIVED</option>
                            <option value="NOT_REQUIRED">NOT_REQUIRED</option>
                        </select>
                    #else
                        <select name="nocRequired" class="noc-required">
                            <option value="" selected>NOC GT</option>
                            <option value="RECEIVED">RECEIVED</option>
                            <option value="NOT_RECEIVED">NOT_RECEIVED</option>
                            <option value="NOT_REQUIRED">NOT_REQUIRED</option>
                        </select>
                    #end

                </td>
            </tr>

            #end
        </tbody>
    </table>
    <div align="right">
        <button type="button" class="btn-primary uploadNocDoc" value="$nocRequiredBrands.get(0).getLoiId()"
            ##                data-dismiss="modal"
        >Upload All
        </button>
    </div>
</div>