Subversion Repositories SmartDukaan

Rev

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

Rev 26318 Rev 30522
Line 1... Line 1...
1
<section>
1
<style>
-
 
2
* {box-sizing: border-box;}
-
 
3
ul {list-style-type: none;}
2
 
4
 
-
 
5
.weekdays {
3
<div class="row">
6
  margin: 0;
4
		<div class="col-lg-12">
7
  padding: 10px 0;
5
			<h3 class="page-header"><i class="icon_document_alt"></i>Franchisee Visit DASHBOARD</h3>
8
  background-color: #ddd;
-
 
9
}
-
 
10
 
6
			<ol class="breadcrumb">
11
.weekdays li {
7
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
12
  display: inline-block;
8
				<li><i class="icon_document_alt"></i>Franchisee Visit </li>		
13
  width: 13.6%;
9
						  	
14
  color: #666;
-
 
15
  text-align: center;
-
 
16
}
-
 
17
 
10
			</ol>
18
.days {
11
		</div>
19
  padding: 10px 0;
-
 
20
  background: #eee;
12
	</div>
21
  margin: 0;
13
	
22
}
-
 
23
 
-
 
24
.days li {
14
	<div id="franchisee-request-table">
25
  list-style-type: none;
15
		<div class="row">
26
  display: inline-block;
-
 
27
  width: 13.6%;
16
	    	<div class="col-lg-12">
28
  text-align: center;
17
	    		<table class="table table-border table-condensed table-bordered" id="franchisee-table">
29
  margin-bottom: 5px;
18
	    		<thead>
30
  font-size:12px;
19
	    				<tr>
31
  color: #777;
-
 
32
}
-
 
33
 
20
	    					<th>Partner Name</th>
34
.days li .active {
21
	    					<th>Agenda</th>
35
  padding: 5px;
22
	    					<th>Partner Remark</th>
36
  background: #1abc9c;
23
	    					<th>Outside Visibility</th>
37
  color: white !important
-
 
38
}
-
 
39
 
24
	    					<th>Instore Visibility</th>
40
/* Add media queries for smaller screens */
25
	    					<th>Outside Stock</th>
41
@media screen and (max-width:720px) {
26
	    					<th>System Knowledge</th>
42
  .weekdays li, .days li {width: 13.1%;}
-
 
43
}
-
 
44
 
27
	    					<th>Working Device</th>
45
@media screen and (max-width: 420px) {
28
	    					<th>Working Printer</th>
46
  .weekdays li, .days li {width: 12.5%;}
29
	    					<th>Smartdukaan Tshirt</th>
47
  .days li .active {padding: 2px;}
-
 
48
}
-
 
49
 
30
	    					<th>Latest Dummies</th>
50
@media screen and (max-width: 290px) {
31
	    					<th>Investment</th>
51
  .weekdays li, .days li {width: 12.2%;}
-
 
52
}
32
	    					<th>mtd</th>
53
</style>
-
 
54
 
-
 
55
 
-
 
56
 
33
	    					<th>status</th>
57
<ul class="weekdays">
34
	    					<th>created_by</th>
58
  <li>Mo</li>
35
	    					<th>Assign</th>
59
  <li>Tu</li>
36
	    					<th>Created</th>
60
  <li>We</li>
37
	    					<th>Updated</th>
61
  <li>Th</li>
38
	    									
62
  <li>Fr</li>
39
	    				</tr>
63
  <li>Sa</li>
40
	    		</thead>
64
  <li>Su</li>
41
	    		<tbody>		
65
</ul>
-
 
66
 
42
	    					#if(!$franchiseeVisits.isEmpty())
67
<ul class="days">
-
 
68
 
43
			    			#foreach( $request in $franchiseeVisits )
69
#foreach ($i in [0..$spaces])
44
			    				<tr class="open-lead" data="$request.getId()">
-
 
45
			    				<td>$request.getPartnerName()</td>
70
  <li></li>
46
			    		        <td>$request.getAgenda()</td>
71
 #end
47
			    				<td>$request.getPartnerRemark()</td>
-
 
48
			    				<td>$request.getOutsideVisibity()</td>
-
 
49
			    				<td>$request.getInstoreVisibility()</td>
-
 
50
			    				<td>$request.getOutsideStock()</td>
-
 
-
 
72
 
51
			    				<td>$request.getSystemKnowledge()</td>
73
#foreach ($i in [1..$days[$month]])
52
			    				<td>$request.getWorkingDevice()</td>
-
 
53
			    				<td>$request.getWorkingPrinter()</td>
-
 
54
			    				<td>$request.getWorkingPrinter()</td>
-
 
55
			    				<td>$request.getCarryBags()</td>
74
 <li>  
56
			    				<td>$request.getSmartdukaanTshirt()</td>
-
 
57
			    				<td>$request.getLatestDummies()</td>
-
 
58
			    				<td>$request.getInvestment()</td>
-
 
-
 
75
 
59
			    				<td>$request.getMtd()</td>
76
 #if($franchiseeVisitMap.get($i))
60
			    				<td>$request.getHygiene()</td>
77
 #foreach ($franchiseeVisit in$franchiseeVisitMap.get($i))
-
 
78
 
61
			    				<td>$request.getStatus()</td>
79
 #if($franchiseeVisit.getStatus()== "CLOSE")
62
			    				#if($authIdAndAuthUserMap.get($request.getAssignTo()))
80
 <div style = "color:green" class="franchisee-detail" data-visitid ="$franchiseeVisit.getId()" data-toggle="modal" data-target="#franchisee-visit-detail">
63
			    				<td>$authIdAndAuthUserMap.get($request.getAssignTo()).getFirstName()</td>
81
 $franchiseeVisit.getPartnerName() <br> ($franchiseeVisit.getCreatedTimestamp().format($dateTimeFormatter))
64
			    				#else
-
 
-
 
82
 
65
			    				<td></td>
83
 </div>
66
			    				#end
-
 
67
			    				
84
 #else
68
                                <td>$request.getCreatedTimestamp().format($dateTimeFormatter)</td>
85
 <div style = "color:yellow" class="franchisee-detail" data-visitid ="$franchiseeVisit.getId()"  data-toggle="modal" data-target="#franchisee-visit-detail">
69
			    				<td>$request.getUpdatedTimestamp().format($dateTimeFormatter)</td>
86
 $franchiseeVisit.getPartnerName() <br> ($franchiseeVisit.getCreatedTimestamp().format($dateTimeFormatter))
-
 
87
 
70
			    				
88
 </div>
71
			    				
89
 #end
72
			    				</tr>	
90
 
-
 
91
 
73
			    	   #end
92
 #end
74
		    			#else
93
  #end
75
		    				<tr>
94
  $i  
76
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
-
 
-
 
95
 
-
 
96
 
77
		    				</tr>
97
 </li>
-
 
98
 
78
		    			#end
99
#end
79
	    			</tbody>
100
</ul>
-
 
101
 
-
 
102
 
-
 
103
 
-
 
104
 
-
 
105
  <div id="franchisee-visit-detail" class="modal" role="dialog">
80
	    		</table>
106
	  <div class="modal-dialog">
81
	    	</div>
107
	    <div class="modal-content">
82
	    </div>
108
	     
83
    </div>
109
    </div>
84
    
-
 
85
</section>
-
 
86
110
   </div>
-
 
111
 </div>		
-
 
112
 
-
 
113
 
-
 
114
 
-
 
115
 
-
 
116
 
-
 
117
 
-
 
118
	
-
 
119
 
-
 
120