Rev 26694 | Rev 28556 | 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: #e98c8f;color:white;}.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>OFFERS</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>LISTINGS</li></ol></div></div><table style="Width:100%"><td align="left" style="Width:20%"></td><td style="Width:80%"><div id="offer-search"><div class="row"><div class="col-lg-12"><div class="col-md-3 col-sm-3 col-xs-12 form-group pull-right top_search"><div class="input-group"><input type="text" class="form-control" id="offer-search-text" placeholder="Search for offerID..." value="$searchTerm" /><span class="input-group-btn"><button class="btn btn-primary submit" id="offer-search-button" type="button">Go!</button></span></div></div></div></div></div></td></table><div id="offer-listings-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>Scheme Type</th><th>Criteria</th><th>Item Criteria</th><th>Target Type</th><th>Amount Type</th><th>Partner Type</th><th>Created On</th><th>Start Timestamp</th><th>End Timestamp</th><th>Status</th><th>Detail</th></tr>#if(!$offers.isEmpty())#foreach( $offer in $offers )<tr class="offer-listing-details" data="$offer.getId()"><td>$offer.getId()</td><td>$offer.getName()</td><td>$offer.getSchemeType()</td><td>$offer.getCriteria()</td><td>$offer.getItemCriteria()</td><td>$offer.getTargetType()</td><td>$offer.getAmountType()</td><td>$offer.getPartnerType()</td><td>$offer.getCreatedTimestamp().format($dateTimeFormatter)</td><td>$offer.getStartDateTime().format($dateTimeFormatter)</td><td>$offer.getEndDateTime().format($dateTimeFormatter)</td>#if($offer.getStatus())<td><button class="btn btn-primary change-status" data-offid="$offer.getId()" type="button" style="width:100%; border-radius:0px;">Inactive</button></td>#else<td><button class="btn btn-primary change-status" data-offid="$offer.getId()" type="button" style="width:100%; border-radius:0px;">Active</button></td>#end<td><button class="btn btn-primary marginDetail" data-toggle="modal" data-target="#marginPartnerDetail" data-offerid="$offer.getId()" type="button" style="width:100%; border-radius:0px;">View</button></td></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(!$offers.isEmpty())<div class="row" id="offer-history-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<div class="offer-container"><div class="modal text-center" id="marginPartnerDetail"><div class="modal-dialog"><div class="modal-content" style="width:900px;height:600px;overflow:auto"></div></div></div></div></section><div id="offer-details-container" style="background:white;background-color:white;"></div>