Subversion Repositories SmartDukaan

Rev

Rev 23340 | Rev 23855 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
22860 ashik.ali 1
<h3 style="padding-left:3%;padding-top:2%;font-weight:bold;">Scheme Id : $scheme.getId()</h3>
2
<div class="row" style="padding-left:3%;">
23343 ashik.ali 3
	<div class="col-lg-4">
4
		#if($scheme.getActiveTimestamp())
5
			<span>Activated On : $scheme.getFormattedActiveTimestamp()</span>
22860 ashik.ali 6
			<p></p>
23343 ashik.ali 7
		#end
8
		#if($scheme.getExpireTimestamp())
9
			<span>Expired On : $scheme.getFormattedExpireTimestamp()</span>
10
			<p></p>
11
		#end
12
		<table class="table table-striped table-advance table-hover">
13
			<tbody>
14
				<tr>
15
					<th>Item Id</th>
16
					<th>Description</th>
17
				</tr>
18
    			#foreach( $itemIdDescriptionEntry in $scheme.getItemStringMap().entrySet())
19
    				<tr data="$itemId">
20
    					<td>$itemIdDescriptionEntry.key</td>
21
    					<td>$itemIdDescriptionEntry.value</td>
22
    				</tr>
23
    			#end
24
			</tbody>
25
    	</table>
26
 
27
		<p></p>
28
		#if($scheme.isRetailerAll())
29
			<td>Retailer All : <i class="fa fa-check" aria-hidden="true"></i></td>
30
		#else
31
			<td>Retailer All : <i class="fa fa-times" aria-hidden="true"></i></td>
32
		#end
33
		</p></p>
34
		#set($fofoAdmin="false")
35
        #foreach($roleType in $roleTypes)
36
        	#if($roleType == "FOFO_ADMIN")
37
	          	#set($fofoAdmin="true")
38
            #end
39
        #end
40
        #if($fofoAdmin == "true")
22860 ashik.ali 41
			<span>Created By : $scheme.getCreatedBy()</span>
42
			<p></p>
23343 ashik.ali 43
		#end
44
		#if(!$scheme.isRetailerAll())
45
			<span>Retailer Ids : $scheme.getRetailerIdsString()</span>
46
		#end
47
		#if($fofoAdmin == "true")
22860 ashik.ali 48
			<p></p>
49
			#if((!$scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
50
				<div class="btn-group" style="width:40%">
23181 ashik.ali 51
					<button class="btn active-scheme" data="$scheme.getId()" style="width:100%;background-color:#e98c8f;color:white;">Active</button>
22860 ashik.ali 52
				</div>
53
			#else
54
				#if(($scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
55
					<div class="btn-group" style="width:40%">
56
						<button class="btn expire-scheme" data="$scheme.getId()" style="width:100%;background-color:#007aff;color:white;">Expire</button>
57
					</div>
58
				#end
59
			#end
23343 ashik.ali 60
		#end
22860 ashik.ali 61
	</div>
62
</div>
63
<hr />