custom link to edit

This commit is contained in:
Tykayn 2025-05-26 13:07:49 +02:00 committed by tykayn
parent cb240dd169
commit fd72a1cedc
3 changed files with 19 additions and 10 deletions

View file

@ -63,6 +63,11 @@
<a class="btn btn-info" href="{{ path('app_public_index') }}">{{ 'display.contact_humans'|trans }}</a>
</div>
{% if commerce.tags_converted.image %}
<img src="{{ commerce.tags_converted.image }}" alt="Image du lieu" class="img-fluid mb-3">
{% endif %}
<h2>{{ 'display.tags'|trans }}</h2>
<fieldset>
{% for attributes in commerce.tag %}
@ -98,6 +103,8 @@
<div class="lien-OpenStreetMap">
<a href="https://www.openstreetmap.org/node/{{ commerce['@attributes'].id }}" target="_blank">{{ 'display.view_on_osm'|trans }}</a>
</div>
{{ dump(commerce) }}
</span>
<div class="disclaimer p-3">
@ -126,9 +133,9 @@
{% block javascripts %}
{{ parent() }}
{# <script src='https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.js'></script> #}
{# <script>
{% if commerce is not empty %}
<script src='https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.js'></script>
{# <script>
{% if commerce is not empty and mapbox_token is not empty and maptiler_token is not empty %}
mapboxgl.accessToken = '{{ mapbox_token }}';
map = new mapboxgl.Map({
container: 'map',
@ -146,6 +153,6 @@
}).setHTML('<h1>{{ commerce.tags_converted.name }}</h1>'))
.addTo(map);
{% endif %}
</script> #}
</script> #}
{% endblock %}
{% endblock %}