Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
29061 tejbeer 1
<link href="https://cdn.datatables.net/fixedcolumns/3.3.0/css/fixedColumns.bootstrap.css" rel="stylesheet"/>
2
<style>
3
.dot {
4
  height: 25px;
5
  width: 25px;
6
  border: 3px solid #BADA55;
7
  border-radius: 50px;
8
  display: inline-block;
9
}
10
</style>
11
<section class="wrapper">
12
    <div class="row">
13
        <div class="col-lg-12">
32550 amit.gupta 14
            <h3 class="page-header">TIMELINE</h3>
29061 tejbeer 15
            <ol class="breadcrumb">
16
                <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
17
                <li><i class="icon_document_alt"></i>Onboarding Timeline</li>
18
            </ol>
19
        </div>
20
    </div>
21
    <div class="col-lg-12">
22
        <table class="table table-border table-condensed table-bordered" id="storeTimeline" style="width:100%">
23
 
24
            <thead class="row htable" style="background:#F5F5F5;">
25
 
26
            <tr style="color:black;">
27
                <th>Id</th>
28
                <th>Outlet Name</th>
29
                <th>Code</th>
29763 tejbeer 30
	            <th>Status</th>
31
	            <th>Verification</th>
32
	            <th>Documents</th>
33
		        <th>Store Code</th>
34
		        <th>Training</th>
35
		        <th>Recce</th>
36
		        <th>Advance Stock</th>
37
		        <th>Branding</th> 
38
		        <th>Full Stock</th>
39
		        <th>Billing</th>
40
                <th>Inaugration</th>
41
                <th>Fin Services</th>
42
                <th>Promoter </th>
29061 tejbeer 43
 
44
		    </tr>
45
            </thead>
46
            <tbody>
47
 
48
           #foreach($st in $storeTimelines)
49
           <tr>
32550 amit.gupta 50
               <td>$st.getOnboardingId()</td>
51
               <td>$st.getOutletName() ($st.getCity())</td>
52
               #if($st.getCode())
53
                   <td>$st.getCode()</td>
54
               #else
55
                   <td>-</td>
56
               #end
57
               <td>$st.getStatus()</td>
58
               #foreach($obtm in $st.getObtm())
59
                   #if($obtm.getStatus() == "COMPLETED")
60
                       <td><span class="dot"
61
                                 style="background-color:#3bb143"></span> $obtm.getCompletedTimestamp().format($dateFormatter)
62
                       </td>
63
 
64
                   #elseif($obtm.getStatus() == "DELAY")
65
                       <td><span class="dot"
66
                                 style="background-color:#d3181f"></span>$obtm.getCompletedTimestamp().format($dateFormatter)
67
                       </td>
68
 
69
                   #elseif($obtm.getStatus() == "WIP")
70
                       <td><span class="dot"
71
                                 style="background-color:#ffd300"></span>$obtm.getCompletedTimestamp().format($dateFormatter)
72
                       </td>
73
                   #elseif($obtm.getStatus() == "NOT_STARTED")
74
                       <td><span class="dot"
75
                                 style="background-color:#999DA0"></span> $obtm.getCompletedTimestamp().format($dateFormatter)
76
                       </td>
77
                   #else
78
                       <td>Invalid state</td>
79
                   #end
80
               #end
81
           </tr>
29061 tejbeer 82
 
83
 
84
 
85
            #end
86
 
87
 
88
            </tbody>
89
 
90
        </table>
91
    </div>
92
</section>
93
 
94
<script type="text/javascript">
95
 
96
    $(document).ready(function () {
97
 
98
      var dtable = $('#storeTimeline').DataTable({
99
       "scrollX": true,
100
        orderCellsTop: true,
29072 tejbeer 101
             "order": [[ 0, "desc" ]]
29061 tejbeer 102
       });
103
 
104
     });
105
  </script>   
106
 
107
 
108
 
109