Compare commits
2 commits
e87fe1531d
...
e27a979a53
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e27a979a53 | ||
|
|
5825eac998 |
5 changed files with 8 additions and 11 deletions
|
|
@ -372,8 +372,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
container: mapDiv,
|
||||
style: window.MAP_STYLE_LIGHT,
|
||||
center: window.MAP_DEFAULT_CENTER || [4.3572, 50.8477],
|
||||
zoom: 12,
|
||||
cooperativeGestures: true
|
||||
zoom: 12
|
||||
});
|
||||
|
||||
map.addControl(new maplibregl.NavigationControl(), 'top-right');
|
||||
|
|
|
|||
|
|
@ -305,8 +305,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
container: mapDiv,
|
||||
style: window.MAP_STYLE_LIGHT,
|
||||
center: window.MAP_DEFAULT_CENTER || [4.3572, 50.8477],
|
||||
zoom: 12,
|
||||
cooperativeGestures: true
|
||||
zoom: 12
|
||||
});
|
||||
|
||||
// 1. Fond de plan & Orthophotos (LayerSwitcherControl)
|
||||
|
|
|
|||
|
|
@ -238,8 +238,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
container: mapDiv,
|
||||
style: window.MAP_STYLE_LIGHT,
|
||||
center: window.MAP_DEFAULT_CENTER || [4.3572, 50.8477],
|
||||
zoom: 11,
|
||||
cooperativeGestures: true
|
||||
zoom: 11
|
||||
});
|
||||
|
||||
map.addControl(new maplibregl.NavigationControl(), 'top-right');
|
||||
|
|
|
|||
|
|
@ -999,7 +999,7 @@ def observation_change_status(request, observation_id):
|
|||
# Si passage en needs_info : publier aussi dans la discussion pour alerter l'auteur
|
||||
if new_status == 'needs_info':
|
||||
from notifications.services import get_or_create_observation_discussion, post_message
|
||||
discussion, _ = get_or_create_observation_discussion(observation)
|
||||
discussion, _created = get_or_create_observation_discussion(observation)
|
||||
post_message(
|
||||
discussion=discussion,
|
||||
author=request.user,
|
||||
|
|
@ -1015,7 +1015,7 @@ def observation_change_status(request, observation_id):
|
|||
_("Compléments d'information fournis. L'observation est à nouveau à traiter.")
|
||||
)
|
||||
from notifications.services import get_or_create_observation_discussion, post_message
|
||||
discussion, _ = get_or_create_observation_discussion(observation)
|
||||
discussion, _created = get_or_create_observation_discussion(observation)
|
||||
post_message(
|
||||
discussion=discussion,
|
||||
author=request.user,
|
||||
|
|
@ -1281,7 +1281,7 @@ def observation_add(request, observation_id=None):
|
|||
comment=_("Observation modifiée et renvoyée par l'auteur."),
|
||||
)
|
||||
from notifications.services import get_or_create_observation_discussion, post_message
|
||||
discussion, _ = get_or_create_observation_discussion(observation)
|
||||
discussion, _created = get_or_create_observation_discussion(observation)
|
||||
post_message(
|
||||
discussion=discussion,
|
||||
author=request.user,
|
||||
|
|
@ -2003,7 +2003,7 @@ def observation_add_message(request, observation_id):
|
|||
reverse('observations:observation_detail', args=[observation_id]) + '#discussion'
|
||||
)
|
||||
|
||||
discussion, _ = get_or_create_observation_discussion(observation)
|
||||
discussion, _created = get_or_create_observation_discussion(observation)
|
||||
|
||||
files = request.FILES.getlist('attachments') or None
|
||||
post_message(discussion=discussion, author=request.user, content=content, files=files)
|
||||
|
|
|
|||
|
|
@ -4502,7 +4502,7 @@ def preparation_order_add_message(request, pk):
|
|||
next_url += '#discussion'
|
||||
return redirect(next_url)
|
||||
|
||||
discussion, _ = get_or_create_preparation_order_discussion(preparation_order)
|
||||
discussion, _created = get_or_create_preparation_order_discussion(preparation_order)
|
||||
files = request.FILES.getlist('attachments') or None
|
||||
post_message(discussion=discussion, author=request.user, content=content, files=files)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue