diff --git a/public/order.js b/public/order.js
index 0820c6d79292859d17209483b0f84df414691d94..281a244f687cc3be2994e0d8428ee09e3447997c 100755
--- a/public/order.js
+++ b/public/order.js
@@ -93,11 +93,11 @@ function bindFinishPage(id, name, photo, username) {
'<img class="img-circle" src="'+photo+'"/><br>\n' +
'<h2>'+username+'</h2>\n' +
'<p>'+name+'</p>\n' +
- '<i id="star-1" class="icon icon-star" onclick="setRating(1)"></i>\n' +
- '<i id="star-2" class="icon icon-star" onclick="setRating(2)"></i>\n' +
- '<i id="star-3" class="icon icon-star" onclick="setRating(3)"></i>\n' +
- '<i id="star-4" class="icon icon-star" onclick="setRating(4)"></i>\n' +
- '<i id="star-5" class="icon icon-star" onclick="setRating(5)"></i>\n' +
+ '<i id="star-1" class="icon icon-star-full big" onclick="setRating(1)"></i>\n' +
+ '<i id="star-2" class="icon icon-star-full big" onclick="setRating(2)"></i>\n' +
+ '<i id="star-3" class="icon icon-star-full big" onclick="setRating(3)"></i>\n' +
+ '<i id="star-4" class="icon icon-star-full big" onclick="setRating(4)"></i>\n' +
+ '<i id="star-5" class="icon icon-star-full big" onclick="setRating(5)"></i>\n' +
'<input type="hidden" id="order-rating" value="0"> \n' +
'<br>\n' +
'<br>\n' +
@@ -111,7 +111,7 @@ function setRating(val) {
if (i <= val) {
document.getElementById('star-'+i).style.color = "orange";
} else {
- document.getElementById('star-'+i).style.color = "black";
+ document.getElementById('star-'+i).style.color = "#c2c2c2";
}
}
document.getElementById('order-rating').value = val;
@@ -125,6 +125,11 @@ function completeOrder(id) {
var comment = document.getElementById('order-comment').value;
var data = 'id='+id+'&id_customer='+customerID+'&source='+orderPickup+'&destination='+orderDestination+'&rating='+rating+'&comment='+comment;
+ if (rating == 0) {
+ alert("You must give rating to your driver");
+ return;
+ }
+
if (comment.trim() == "") {
alert("You must give feedback to your driver");
return;
diff --git a/public/style.css b/public/style.css
index 01c90e823ae7f150991945144d9e8c21c1cfcb75..27f03814c7d223e996cadf13eb508f25abd6e38e 100755
--- a/public/style.css
+++ b/public/style.css
@@ -147,6 +147,11 @@ body {
text-rendering: optimizeLegibility
}
+.icon.big {
+ font-size: 3em;
+ color: #c2c2c2;
+}
+
.icon.icon-mail:before {
content: '\e0a5'
}
@@ -159,6 +164,10 @@ body {
content: '\e108'
}
+.icon.icon-star-full:before{
+ content:'\e105'
+}
+
/* ------------------------- PROFIL -------------------------*/
.img-circle {