-
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 remote-tracking branch 'origin/main' into feature/guh-home-form
- Loading branch information
Showing
13 changed files
with
211 additions
and
188 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 |
---|---|---|
@@ -1,63 +1,73 @@ | ||
{% load utils %} | ||
|
||
{% if display_title %}<h1 class="fr-h2 centered">Simulez votre projet en phase amont !</h1>{% endif %} | ||
|
||
<form class="fr-mb-3w" | ||
method="post" | ||
novalidate | ||
autocomplete="off" | ||
action="{% url "moulinette_result" %}" | ||
id="moulinette-form"> | ||
{% csrf_token %} | ||
|
||
{% include '_form_header.html' with form=form %} | ||
|
||
<div id="form-section-coords" class="form-section"> | ||
|
||
{{ form.lng.as_hidden }} | ||
{{ form.lat.as_hidden }} | ||
|
||
{% include '_field_snippet.html' with field=form.address %} | ||
|
||
<div class="fr-input-group fr-input-group-map"> | ||
<label class="step"> | ||
Double-cliquez ou déplacez le marqueur sur la carte pour ajuster | ||
l'emplacement du projet. | ||
</label> | ||
<figure class="fr-content-media"> | ||
<div id="map-container" class="ratio-16x9 fr-mt-1w fr-mb-2w fr-raw-link"> | ||
<div class="ratio-content"> | ||
<div class="leaflet-container"> | ||
<div id="map"></div> | ||
</div> | ||
{% if display_title %} | ||
<h1 id="moulinette-title" class="fr-h2 centered">Simulez votre projet en phase amont !</h1> | ||
{% endif %} | ||
|
||
<div id="moulinette-grid"> | ||
<div id="moulinette-col" class="fr-col"> | ||
<div id="moulinette" class="moulinette"> | ||
<form class="fr-mb-3w" | ||
method="post" | ||
novalidate | ||
autocomplete="off" | ||
action="{% url "moulinette_result" %}" | ||
id="moulinette-form"> | ||
{% csrf_token %} | ||
|
||
{% include '_form_header.html' with form=form %} | ||
|
||
<div id="form-section-coords" class="form-section"> | ||
|
||
{{ form.lng.as_hidden }} | ||
{{ form.lat.as_hidden }} | ||
|
||
{% include '_field_snippet.html' with field=form.address %} | ||
|
||
<div class="fr-input-group fr-input-group-map"> | ||
<label class="step"> | ||
Double-cliquez ou déplacez le marqueur sur la carte pour ajuster | ||
l'emplacement du projet. | ||
</label> | ||
<figure class="fr-content-media"> | ||
<div id="map-container" class="ratio-16x9 fr-mt-1w fr-mb-2w fr-raw-link"> | ||
<div class="ratio-content"> | ||
<div class="leaflet-container"> | ||
<div id="map"></div> | ||
</div> | ||
</div> | ||
</div> | ||
</figure> | ||
|
||
{% if form.lat.errors or form.lng.errors %} | ||
<p class="fr-error-text"> | ||
↑ | ||
Les coordonnées saisies sont incorrectes | ||
↑ | ||
</p> | ||
|
||
{% endif %} | ||
</div> | ||
</div> | ||
</figure> | ||
|
||
{% if form.lat.errors or form.lng.errors %} | ||
<p class="fr-error-text"> | ||
↑ | ||
Les coordonnées saisies sont incorrectes | ||
↑ | ||
</p> | ||
<div id="form-section-surface" class="form-section"> | ||
<div class="fr-mb-3w"> | ||
<label class="step">Complétez les informations décrivant le projet</label> | ||
</div> | ||
<p class="hint-header"> | ||
<span class="fr-icon-info-fill" aria-hidden="true"></span> | ||
Surfaces à prendre en compte : bâti, voirie, espaces verts, remblais et bassins — impacts définitifs et | ||
temporaires (travaux). | ||
</p> | ||
{% include '_field_snippet.html' with field=form.created_surface %} | ||
{% include '_field_snippet.html' with field=form.final_surface %} | ||
</div> | ||
|
||
{% endif %} | ||
</div> | ||
</div> | ||
{% include 'amenagement/moulinette/_form_footer.html' %} | ||
</form> | ||
|
||
{% include 'amenagement/moulinette/_form_help_sidebars.html' %} | ||
|
||
<div id="form-section-surface" class="form-section"> | ||
<div class="fr-mb-3w"> | ||
<label class="step">Complétez les informations décrivant le projet</label> | ||
</div> | ||
<p class="hint-header"> | ||
<span class="fr-icon-info-fill" aria-hidden="true"></span> | ||
Surfaces à prendre en compte : bâti, voirie, espaces verts, remblais et bassins — impacts définitifs et temporaires (travaux). | ||
</p> | ||
{% include '_field_snippet.html' with field=form.created_surface %} | ||
{% include '_field_snippet.html' with field=form.final_surface %} | ||
</div> | ||
|
||
{% include 'amenagement/moulinette/_form_footer.html' %} | ||
</form> | ||
|
||
{% include 'amenagement/moulinette/_form_help_sidebars.html' %} | ||
</div> |
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 was deleted.
Oops, something went wrong.
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,30 +1,47 @@ | ||
{% load utils %} | ||
|
||
{% include 'haie/moulinette/_form_header.html' %} | ||
{% if display_title %} | ||
<h2 id="moulinette-title" class="centered">Commencez à décrire votre projet de travaux sur haies</h2> | ||
{% endif %} | ||
<div id="moulinette-grid"> | ||
<div id="moulinette-col" class="fr-col"> | ||
<div id="moulinette" class="moulinette"> | ||
{% if display_title %} | ||
<p class="fr-text--lead"> | ||
Ce simulateur vous permet de connaître instantanément les autorisations à obtenir de l’administration, les | ||
procédures et les délais. | ||
Il est anonyme et sans création de compte. | ||
Département : Indre (36) | ||
</p> | ||
<p class="fr-text--light">Tous les champs sont obligatoires.</p> | ||
{% endif %} | ||
<form class="fr-mb-3w" | ||
method="post" | ||
novalidate | ||
autocomplete="off" | ||
action="{% url 'moulinette_result' %}{% if request.GET %}?{{ request.GET.urlencode }}{% endif %}" | ||
id="moulinette-form"> | ||
{% csrf_token %} | ||
|
||
<form class="fr-mb-3w" | ||
method="post" | ||
novalidate | ||
autocomplete="off" | ||
action="{% url 'moulinette_result' %}{% if request.GET %}?{{ request.GET.urlencode }}{% endif %}" | ||
id="moulinette-form"> | ||
{% csrf_token %} | ||
{% include '_form_header.html' with form=form %} | ||
|
||
{% include '_form_header.html' with form=form %} | ||
<!-- Include current query parameters as hidden fields to keep Triage inputs --> | ||
{% for key, value in request.GET.items %}<input type="hidden" name="{{ key }}" value="{{ value }}" />{% endfor %} | ||
|
||
<!-- Include current query parameters as hidden fields to keep Triage inputs --> | ||
{% for key, value in request.GET.items %}<input type="hidden" name="{{ key }}" value="{{ value }}" />{% endfor %} | ||
<!-- TODO remove: temporary fix waiting for ticket GUHv1.3 --> | ||
<input type="hidden" name="department" value="36" /> | ||
<input type="hidden" name="element" value="haie" /> | ||
<input type="hidden" name="travaux" value="arrachage" /> | ||
|
||
<!-- TODO remove: temporary fix waiting for ticket GUHv1.3 --> | ||
<input type="hidden" name="department" value="36" /> | ||
<input type="hidden" name="element" value="haie" /> | ||
<input type="hidden" name="travaux" value="arrachage" /> | ||
<div class="form-section"> | ||
{% include '_radio_snippet.html' with field=form.profil %} | ||
{% include '_radio_snippet.html' with field=form.motif %} | ||
{% include '_radio_snippet.html' with field=form.reimplantation %} | ||
</div> | ||
|
||
<div class="form-section"> | ||
{% include '_radio_snippet.html' with field=form.profil %} | ||
{% include '_radio_snippet.html' with field=form.motif %} | ||
{% include '_radio_snippet.html' with field=form.reimplantation %} | ||
</div> | ||
{% include 'haie/moulinette/_form_footer.html' %} | ||
</form> | ||
|
||
{% include 'haie/moulinette/_form_footer.html' %} | ||
</form> | ||
</div> | ||
</div> | ||
</div> |
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
Oops, something went wrong.