diff --git a/djnro/static/css/style.css b/djnro/static/css/style.css index 2ddd45ac..93dc3b3f 100644 --- a/djnro/static/css/style.css +++ b/djnro/static/css/style.css @@ -139,3 +139,7 @@ footer.auth { input[readonly].input { color: rgba(51, 51, 51, 0.5); } + +dd.preproduction { + color: rgb(230, 93, 0); +} \ No newline at end of file diff --git a/djnro/static/img/edupin-preprod.png b/djnro/static/img/edupin-preprod.png new file mode 100644 index 00000000..ee84cc26 Binary files /dev/null and b/djnro/static/img/edupin-preprod.png differ diff --git a/djnro/static/js/home-page-map.js b/djnro/static/js/home-page-map.js index 64fedc9c..6c4e0871 100644 --- a/djnro/static/js/home-page-map.js +++ b/djnro/static/js/home-page-map.js @@ -5,12 +5,14 @@ var map; var bounds; var image; + var imagePreProd; var infoWindow; var cityImg; var countryImg; var styles; var markersUrl; var pinImg; + var pinImgPreProd; function initialize() { image = new google.maps.MarkerImage(pinImg, @@ -20,6 +22,12 @@ new google.maps.Point(12, 40), new google.maps.Size(25, 40) ); + imagePreProd = new google.maps.MarkerImage(pinImgPreProd, + new google.maps.Size(50, 80), + new google.maps.Point(0, 0), + new google.maps.Point(12, 40), + new google.maps.Size(25, 40) + ); var styleArray = [ { featureType : "all", @@ -126,12 +134,10 @@ marker, 'click', function() { - infoWindow.setContent ( "

" + infoWindow.setContent ( "

" + jsonMarker.inst + "

" - + - - "
" + + "
" + "
" + "
" + "
" @@ -203,7 +211,7 @@ 'map' : map, 'title' : title, 'address' : address, - 'icon' : image, + 'icon' : markerObj.stage == 1 ? image : imagePreProd, }); return marker } @@ -350,6 +358,7 @@ image = ''; infoWindow; pinImg = mapDiv.data("pin"); + pinImgPreProd = mapDiv.data("pin-preprod"); pinGrpImg = mapDiv.data("group-pin"); addr = {}; styles = [{ diff --git a/djnro/templates/front/index.html b/djnro/templates/front/index.html index 18e63a07..c3890036 100644 --- a/djnro/templates/front/index.html +++ b/djnro/templates/front/index.html @@ -8,7 +8,7 @@ {% block bodyclass %}home{% endblock %} {% block content %}
-
+
diff --git a/edumanage/views.py b/edumanage/views.py index 7bdc7ef0..e0394d98 100644 --- a/edumanage/views.py +++ b/edumanage/views.py @@ -2043,6 +2043,7 @@ def cache_key(inst_key): point['wired_no'] = u"%s" % (sl.wired_no) point['SSID'] = u"%s" % (sl.SSID) point['key'] = u"%s" % sl.pk + point['stage'] = u"%s" % (sl.stage) points[cache_key].append(point) points_ret.extend(points[cache_key])