Adapt to using messages in django-leaflet-storage
This commit is contained in:
parent
4c0cfea739
commit
85890ae3c0
3 changed files with 13 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
||||||
{% load compress %}
|
{% load compress umap_tags %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -24,11 +24,15 @@
|
||||||
<![endif]-->
|
<![endif]-->
|
||||||
{% block extra_head %}
|
{% block extra_head %}
|
||||||
{% endblock extra_head %}
|
{% endblock extra_head %}
|
||||||
|
<script src="{{ STATIC_URL }}storage/contrib/js/storage.ui.default.js"></script>
|
||||||
<script src="{{ STATIC_URL }}storage/src/locale/fr.js"></script>
|
<script src="{{ STATIC_URL }}storage/src/locale/fr.js"></script>
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||||
</head>
|
</head>
|
||||||
<body class="{% block body_class %}{% endblock %}">
|
<body class="{% block body_class %}{% endblock %}">
|
||||||
|
<div id="storage-ui-container"></div>
|
||||||
|
<div id="storage-alert-container"></div>
|
||||||
|
<div id="storage-tooltip-container"></div>
|
||||||
|
|
||||||
{% block header %}
|
{% block header %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -37,7 +41,6 @@
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block bottom_js %}
|
{% block bottom_js %}
|
||||||
<script src="{{ STATIC_URL }}storage/contrib/js/storage.ui.default.js"></script>
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
L.Storage.on('ui:ready', function () {
|
L.Storage.on('ui:ready', function () {
|
||||||
function fn (e) {
|
function fn (e) {
|
||||||
|
@ -62,8 +65,5 @@
|
||||||
D.Event.on('.more_button', 'click', getMore);
|
D.Event.on('.more_button', 'click', getMore);
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
<div id="storage-ui-container"></div>
|
|
||||||
<div id="storage-alert-container"></div>
|
|
||||||
<div id="storage-tooltip-container"></div>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -16,4 +16,5 @@
|
||||||
{% block map_init %}
|
{% block map_init %}
|
||||||
{% include "leaflet_storage/map_init.html" %}
|
{% include "leaflet_storage/map_init.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% include "leaflet_storage/map_messages.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
|
@ -17,3 +17,10 @@ def paginate_querystring(context, page):
|
||||||
qs = copy(context["request"].GET)
|
qs = copy(context["request"].GET)
|
||||||
qs["p"] = page
|
qs["p"] = page
|
||||||
return qs.urlencode()
|
return qs.urlencode()
|
||||||
|
|
||||||
|
|
||||||
|
@register.filter
|
||||||
|
def ipdb(what):
|
||||||
|
import ipdb
|
||||||
|
ipdb.set_trace()
|
||||||
|
return ''
|
||||||
|
|
Loading…
Reference in a new issue