0001-dpark-add-a-title-cell-field-71302.patch
static/toulouse-2022/config.json | ||
---|---|---|
124 | 124 |
} |
125 | 125 |
}, |
126 | 126 |
"dpark": { |
127 | 127 |
"name": "Information abonnement stationnement", |
128 | 128 |
"url": "{{ passerelle_url }}dpark/{{ dpark_instance }}/infos/{{ user_nameid }}/", |
129 | 129 |
"varnames": [], |
130 | 130 |
"form": [ |
131 | 131 |
{"label": "Slug du connecteur Dpark", "varname": "dpark_instance"}, |
132 |
{"label": "Url du formulaire d'appairage", "varname": "pairing_form_url"} |
|
132 |
{"label": "Url du formulaire d'appairage", "varname": "pairing_form_url"}, |
|
133 |
{"label": "Titre de la cellule (optionnel)", "varname": "dpark_title", "required": false} |
|
133 | 134 |
], |
134 | 135 |
"log_errors": true, |
135 | 136 |
"cache_duration": 30, |
136 | 137 |
"force_async": true |
137 | 138 |
} |
138 | 139 |
} |
139 | 140 |
} |
140 | 141 |
} |
templates/combo/json/dpark.html | ||
---|---|---|
1 |
<h2>Informations abonnement stationnement</h2>
|
|
1 |
<h2>{% if dpark_title %}{{ dpark_title }}{% else %}Informations abonnement stationnement{% endif %}</h2>
|
|
2 | 2 |
<div> |
3 | 3 |
{% if not json.data %} |
4 | 4 |
<div><p>Vous pouvez relier votre compte Publik à votre compte D-Park via <a href="{{pairing_form_url}}">ce formulaire</a>.</p></div> |
5 | 5 |
{% else %} |
6 | 6 |
<div class="dpark-infos"> |
7 | 7 |
{% for info in json.data %} |
8 | 8 |
<h3>{{ info.text }}</h3> |
9 | 9 |
<div class="dpark-info-identity section"> |
10 |
- |