-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #443 from MTES-MCT/bug/js-errors
Variables de configuration manquantes dans le formulaires de haie
- Loading branch information
Showing
11 changed files
with
58 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...o/templates/moulinette/_form_scripts.html → ...amenagement/moulinette/_form_scripts.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{% extends "moulinette/home.html" %} | ||
|
||
{% load l10n %} | ||
|
||
{% block extra_css %} | ||
{% include 'amenagement/moulinette/_form_styles.html' %} | ||
{% endblock %} | ||
{% block extra_js %} | ||
{% include 'amenagement/moulinette/_form_scripts.html' %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{% extends "moulinette/home.html" %} | ||
|
||
{% load static %} | ||
|
||
{% block extra_js %} | ||
<script>var SIMULATION_FORM_ID = "moulinette-form";</script> | ||
<script defer src="{% static 'js/libs/form_submit_feedback.js' %}"></script> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,3 @@ | ||
{% extends 'base.html' %} | ||
|
||
{% load evaluations static l10n %} | ||
|
||
{% block title %}Simulation réglementaire du projet{% endblock %} | ||
|
||
{% block extra_css %} | ||
{% include 'moulinette/_form_styles.html' %} | ||
{% endblock %} | ||
|
||
{% block extra_js %} | ||
<script> | ||
var ADDRESS_AUTOCOMPLETE_FIELD_NAME = 'address'; | ||
var DISPLAY_MARKER = {{ display_marker|yesno:'true,false' }}; | ||
var CENTER_MAP = {lng: {{ center_map.0|unlocalize }}, lat: {{ center_map.1|unlocalize }}}; | ||
var DEFAULT_ZOOM = {{ default_zoom }}; | ||
var LAT_FIELD_ID = 'id_lat'; | ||
var LNG_FIELD_ID = 'id_lng'; | ||
var IS_MAP_STATIC = {{ is_map_static|yesno:'true,false' }}; | ||
var SIMULATION_FORM_ID = "moulinette-form"; | ||
var MAP_TYPE = "Form"; // This is only for analytics purpose | ||
</script> | ||
{% include 'moulinette/_form_scripts.html' %} | ||
|
||
{% endblock %} |