0001-templates-use-global_context-to-get-to-form-options-.patch
templates/qommon/forms/widgets/nearby-forms.html | ||
---|---|---|
11 | 11 |
data-readonly="true" |
12 | 12 |
{% for key, value in widget.map_attributes.items %}{{key}}="{{value}}" {% endfor %} |
13 | 13 |
{% localize off %} |
14 |
data-init-lat="{{ form_var_carte_lat }}" |
|
15 |
data-init-lng="{{ form_var_carte_lon }}" |
|
14 |
data-init-lat="{{ global_context.form_var_carte_lat }}"
|
|
15 |
data-init-lng="{{ global_context.form_var_carte_lon }}"
|
|
16 | 16 |
{% endlocalize %} |
17 | 17 |
></div> |
18 | 18 |
{% block list-header %} |
19 | 19 |
<h3>Si votre signalement ne figure pas dans la liste ci-dessous, continuez</h3> |
20 | 20 |
{% endblock %} |
21 | 21 |
<ul class="nearby-forms"> |
22 |
{% with distance=form_option_distance|default:100|add:50 %} |
|
22 |
{% with distance=global_context.form_option_distance|default:100|add:50 %}
|
|
23 | 23 |
{% with demands=form.objects.pending|distance_filter:distance %} |
24 | 24 |
{% for formdata in demands %} |
25 | 25 |
<li data-id="{{formdata.number}}" class="nearby-form" |
templates/qommon/forms/widgets/pieces-daact-cartads.html | ||
---|---|---|
1 | 1 |
{% extends "qommon/forms/widgets/comment.html" %} |
2 | 2 | |
3 | 3 |
{% block widget-content %} |
4 |
{% if form_var_dossier_tracking_code %} |
|
4 |
{% if global_context.form_var_dossier_tracking_code %}
|
|
5 | 5 |
{% with webservice.cartads_pieces_daact.data as pieces %} |
6 | 6 |
{% for piece in pieces %} |
7 | 7 |
{% include "qommon/forms/widgets/includes/cartads-piece.html" with piece=piece grid="grid-1-3" only %} |
templates/qommon/forms/widgets/pieces-doc-cartads.html | ||
---|---|---|
1 | 1 |
{% extends "qommon/forms/widgets/comment.html" %} |
2 | 2 | |
3 | 3 |
{% block widget-content %} |
4 |
{% if form_var_dossier_tracking_code %} |
|
4 |
{% if global_context.form_var_dossier_tracking_code %}
|
|
5 | 5 |
{% with webservice.cartads_pieces_doc.data as pieces %} |
6 | 6 |
{% for piece in pieces %} |
7 | 7 |
{% include "qommon/forms/widgets/includes/cartads-piece.html" with piece=piece grid="grid-1-3" only %} |
templates/variants/toodego/qommon/forms/widgets/nearby-list.html | ||
---|---|---|
15 | 15 |
data-readonly="true" |
16 | 16 |
{% for key, value in widget.map_attributes.items %}{{key}}="{{value}}" {% endfor %} |
17 | 17 |
{% localize off %} |
18 |
data-init-lat="{{ form_var_carte_lat }}" |
|
19 |
data-init-lng="{{ form_var_carte_lon }}" |
|
18 |
data-init-lat="{{ global_context.form_var_carte_lat }}"
|
|
19 |
data-init-lng="{{ global_context.form_var_carte_lon }}"
|
|
20 | 20 |
{% endlocalize %} |
21 | 21 |
></div> |
22 | 22 | |
23 | 23 |
<h3>Si votre signalement ne figure pas dans la liste ci-dessous, continuez</h3> |
24 | 24 |
<div id="nearby-list"> |
25 |
{% with distance=form_option_distance|default:100|add:50 %} |
|
25 |
{% with distance=global_context.form_option_distance|default:100|add:50 %}
|
|
26 | 26 |
{% with demands=form.objects.pending|distance_filter:distance %} |
27 | 27 |
{% for formdata in demands %} |
28 | 28 |
<div data-id="{{formdata.number}}" style="display: none" |
templates/variants/toodego/qommon/forms/widgets/pn-notifications.html | ||
---|---|---|
1 |
{% if cards|objects:"pn_message"|with_custom_view:"publies-sur-les-formulaires"|count > 0 %}{% for fiche in cards|objects:"pn_message"|with_custom_view:"publies-sur-les-formulaires" %}{% if form_option_type_notification_raw in fiche|get:"typeformulairemulti" %} |
|
1 |
{% if cards|objects:"pn_message"|with_custom_view:"publies-sur-les-formulaires"|count > 0 %}{% for fiche in cards|objects:"pn_message"|with_custom_view:"publies-sur-les-formulaires" %}{% if global_context.form_option_type_notification_raw in fiche|get:"typeformulairemulti" %}
|
|
2 | 2 |
{% if fiche|get:"priseencompte" == "Non" %} |
3 | 3 |
{% include "qommon/forms/widgets/pn-single-notification.html" with refimgc="refimgdefaut" %} |
4 | 4 |
{% endif %} |
5 |
- |