Subversion Repositories SmartDukaan

Rev

Rev 25110 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 25110 Rev 27874
Line 52... Line 52...
52
#end
52
#end
53
#if($targetValues.size()>0)
53
#if($targetValues.size()>0)
54
  	<div id="target-history-table">
54
  	<div id="target-history-table">
55
		<div class="row">
55
		<div class="row">
56
	    	<div class="col-lg-7">
56
	    	<div class="col-lg-7">
57
	    	#if($roleType == "true")
57
	    	#if($isAdmin)
58
	    		<table class="table table-bordered" id="targetSlabForAdmin">
58
	    		<table class="table table-bordered" id="targetSlabForAdmin">
59
	    		#else
59
	    		#else
60
	    		<table class="table table-bordered">
60
	    		<table class="table table-bordered">
61
	    		#end
61
	    		#end
62
	    			<thead>
62
	    			<thead>
63
	    				<tr>
63
	    				<tr>
64
	    					#if($roleType == "true")
64
	    					#if($isAdmin)
65
	    					<th>Partner</th>
65
	    					<th>Partner</th>
66
	    					#end
66
	    					#end
67
	    					<th>Target Value</th>
67
	    					<th>Target Value</th>
68
	    					<th>Total Sale</th>
68
	    					<th>Total Sale</th>
69
	    					<th>Total Sale%</th>
69
	    					<th>Total Sale%</th>
Line 71... Line 71...
71
	    					#if($today == "true")
71
	    					#if($today == "true")
72
	    					<th>Today's Sale</th>
72
	    					<th>Today's Sale</th>
73
	    					#end 
73
	    					#end 
74
	    					<th>Eligibility</th>
74
	    					<th>Eligibility</th>
75
	    					<th>Remaining</th>
75
	    					<th>Remaining</th>
76
	    					#if($roleType == "true" && $today)
76
	    					#if($isAdmin && $today)
77
	    					<th>Action</th>
77
	    					<th>Action</th>
78
	    					#end
78
	    					#end
79
	    				</tr>
79
	    				</tr>
80
	    				</thead>
80
	    				</thead>
81
	    				<tbody>
81
	    				<tbody>
82
			    			#foreach( $fofoId in $fofoIds)
82
			    			#foreach( $fofoId in $fofoIds)
83
			    				#if($targetValues.get($fofoId))
83
			    				#if($targetValues.get($fofoId))
84
			    				<tr>
84
			    				<tr>
85
			    					#if($roleType == "true")
85
			    					#if($isAdmin)
86
			    					<td>$fofoIdsAndCustomRetailer.get($fofoId).getBusinessName()</td>
86
			    					<td>$fofoIdsAndCustomRetailer.get($fofoId).getBusinessName()</td>
87
			    					#end
87
			    					#end
88
			    					#if($targetValues.get($fofoId))
88
			    					#if($targetValues.get($fofoId))
89
			    					<td>$targetValues.get($fofoId)</td>
89
			    					<td>$targetValues.get($fofoId)</td>
90
			    					#else
90
			    					#else
Line 120... Line 120...
120
			    					#if($remainingTarget.get($fofoId) && $remainingTarget.get($fofoId)>0)
120
			    					#if($remainingTarget.get($fofoId) && $remainingTarget.get($fofoId)>0)
121
			    					<td>$remainingTarget.get($fofoId)</td>
121
			    					<td>$remainingTarget.get($fofoId)</td>
122
			    					#else
122
			    					#else
123
			    					<td>0</td>
123
			    					<td>0</td>
124
			    					#end
124
			    					#end
125
			    					#if($roleType == "true" && $today)
125
			    					#if($isAdmin && $today)
126
			    					<td><button class="btn btn-primary" id="edit-partner-target" data-targetid="$partnerTargetsMap.get($fofoId)"  data-target="#targetModal" data-toggle="modal" data-backdrop="false">Edit</button></td>
126
			    					<td><button class="btn btn-primary" id="edit-partner-target" data-targetid="$partnerTargetsMap.get($fofoId)"  data-target="#targetModal" data-toggle="modal" data-backdrop="false">Edit</button></td>
127
			    					#end
127
			    					#end
128
			    				</tr>
128
			    				</tr>
129
			    				#end
129
			    				#end
130
			    			#end
130
			    			#end