add local mapbox script, update objects
This commit is contained in:
parent
c6e05463b1
commit
b1f6433b7d
13 changed files with 309 additions and 182 deletions
|
@ -9,17 +9,17 @@
|
|||
</style>
|
||||
|
||||
<div class="example-wrapper">
|
||||
<h1>Labourage fait sur la zone "{{ zone }}" ✅</h1>
|
||||
<h1>Labourage fait sur la zone "{{ stats.zone }} {{stats.name}}" ✅</h1>
|
||||
<a href="{{ path('app_admin_labourer', {'zip_code': stats.zone}) }}" class="btn btn-primary" id="labourer">Labourer les mises à jour</a>
|
||||
<a href="{{ path('app_admin_stats', {'zip_code': stats.zone}) }}" class="btn btn-primary" id="labourer">Voir les résultats</a>
|
||||
|
||||
<p>
|
||||
lieux trouvés en plus: {{ results|length }}
|
||||
lieux trouvés en plus: {{ new_places_counter }}
|
||||
</p>
|
||||
|
||||
{# {{ dump(results) }} #}
|
||||
<hr>
|
||||
|
||||
|
||||
<p>
|
||||
commerces existants déjà en base: {{ commerces|length }}
|
||||
</p>
|
||||
|
@ -30,49 +30,7 @@ commerces existants déjà en base: {{ commerces|length }}
|
|||
|
||||
<tbody>
|
||||
{% for commerce in commerces %}
|
||||
<tr>
|
||||
<td>
|
||||
{# {{ dump(commerce) }} #}
|
||||
<a href="{{ path('app_admin_commerce',
|
||||
{
|
||||
'id': commerce.id
|
||||
}
|
||||
) }}">
|
||||
{% if commerce.name is not null and commerce.name != '' %}
|
||||
{{ commerce.name }},
|
||||
{% else %}
|
||||
(un lieu sans nom)
|
||||
{% endif %}
|
||||
</a>
|
||||
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
<td>
|
||||
{{ commerce.address }}
|
||||
</td>
|
||||
<td>
|
||||
{{ commerce.email }}
|
||||
</td>
|
||||
<td>
|
||||
{{ commerce.website }}
|
||||
</td>
|
||||
<td>
|
||||
{# {{ commerce.opening_hours }} #}
|
||||
</td>
|
||||
<td>
|
||||
{{ commerce.note }}
|
||||
</td>
|
||||
<td>
|
||||
<a href="https://www.openstreetmap.org/{{ commerce.getOsmKind() }}/{{ commerce.getOsmId() }}" target="_blank">
|
||||
<i class="bi bi-eye"></i>
|
||||
voir sur osm</a>
|
||||
<a href="{{ path('app_admin_delete', {'id': commerce.id}) }}">
|
||||
<i class="bi bi-trash"></i>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
{% include 'admin/stats/row.html.twig' %}
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue