mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-06-20 01:44:42 +02:00
motocultrice labourer aussi les lieux sans email, et proposition opening hours
This commit is contained in:
parent
268ac799e4
commit
cae369c9cd
9 changed files with 565 additions and 53 deletions
|
@ -22,26 +22,66 @@
|
|||
commerces existants disposant d'un moyen de contact mail: {{ commerces|length }}
|
||||
</p>
|
||||
{# {{ dump(commerces[0]) }} #}
|
||||
<ul>
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Adresse</th>
|
||||
<th>Email</th>
|
||||
<th>Site web</th>
|
||||
<th>Horaires</th>
|
||||
<th>Note</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for commerce in commerces %}
|
||||
<li>
|
||||
{% if commerce.name is not null %}
|
||||
<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
|
||||
(un lieu sans nom)
|
||||
{% endif %}
|
||||
</a>
|
||||
|
||||
{# {{ commerce.note }},
|
||||
{{ commerce.has_address }},
|
||||
{{ commerce.has_website }},
|
||||
{{ commerce.has_wheelchair }},
|
||||
{{ commerce.has_note }} #}
|
||||
|
||||
<a href="https://www.openstreetmap.org/{{ commerce.getOsmKind() }}/{{ commerce.getOsmId() }}" target="_blank">voir sur osm</a>
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
</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>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
|
@ -62,22 +62,33 @@
|
|||
</div>
|
||||
|
||||
{% if hide_filled_inputs and
|
||||
(commerce_overpass.tags_converted['addr:street']) is defined and commerce_overpass.tags_converted['addr:street'] is not empty
|
||||
and (commerce_overpass.tags_converted['addr:housenumber']) is defined and commerce_overpass.tags_converted['addr:housenumber'] is not empty
|
||||
(commerce_overpass.tags_converted['addr:street']) is defined and commerce_overpass.tags_converted['addr:street'] is empty
|
||||
and (commerce_overpass.tags_converted['addr:housenumber']) is defined and commerce_overpass.tags_converted['addr:housenumber'] is empty
|
||||
%}
|
||||
{% include 'public/edit/address.html.twig' %}
|
||||
{% endif %}
|
||||
|
||||
{% if hide_filled_inputs and (commerce_overpass.tags_converted.opening_hours) is defined and commerce_overpass.tags_converted.opening_hours is empty %}
|
||||
{% include 'public/edit/opening_hours.html.twig' %}
|
||||
<span class="deja-rempli">
|
||||
{{ 'display.already_filled'|trans }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% include 'public/edit/opening_hours.html.twig' %}
|
||||
|
||||
{% if hide_filled_inputs and (commerce_overpass.tags_converted.wheelchair) is defined and commerce_overpass.tags_converted.wheelchair is empty %}
|
||||
<span class="deja-rempli">
|
||||
{{ 'display.already_filled'|trans }}
|
||||
</span>
|
||||
|
||||
{% endif %}
|
||||
{% include 'public/edit/wheelchair.html.twig' %}
|
||||
{% endif %}
|
||||
|
||||
{% if hide_filled_inputs and (commerce_overpass.tags_converted.ask_angela) is defined and commerce_overpass.tags_converted.ask_angela is not empty %}
|
||||
{% include 'public/edit/ask_angela.html.twig' %}
|
||||
<span class="deja-rempli">
|
||||
{{ 'display.already_filled'|trans }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% include 'public/edit/ask_angela.html.twig' %}
|
||||
|
||||
{% include 'public/edit/tags.html.twig' %}
|
||||
|
||||
|
|
|
@ -4,22 +4,21 @@
|
|||
{{ 'display.opening_hours'|trans }}</h2>
|
||||
<p class="description">{{ 'display.opening_hours_description'|trans }}</p>
|
||||
|
||||
{% if commerce_overpass.tags_converted.opening_hours is defined and commerce_overpass.tags_converted.opening_hours != '' %}
|
||||
{# {{ dump(commerce_overpass.tags_converted.opening_hours) }} #}
|
||||
{% if commerce_overpass.tags_converted.opening_hours is defined and commerce_overpass.tags_converted.opening_hours != '' %}
|
||||
<input type="text" placeholder="Remplissez" class="form-control" name="custom__opening_hours" value="{{ commerce_overpass.tags_converted.opening_hours }}">
|
||||
{% else %}
|
||||
<input type="text" placeholder="Lundi de 10h à 12h et de 14h à 18h" class="form-control" name="custom__opening_hours" value="">
|
||||
<br> ajoutez les horaires au format OSM
|
||||
<br>
|
||||
{% endif %}
|
||||
|
||||
<div class="examples d-none">
|
||||
{# <div class="examples d-none">
|
||||
Exemples :
|
||||
<ul>
|
||||
<li>Écrivez "24/7" pour indiquer que le commerce est ouvert 24 heures sur 24</li>
|
||||
<li>Écrivez "Mo-Fr 9:00 - 18:00" pour indiquer que le commerce est ouvert du lundi au vendredi de 9h à 18h</li>
|
||||
<li>Pour des horaires plus complexes, écrivez "Mo-Fr 9:00 - 18:00; Sa 9:00 - 12:00" pour indiquer que le commerce est ouvert du lundi au vendredi de 9h à 18h et le samedi de 9h à 12h</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div> #}
|
||||
<hr>
|
||||
<script src="{{ asset('js/main.js') }}"></script>
|
||||
</script>
|
||||
|
|
28
templates/public/places_with_note.html.twig
Normal file
28
templates/public/places_with_note.html.twig
Normal file
|
@ -0,0 +1,28 @@
|
|||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block title %}Les lieux ayant des notes{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="container">
|
||||
<h1>Commerces avec une note</h1>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Note</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for place in places %}
|
||||
<tr>
|
||||
<td><a href="{{ path('app_public_edit', {'id': place.id}) }}">{{ place.name }}</a></td>
|
||||
<td>{{ place.note }}</td>
|
||||
<td><a class="btn btn-primary" href="{{ path('app_public_edit', {'id': place.id}) }}">
|
||||
<i class="bi bi-pencil"></i>
|
||||
</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue