Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pyDez committed Oct 2, 2024
1 parent f8de151 commit f0b0914
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions envergo/templates/haie/moulinette/form.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,22 @@ <h2 id="moulinette-title" class="centered">Commencez à décrire votre projet de
method="post"
novalidate
autocomplete="off"
action="{% url 'moulinette_result' %}{% if request.GET %}?{{ request.GET.urlencode }}{% endif %}"
action="{% url 'moulinette_result' %}"
id="moulinette-form">
{% csrf_token %}

{% 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 %}
<input type="hidden"
name="department"
value="{{ request.GET.department|default:'' }}" />
<input type="hidden"
name="element"
value="{{ request.GET.element|default:'' }}" />
<input type="hidden"
name="travaux"
value="{{ request.GET.travaux|default:'' }}" />

<!-- TODO remove: temporary fix waiting for ticket GUHv1.3 -->
<input type="hidden" name="department" value="36" />
Expand Down

0 comments on commit f0b0914

Please sign in to comment.