Subversion Repositories SmartDukaan

Rev

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

Rev 28930 Rev 29899
Line 23... Line 23...
23
		#if($scheme.getExpireTimestamp())
23
		#if($scheme.getExpireTimestamp())
24
			<span>Expired On : $scheme.getFormattedExpireTimestamp()</span>
24
			<span>Expired On : $scheme.getFormattedExpireTimestamp()</span>
25
			<p></p>
25
			<p></p>
26
		#end
26
		#end
27
		</td>
27
		</td>
28
		#if($isAdmin)
28
		#if($isAdmin && $fullAccess)
29
		<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>
29
		<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>
30
		#end
30
		#end
31
		<tr></table>
31
		<tr></table>
32
		<table class="table table-striped table-advance table-hover">
32
		<table class="table table-striped table-advance table-hover">
33
			<tbody>
33
			<tbody>
34
				<tr>	
34
				<tr>	
35
					<th>Item Id</th>
35
					<th>Item Id</th>
36
					<th>Description</th>
36
					<th>Description</th>
37
					#if($isAdmin)
37
					#if($isAdmin && $fullAccess)
38
					<th>Delete Item</th>
38
					<th>Delete Item</th>
39
					#end
39
					#end
40
				</tr>
40
				</tr>
41
				#if($scheme.getItemStringMap().size()>0)
41
				#if($scheme.getItemStringMap().size()>0)
42
    			#foreach( $itemIdDescriptionEntry in $scheme.getItemStringMap().entrySet())
42
    			#foreach( $itemIdDescriptionEntry in $scheme.getItemStringMap().entrySet())
43
    				<tr data="$itemId">
43
    				<tr data="$itemId">
44
    					<td>$itemIdDescriptionEntry.key</td>
44
    					<td>$itemIdDescriptionEntry.key</td>
45
    					<td>$itemIdDescriptionEntry.value</td>
45
    					<td>$itemIdDescriptionEntry.value</td>
46
    					#if($isAdmin)
46
    					#if($isAdmin && $fullAccess)
47
    					<td><button class="btn btn-primary delete-schemes" data-schemeid="$scheme.getId()" data-itemid="$itemIdDescriptionEntry.key">Delete</button>
47
    					<td><button class="btn btn-primary delete-schemes" data-schemeid="$scheme.getId()" data-itemid="$itemIdDescriptionEntry.key">Delete</button>
48
    					#end
48
    					#end
49
    				</tr>
49
    				</tr>
50
    			#end
50
    			#end
51
    			#else
51
    			#else
Line 54... Line 54...
54
		    				</tr>
54
		    				</tr>
55
    				#end
55
    				#end
56
			</tbody>
56
			</tbody>
57
    	</table>
57
    	</table>
58
		<p></p>
58
		<p></p>
59
        #if($isAdmin)
59
        #if($isAdmin && $fullAccess)
60
			<span>Created By : $scheme.getCreatedBy()</span>
60
			<span>Created By : $scheme.getCreatedBy()</span>
61
			<p></p>
61
			<p></p>
62
			#if((!$scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
62
			#if((!$scheme.getActiveTimestamp()) && (!$scheme.getExpireTimestamp()))
63
				<div class="btn-group" style="width:40%">
63
				<div class="btn-group" style="width:40%">
64
					<button class="btn active-scheme" data="$scheme.getId()" style="width:100%;background-color:#e98c8f;color:white;">Active</button>
64
					<button class="btn active-scheme" data="$scheme.getId()" style="width:100%;background-color:#e98c8f;color:white;">Active</button>