Add updated front end, updated CaseStudy model and profiles app
This commit is contained in:
@ -100,13 +100,13 @@
|
||||
}).addTo(map);
|
||||
});
|
||||
|
||||
// Add an on-click listener for map click events. Show popup with button to submit a casestudy
|
||||
map.on('click', function(e) {
|
||||
var popup = L.popup()
|
||||
.setLatLng(e.latlng)
|
||||
.setContent("<a class='btn btn-primary btn-sm' href='{% url 'create' %}?lat="+e.latlng.lat+"&lng="+e.latlng.lng+"' role='button'>{% trans "Submit a Case Study" %}</a>")
|
||||
.openOn(map);
|
||||
});
|
||||
<!--// Add an on-click listener for map click events. Show popup with button to submit a casestudy-->
|
||||
<!--map.on('click', function(e) {-->
|
||||
<!--var popup = L.popup()-->
|
||||
<!--.setLatLng(e.latlng)-->
|
||||
<!--.setContent("<a class='btn btn-primary btn-sm' href='{% url 'create' %}?lat="+e.latlng.lat+"&lng="+e.latlng.lng+"' role='button'>{% trans "Submit a Case Study" %}</a>")-->
|
||||
<!--.openOn(map);-->
|
||||
<!--});-->
|
||||
}
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user