Subversion Repositories SmartDukaan

Rev

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

<h3 style="padding-left:3%;padding-top:2%;font-weight:bold;">Scheme Id : $scheme.getId()</h3>
<div class="row" style="padding-left:3%;">
        <div class="col-lg-4">
                #if($scheme.getActiveTimestamp())
                        <span>Activated On : $scheme.getFormattedActiveTimestamp()</span>
                        <p></p>
                #end
                #if($scheme.getExpireTimestamp())
                        <span>Expired On : $scheme.getFormattedExpireTimestamp()</span>
                        <p></p>
                #end
                <table class="table table-striped table-advance table-hover">
                        <tbody>
                                <tr>
                                        <th>Item Id</th>
                                        <th>Description</th>
                                </tr>
                        #foreach( $itemIdDescriptionEntry in $scheme.getItemStringMap().entrySet())
                                <tr data="$itemId">
                                        <td>$itemIdDescriptionEntry.key</td>
                                        <td>$itemIdDescriptionEntry.value</td>
                                </tr>
                        #end
                        </tbody>
        </table>
                
                <p></p>
                #if($scheme.isRetailerAll())
                        <td>Retailer All : <i class="fa fa-check" aria-hidden="true"></i></td>
                #else
                        <td>Retailer All : <i class="fa fa-times" aria-hidden="true"></i></td>
                #end
                </p></p>
        #if($isFofoAdmin)
                        <span>Created By : $scheme.getCreatedBy()</span>
                        <p></p>
                #end
                #if(!$scheme.isRetailerAll())
                        <span>Retailer Ids : $scheme.getRetailerIdsString()</span>
                #end
                #if($isFofoAdmin)
                        <p></p>
                        #if((!$scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
                                <div class="btn-group" style="width:40%">
                                        <button class="btn active-scheme" data="$scheme.getId()" style="width:100%;background-color:#e98c8f;color:white;">Active</button>
                                </div>
                        #else
                                #if(($scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
                                        <div class="btn-group" style="width:40%">
                                                <button class="btn expire-scheme" data="$scheme.getId()" style="width:100%;background-color:#007aff;color:white;">Expire</button>
                                        </div>
                                #end
                        #end
                #end
        </div>
</div>
<hr />