Subversion Repositories SmartDukaan

Rev

Rev 23928 | Rev 25068 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23928 Rev 24445
Line 10... Line 10...
10
	    </script>
10
	    </script>
11
<h3 style="padding-left:3%;padding-top:2%;font-weight:bold;">Scheme Id : $scheme.getId()</h3>
11
<h3 style="padding-left:3%;padding-top:2%;font-weight:bold;">Scheme Id : $scheme.getId()</h3>
12
 
12
 
13
<div class="row" style="padding-left:3%;">
13
<div class="row" style="padding-left:3%;">
14
	<div class="col-lg-4">
14
	<div class="col-lg-4">
15
	<table>
15
	<table><tr>
16
		<td>
16
		<td>
17
		#if($scheme.getActiveTimestamp())
17
		#if($scheme.getActiveTimestamp())
18
			<span>Activated On : $scheme.getFormattedActiveTimestamp()</span>
18
			<span>Activated On : $scheme.getFormattedActiveTimestamp()</span>
19
			<p></p>
19
			<p></p>
20
		#end
20
		#end
21
		#if($scheme.getExpireTimestamp())
21
		#if($scheme.getExpireTimestamp())
22
			<span>Expired On : $scheme.getFormattedExpireTimestamp()</span>
22
			<span>Expired On : $scheme.getFormattedExpireTimestamp()</span>
23
			<p></p>
23
			<p></p>
24
		#end
24
		#end
25
		</td>
25
		</td>
-
 
26
		#if($isAdmin)
26
		<td><button class="btn btn-sm btn-primary add-scheme" data="$scheme.getId()" style="width:100%;background-color:#007aff;color:white;padding-right: 10px" data-toggle="modal" data-target="#newItemToSchemeModal">Add Item</button></td></table>
27
		<td><button class="btn btn-sm btn-primary add-scheme" data="$scheme.getId()" style="width:100%;background-color:#007aff;color:white;padding-right: 10px" data-toggle="modal" data-target="#newItemToSchemeModal">Add Item</button></td>
-
 
28
		#end
-
 
29
		<tr></table>
27
		<table class="table table-striped table-advance table-hover">
30
		<table class="table table-striped table-advance table-hover">
28
			<tbody>
31
			<tbody>
29
				<tr>	
32
				<tr>	
30
					<th>Item Id</th>
33
					<th>Item Id</th>
31
					<th>Description</th>
34
					<th>Description</th>
32
					#if($roleType == "true")
35
					#if($isAdmin)
33
					<th>DeleteItem</th>
36
					<th>Delete Item</th>
34
					#end
37
					#end
35
				</tr>
38
				</tr>
36
				#if($scheme.getItemStringMap().size()>0)
39
				#if($scheme.getItemStringMap().size()>0)
37
    			#foreach( $itemIdDescriptionEntry in $scheme.getItemStringMap().entrySet())
40
    			#foreach( $itemIdDescriptionEntry in $scheme.getItemStringMap().entrySet())
38
    				<tr data="$itemId">
41
    				<tr data="$itemId">
39
    					<td>$itemIdDescriptionEntry.key</td>
42
    					<td>$itemIdDescriptionEntry.key</td>
40
    					<td>$itemIdDescriptionEntry.value</td>
43
    					<td>$itemIdDescriptionEntry.value</td>
41
    					#if($roleType == "true")
44
    					#if($isAdmin)
42
    					<td><button class="btn btn-primary delete-schemes" data-schemeid="$scheme.getId()" data-itemid="$itemIdDescriptionEntry.key">Delete</button>
45
    					<td><button class="btn btn-primary delete-schemes" data-schemeid="$scheme.getId()" data-itemid="$itemIdDescriptionEntry.key">Delete</button>
43
    					#end
46
    					#end
44
    				</tr>
47
    				</tr>
45
    			#end
48
    			#end
46
    			#else
49
    			#else
Line 61... Line 64...
61
		
64
		
62
		
65
		
63
		
66
		
64
		
67
		
65
		</p></p>
68
		</p></p>
66
		#set($fofoAdmin="false")
-
 
67
        	#if($roleType == "true")
-
 
68
	          	#set($fofoAdmin="true")
-
 
69
            #end
-
 
70
        #if($fofoAdmin == "true")
69
        #if($isAdmin)
71
			<span>Created By : $scheme.getCreatedBy()</span>
70
			<span>Created By : $scheme.getCreatedBy()</span>
72
			<p></p>
71
			<p></p>
73
		#end
72
		#end
74
		#if(!$scheme.isRetailerAll())
73
		#if(!$scheme.isRetailerAll())
75
			<span>Retailer Ids : $scheme.getRetailerIdsString()</span>
74
			<span>Retailer Ids : $scheme.getRetailerIdsString()</span>
76
		#end
75
		#end
77
		#if($fofoAdmin == "true")
76
		#if($isAdmin)
78
			<p></p>
77
			<p></p>
79
			#if((!$scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
78
			#if((!$scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
80
				<div class="btn-group" style="width:40%">
79
				<div class="btn-group" style="width:40%">
81
					<button class="btn active-scheme" data="$scheme.getId()" style="width:100%;background-color:#e98c8f;color:white;">Active</button>
80
					<button class="btn active-scheme" data="$scheme.getId()" style="width:100%;background-color:#e98c8f;color:white;">Active</button>
82
				</div>
81
				</div>