mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-10-09 17:02:46 +02:00
init symfony repo to modify a place without account
This commit is contained in:
commit
49ba369919
47 changed files with 11002 additions and 0 deletions
37
templates/public/view.html.twig
Normal file
37
templates/public/view.html.twig
Normal file
|
@ -0,0 +1,37 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Hello PublicController!{% endblock %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{{ parent() }}
|
||||
{# <link href='https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.css' rel='stylesheet' /> #}
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<h1>Hello {{ commerce.tags_converted.name }}!</h1>
|
||||
|
||||
<h2>Modification du commerce</h2>
|
||||
{% if status == "Les tags ont été mis à jour avec succès" %}
|
||||
<span class="badge bg-success">{{status}}</span>
|
||||
|
||||
Merci d'avoir contribué à l'amélioration de la base de données OSM, votre contribution sera visible sur de nombreux sites web.
|
||||
{% else %}
|
||||
<span class="badge bg-danger">{{status}}</span>
|
||||
{% endif %}
|
||||
|
||||
<h2>Tags</h2>
|
||||
|
||||
{{dump(commerce)}}
|
||||
|
||||
<a href="{{ path('app_public_index') }}">Retour à la page d'accueil</a>
|
||||
{# {% if commerce.tags_converted."contact:email" is defined %}
|
||||
<a class="btn btn-primary" href="mailto:{{ commerce.tags_converted."contact:email" }}">C'est mon commerce, le modifier</a>
|
||||
{% else %}
|
||||
<a class="btn btn-primary" href="{{ path('app_public_index') }}">C'est mon commerce, pour le modifier je souhaite ajouter mon email de contact</a>
|
||||
{% endif %} #}
|
||||
|
||||
{% endblock %}
|
||||
{% block javascripts %}
|
||||
{{ parent() }}
|
||||
{# <script src='https://api.mapbox.com/mapbox-gl-js/v2.15.0/mapbox-gl.js'></script> #}
|
||||
{% endblock %}
|
Loading…
Add table
Add a link
Reference in a new issue