toodego: import changes to parking, parc-velo and autopartage tiles (#39549)
This commit is contained in:
parent
5c48d464a6
commit
f388b14d4f
|
@ -10,7 +10,7 @@
|
|||
{% endif %}
|
||||
<div class="tile-head">
|
||||
<div class="tile-title">
|
||||
<h2>{{autopartage.properties.adresse}} {{autopartage.properties.typeautopartage}} </h2>
|
||||
<h2>Station {{autopartage.properties.typeautopartage}} {{autopartage.properties.adresse|cut:'LPA'}} </h2>
|
||||
{% with autopartage.properties.typeautopartage|slugify as autopartage_type %}
|
||||
{% with "logo:"|add:autopartage_type as asset_name %}
|
||||
<span class="producer" style="background-image: url({% asset_url asset_name %}">{{ autopartage.properties.typeautopartage }}</span>
|
||||
|
@ -21,24 +21,18 @@
|
|||
{% include "combo/dashboard_cell_icons.html" %}
|
||||
{% if is_place_page %}
|
||||
<div class="tile-content">
|
||||
|
||||
<div class="place-info">
|
||||
{% include "combo/json/includes/share.html" with place=autopartage url=cell|place_page_url %}
|
||||
{% placeholder "infos-pratiques" %}
|
||||
</div>
|
||||
|
||||
<div class="place-data">
|
||||
<div class="adresse">
|
||||
|
||||
{% localize off %}
|
||||
<a class="action-goto" data-lat="{{autopartage.geometry.coordinates.1}}" data-lng="{{autopartage.geometry.coordinates.0}}" href="/m-y-rendre/?to={{cell.id}}">M'y rendre</a>
|
||||
{% endlocalize %}
|
||||
</div> <!-- adresse -->
|
||||
|
||||
</div> <!-- place-data -->
|
||||
|
||||
{% gnm_place_map autopartage.geometry.coordinates.1 autopartage.geometry.coordinates.0 %}
|
||||
|
||||
</div> <!-- tile-content -->
|
||||
{% else %}
|
||||
<div class="tile-content">
|
||||
|
|
|
@ -10,19 +10,17 @@
|
|||
{% endif %}
|
||||
<div class="tile-head">
|
||||
<div class="tile-title">
|
||||
<h2>{% if parc_velo.properties.adresse != '' %}{{parc_velo.properties.adresse}}{% else %}Stationnement vélo {{parc_velo.properties.nom}}{%endif%}</h2>
|
||||
<h2>Stationnement vélo {% if parc_velo.properties.adresse != '' %}{{parc_velo.properties.adresse}}{% else %}{{parc_velo.properties.nom}}{%endif%}</h2>
|
||||
<span class="producer" style="background-image: url({% asset_url "logo:grandlyon" %})">Grand Lyon</span>
|
||||
</div>
|
||||
</div>
|
||||
{% include "combo/dashboard_cell_icons.html" %}
|
||||
{% if is_place_page %}
|
||||
<div class="tile-content">
|
||||
|
||||
<div class="place-info">
|
||||
{% include "combo/json/includes/share.html" with place=parc_velo url=cell|place_page_url %}
|
||||
{% placeholder "infos-pratiques" %}
|
||||
</div>
|
||||
|
||||
<div class="place-data">
|
||||
<div class="adresse">
|
||||
<h3>Adresse</h3>
|
||||
|
@ -35,11 +33,8 @@
|
|||
<a class="action-goto" data-lat="{{parc_velo.geometry.coordinates.1}}" data-lng="{{parc_velo.geometry.coordinates.0}}" href="/m-y-rendre/?to={{cell.id}}">M'y rendre</a>
|
||||
{% endlocalize %}
|
||||
</div> <!-- adresse -->
|
||||
|
||||
</div> <!-- place-data -->
|
||||
|
||||
{% gnm_place_map parc_velo.geometry.coordinates.1 parc_velo.geometry.coordinates.0 %}
|
||||
|
||||
</div> <!-- tile-content -->
|
||||
{% else %}
|
||||
<div class="tile-content">
|
||||
|
|
|
@ -11,56 +11,48 @@
|
|||
<div class="tile-head">
|
||||
<div class="tile-title">
|
||||
<h2>{{parking.properties.nom}}</h2>
|
||||
<span class="producer" style="background-image: url({% asset_url "logo:grandlyon" %})">Grand Lyon</span>
|
||||
{% with parking.properties.gestionnaire||slugify as gestionnaire_name %}
|
||||
{% with "logo:"|add:gestionnaire_name as asset_name %}
|
||||
<span class="producer" style="background-image: url({% asset_url asset_name %})">{{parking.properties.gestionnaire}}</span>
|
||||
{% endwith %}
|
||||
{% endwith %}
|
||||
</div>
|
||||
</div>
|
||||
{% include "combo/dashboard_cell_icons.html" %}
|
||||
{% if is_place_page %}
|
||||
<div class="tile-content">
|
||||
|
||||
<div class="place-info">
|
||||
{% include "combo/json/includes/share.html" with place=parking url=cell|place_page_url %}
|
||||
{% placeholder "infos-pratiques" %}
|
||||
|
||||
{% if parking.properties.capacitevoiture != '' %}<br /><b>{{parking.properties.capacitevoiture}}</b> place{{parking.properties.capacitevoiture|pluralize}} voiture{% endif %}{% if parking.properties.etat != '' and parking.properties.etat != 'DONNÉES INDISPONIBLES' %}, <b>{{parking.properties.etat}}</b>
|
||||
{% elif parking.properties.etat == 'DONNÉES INDISPONIBLES' %}<br />(temps réel indisponible)
|
||||
{% endif %}
|
||||
{% if parking.properties.capacitevoiture != '' %}<br /><b>{{parking.properties.capacitevoiture}}</b> place{{parking.properties.capacitevoiture|pluralize}} voiture{% endif %}
|
||||
{% if parking.properties.capacitepmr != '' %}<br /><b>{{parking.properties.capacitepmr}}</b> place{{parking.properties.capacitepmr|pluralize}} PMR{% endif %}
|
||||
{% if parking.properties.capacitevelo != '0' %}<br /><b>{{parking.properties.capacitevelo}}</b> place{{parking.properties.capacitevelo|pluralize}} vélo{% endif %}
|
||||
{% if parking.properties.capacitemoto != '' %}<br /><b>{{parking.properties.capacitemoto}}</b> place{{parking.properties.capacitemoto|pluralize}} moto{% endif %}
|
||||
{% if parking.properties.capaciteautopartage != '' %}<br /><b>{{parking.properties.capaciteautopartage}}</b> place{{parking.properties.capaciteautopartage|pluralize}} autopartage{% endif %}
|
||||
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="place-data">
|
||||
<div class="adresse">
|
||||
<h3>Adresse</h3>
|
||||
<h5>Adresse</h5>
|
||||
{% localize off %}
|
||||
<a class="action-goto" data-lat="{{parking.geometry.coordinates.1}}" data-lng="{{parking.geometry.coordinates.0}}" href="/m-y-rendre/?to={{cell.id}}">M'y rendre</a>
|
||||
{% endlocalize %}
|
||||
</div> <!-- adresse -->
|
||||
</div> <!-- place-data -->
|
||||
|
||||
{% gnm_place_map parking.geometry.coordinates.1 parking.geometry.coordinates.0 %}
|
||||
|
||||
</div> <!-- tile-content -->
|
||||
{% else %}
|
||||
<div class="tile-content">
|
||||
|
||||
<br /><p class="available car-park"> <b>{% if parking.properties.capacitevoiture != '' %}{{parking.properties.capacitevoiture}}</b> place{{parking.properties.capacitevoiture|pluralize}} voiture{% endif %}{% if parking.properties.etat != '' and parking.properties.etat != 'DONNÉES INDISPONIBLES' %}, <b><span class="badge {% if "libre" in parking.properties.etat %}open{% elif "complet" in parking.properties.etat %}closed{% endif %}">{{parking.properties.etat|lower|cut:"parking "}}</span></b>
|
||||
{% elif parking.properties.etat == 'DONNÉES INDISPONIBLES' %} (temps réel indisponible)
|
||||
{% endif %}</p>
|
||||
<br /><p class="available car-park"> <b>{% if parking.properties.capacitevoiture != '' %}{{parking.properties.capacitevoiture}}</b> place{{parking.properties.capacitevoiture|pluralize}} voiture{% endif %}{% if parking.properties.etat != '' and parking.properties.etat != 'DONNEES INDISPONIBLES' %}, <b><span class="badge {% if 'libre' in parking.properties.etat %}open{% elif 'complet' in parking.properties.etat %}closed{% endif %}">{{parking.properties.etat|lower|cut:"parking "}}</span></b>{% endif %}</p>
|
||||
{% if parking.properties.capacitepmr != '' %}<p class="available pmr-park"> <b>{{parking.properties.capacitepmr}}</b> place{{parking.properties.capacitepmr|pluralize}} PMR</p>{% endif %}
|
||||
{% if parking.properties.capacitevelo != '0' %}<p class="available bike-park"> <b>{{parking.properties.capacitevelo}}</b> place{{parking.properties.capacitevelo|pluralize}} vélo</p>{% endif %}
|
||||
{% if parking.properties.capacitemoto != '' %}<p class="available motorcycle-park"> <b>{{parking.properties.capacitemoto}}</b> place{{parking.properties.capacitemoto|pluralize}} moto</p>{% endif %}
|
||||
{% if parking.properties.capaciteautopartage != '' %}<p class="available autopartage"><b>{{parking.properties.capaciteautopartage}}</b> place{{parking.properties.capaciteautopartage|pluralize}} autopartage</p>{% endif %}
|
||||
{% if parking.properties.capaciteautopartage != '' %}<p class="available autopartage"> <b>{{parking.properties.capaciteautopartage}}</b> place{{parking.properties.capaciteautopartage|pluralize}} autopartage</p>{% endif %}
|
||||
</div>
|
||||
<div class="tile-actions">
|
||||
{% localize off %}
|
||||
<a class="action-goto" data-lat="{{parking.geometry.coordinates.1}}" data-lng="{{parking.geometry.coordinates.0}}" href="/m-y-rendre/?to={{cell.id}}">M'y rendre</a>
|
||||
{% endlocalize %}
|
||||
{# <a class="action-more-info" href="{{cell|place_page_url}}">d'infos</a> #}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue