Subversion Repositories SmartDukaan

Rev

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

<style>
        .table-striped > tbody > tr:nth-child(odd) > td{
                background: white;
                background-color: white;
        }
        .table-striped > tbody > tr:nth-child(even) > td{
                background: white;
                background-color:white;
        }
        .table-striped > tbody > tr:hover > td,
        .table-striped > tbody > tr:hover {
                background-color: #6DC767;
                color:white;
                font-weight:600;
        }
        .btn:hover{
                color: grey;
                text-decoration: none;
        }
        .btn-primary:hover{
                color: grey;
                text-decoration: none;
        }
        .sale-details{
                cursor:pointer;
        }
</style>

<section class="wrapper">            
        <div class="row">
                <div class="col-lg-12">
                        <h3 class="page-header"><i class="icon_document_alt"></i>SCHEMES</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>SCHEMES</li>                                                       
                        </ol>
                </div>
        </div>
        
        <div id="schemes-table">
                <div class="row">
                <div class="col-lg-12">
                        <table class="table table-striped table-advance table-hover">
                                <tbody>
                                        <tr>
                                                <th>Id</th>
                                                <th>Name</th>
                                                <th>Description</th>
                                                <th>Type</th>
                                                <th>Amount Type</th>
                                                <th>Amount</th>
                                                <th>Start Date</th>
                                                <th>End Date</th>
                                                <th>Created On</th>
                                                <th>Active</th>
                                                <th>Expire</th>
                                        </tr>
                                        #if(!$schemes.isEmpty())
                                                #foreach( $scheme in $schemes )
                                                        <tr class="scheme-details" data="$scheme.getId()">
                                                                <td>$scheme.getId()</td>
                                                                <td>$scheme.getName()</td>
                                                                <td>$scheme.getDescription()</td>
                                                                <td>$scheme.getType()</td>
                                                                <td>$scheme.getAmountType()</td>
                                                                <td>$scheme.getAmount()</td>
                                                                <td>$scheme.getFormattedStartDate()</td>
                                                                <td>$scheme.getFormattedEndDate()</td>
                                                                <td>$scheme.getFormattedCreateTimestamp()</td>
                                                                #if(($scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
                                                                        <td><i class="fa fa-check" aria-hidden="true"></i></td>
                                                                #else
                                                                        <td><i class="fa fa-times" aria-hidden="true"></i></td>
                                                                #end
                                                                #if($scheme.getExpireTimestamp())
                                                                        <td><i class="fa fa-check" aria-hidden="true"></i></td>
                                                                #else
                                                                        <td><i class="fa fa-times" aria-hidden="true"></i></td>
                                                                #end
                                                        </tr>
                                                #end
                                        #else
                                                <tr>
                                                        <td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
                                                </tr>
                                        #end
                                </tbody>
                        </table>
                </div>
            </div>
    </div>
    #if(!$schemes.isEmpty())
        <div class="row" id="schemes-paginated">
                <div class="col-lg-9">
                        <p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p>
                </div>
                <div class="col-lg-3" style="text-align:right;">
                                <div class="btn-group" style="width:40%">
                                        <button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button>
                                </div>
                                <div class="btn-group" style="width:40%">
                                        #if($end >= $size)
                                                <button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>
                                        #else
                                                <button class="btn btn-primary next" style="width:100%">Next</button>
                                        #end
                                </div>
                </div>
            </div>
    #end
</section>
<div id="scheme-details-container" style="background:white;background-color:white;">
</div>