| 33501 |
ranu |
1 |
##<div class="col-lg-5">
|
|
|
2 |
#### <h4 style="margin-top:-2px;margin-bottom:6px"><strong>#springMessage("dashboard.myperformance")</strong></h4>
|
|
|
3 |
#### <table class="table table-condensed indianflag">
|
|
|
4 |
#### <tbody>
|
|
|
5 |
#### <tr class="current">
|
|
|
6 |
#### <td>#springMessage("dashboard.currentmonth")</td>
|
|
|
7 |
#### <td>
|
|
|
8 |
#### <div class="stars-outer">
|
|
|
9 |
#### <div class="stars-inner"></div>
|
|
|
10 |
#### </div>
|
|
|
11 |
#### </td>
|
|
|
12 |
#### <td>$currentMonthRating/5</td>
|
|
|
13 |
#### </tr>
|
|
|
14 |
#### <tr class="last">
|
|
|
15 |
#### <td>Last Month</td>
|
|
|
16 |
#### <td>
|
|
|
17 |
#### <div class="stars-outer">
|
|
|
18 |
#### <div class="stars-inner"></div>
|
|
|
19 |
#### </div>
|
|
|
20 |
#### </td>
|
|
|
21 |
#### <td>$lastMonthRating/5</td>
|
|
|
22 |
#### </tr>
|
|
|
23 |
#### <tr class="tilldate">
|
|
|
24 |
#### <td>#springMessage("dashboard.tilldate")</td>
|
|
|
25 |
#### <td>
|
|
|
26 |
#### <div class="stars-outer">
|
|
|
27 |
#### <div class="stars-inner"></div>
|
|
|
28 |
#### </div>
|
|
|
29 |
#### </td>
|
|
|
30 |
#### <td>$ratingTillDate/5</td>
|
|
|
31 |
#### </tr>
|
|
|
32 |
#### </tbody>
|
|
|
33 |
#### </table>
|
|
|
34 |
##</div>
|
| 31020 |
tejbeer |
35 |
|
| 31001 |
amit.gupta |
36 |
|
| 33501 |
ranu |
37 |
<div>
|
| 31001 |
amit.gupta |
38 |
|
| 33501 |
ranu |
39 |
## <div class="row" style="width:50%">
|
|
|
40 |
##
|
|
|
41 |
## <select class="form-control input-sm" id="performance-months" name="months" placeholder="months"
|
|
|
42 |
## style="width:50%; margin:auto;">
|
|
|
43 |
## <option value="" disabled selected>month</option>
|
|
|
44 |
## #foreach($mVM in $monthValueMap.entrySet())
|
|
|
45 |
## #if($mVM.getKey()== $month )
|
|
|
46 |
## <option value="$mVM.getKey()" selected>$mVM.getValue()</option>
|
|
|
47 |
## #else
|
|
|
48 |
## <option value="$mVM.getKey()">$mVM.getValue()</option>
|
|
|
49 |
## #end
|
|
|
50 |
## #end
|
|
|
51 |
## </select>
|
|
|
52 |
## </div>
|
| 31001 |
amit.gupta |
53 |
|
|
|
54 |
<div class="row">
|
| 33501 |
ranu |
55 |
## <div class="col-lg-6">
|
|
|
56 |
## <canvas data-type="radial-gauge" id="hygeine"
|
|
|
57 |
## data-width="200" ,
|
|
|
58 |
## data-height="200"
|
|
|
59 |
## data-title="Hygeine"
|
|
|
60 |
## data-units="${hygienePercentage}%"
|
|
|
61 |
## data-min-value="0"
|
|
|
62 |
## data-max-value="100"
|
|
|
63 |
## data-value="${hygienePercentage}"
|
|
|
64 |
## data-major-ticks="0,20,40,60,80,100"
|
|
|
65 |
## data-minor-ticks="2"
|
|
|
66 |
## data-stroke-ticks="true"
|
|
|
67 |
## data-highlights='[
|
|
|
68 |
## {"from": 0, "to": 80, "color": "red"},
|
|
|
69 |
## {"from": 80, "to": 90, "color": "yellow"},
|
|
|
70 |
## {"from": 90, "to": 100, "color": "green"}
|
|
|
71 |
## ]' ,
|
|
|
72 |
## data-value-box="false"
|
|
|
73 |
## data-color-plate="#fff"
|
|
|
74 |
## data-border-shadow-width="0"
|
|
|
75 |
## data-borders="false"
|
|
|
76 |
## data-needle-type="arrow"
|
|
|
77 |
## data-needle-width="2"
|
|
|
78 |
## data-needle-circle-size="7"
|
|
|
79 |
## data-font-value-size="42"
|
|
|
80 |
## data-font-title-size="42"
|
|
|
81 |
## data-font-units-size="42"
|
|
|
82 |
## data-needle-circle-outer="true"
|
|
|
83 |
## data-needle-circle-inner="false"
|
|
|
84 |
## data-animation-duration="1500"
|
|
|
85 |
## data-animation-rule="linear"
|
|
|
86 |
## ></canvas>
|
|
|
87 |
##
|
|
|
88 |
## </div>
|
| 31001 |
amit.gupta |
89 |
|
| 33501 |
ranu |
90 |
<div class="col-lg-7">
|
| 33502 |
ranu |
91 |
<h4 style="margin-top:-2px;margin-bottom:24px"><strong>Banner for Shopfront</strong></h4>
|
| 33501 |
ranu |
92 |
<div class="form-group">
|
|
|
93 |
<div id="myCarousel" class="carousel slide" data-ride="carousel">
|
|
|
94 |
<!-- Wrapper for slides -->
|
|
|
95 |
<div class="carousel-inner text-center">
|
|
|
96 |
#if(!$printResources.isEmpty())
|
|
|
97 |
#set($first = true)
|
|
|
98 |
#foreach($printResource in $printResources)
|
|
|
99 |
<div class="item #if($first)active#set($first = false)#end">
|
|
|
100 |
<img src="$printResource.getThumbnailUrl()" alt="Los Angeles"
|
|
|
101 |
style="max-height:150px;width:auto;max-width: 100%;margin: auto;">
|
|
|
102 |
<div class="carousel-caption">
|
|
|
103 |
<br>
|
| 33502 |
ranu |
104 |
<button class="btn btn-danger btn-sm partner_print_resources">Get File !
|
|
|
105 |
</button>
|
| 33501 |
ranu |
106 |
</div>
|
|
|
107 |
</div>
|
|
|
108 |
#end
|
|
|
109 |
#end
|
|
|
110 |
</div>
|
|
|
111 |
<!-- Left and right controls -->
|
|
|
112 |
<a class="left carousel-control" href="#myCarousel" data-slide="prev">
|
|
|
113 |
<span class="glyphicon glyphicon-chevron-left"></span>
|
|
|
114 |
<span class="sr-only">Previous</span>
|
|
|
115 |
</a>
|
|
|
116 |
<a class="right carousel-control" href="#myCarousel" data-slide="next">
|
|
|
117 |
<span class="glyphicon glyphicon-chevron-right"></span>
|
|
|
118 |
<span class="sr-only">Next</span>
|
|
|
119 |
</a>
|
|
|
120 |
</div>
|
|
|
121 |
</div>
|
| 31001 |
amit.gupta |
122 |
</div>
|
| 33501 |
ranu |
123 |
<div class="col-lg-5">
|
|
|
124 |
<h4 style="margin-top:-2px;margin-bottom:24px"><strong>Investment</strong></h4>
|
| 31001 |
amit.gupta |
125 |
<canvas data-type="radial-gauge" id="investment"
|
|
|
126 |
data-width="200"
|
|
|
127 |
data-height="200"
|
|
|
128 |
data-title="Investments"
|
|
|
129 |
data-units="${investments.get('okDays')}/${dayOfMonth}"
|
|
|
130 |
data-value="${investments.get('okDays')}"
|
|
|
131 |
data-min-value="0"
|
|
|
132 |
data-major-ticks=[]
|
|
|
133 |
data-max-value="${monthDays}"
|
|
|
134 |
data-highlights='[
|
| 25654 |
amit.gupta |
135 |
{"from": 0, "to": 7, "color": "red"},
|
|
|
136 |
{"from": 7, "to": 12, "color": "yellow"},
|
|
|
137 |
{"from": 12, "to": ${monthDays}, "color": "green"}
|
|
|
138 |
]'
|
| 31001 |
amit.gupta |
139 |
data-value-box="false"
|
|
|
140 |
data-color-plate="#fff"
|
|
|
141 |
data-border-shadow-width="0"
|
|
|
142 |
data-borders="false"
|
|
|
143 |
data-needle-type="arrow"
|
|
|
144 |
data-needle-width="2"
|
|
|
145 |
data-needle-circle-size="7"
|
|
|
146 |
data-font-value-size="42"
|
|
|
147 |
data-font-title-size="42"
|
|
|
148 |
data-font-units-size="42"
|
|
|
149 |
|
|
|
150 |
data-needle-circle-outer="true"
|
|
|
151 |
data-needle-circle-inner="false"
|
|
|
152 |
data-animation-duration="1500"
|
|
|
153 |
data-animation-rule="linear"
|
|
|
154 |
></canvas>
|
|
|
155 |
</div>
|
|
|
156 |
</div>
|
|
|
157 |
|
|
|
158 |
</div>
|
|
|
159 |
<script>
|
|
|
160 |
starTotal = 5;
|
|
|
161 |
ratings = {
|
|
|
162 |
current: $currentMonthRating,
|
|
|
163 |
last: $lastMonthRating,
|
|
|
164 |
tilldate: $ratingTillDate
|
|
|
165 |
};
|
|
|
166 |
for (const rating in ratings) {
|
|
|
167 |
// 2
|
|
|
168 |
const starPercentage = (ratings[rating] / starTotal) * 100;
|
|
|
169 |
// 3
|
|
|
170 |
const starPercentageRounded = `${starPercentage}%`;
|
|
|
171 |
// 4
|
|
|
172 |
document.querySelector(`.${rating} .stars-inner`).style.width = starPercentageRounded;
|
|
|
173 |
}
|
|
|
174 |
</script>
|
| 31004 |
amit.gupta |
175 |
<script type="text/javascript" src="resources/js/gauge.min.js"></script>
|