motocultrice labourer aussi les lieux sans email, et proposition opening hours

This commit is contained in:
Tykayn 2025-05-29 13:24:50 +02:00 committed by tykayn
parent 268ac799e4
commit cae369c9cd
9 changed files with 565 additions and 53 deletions

View file

@ -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' %}

View file

@ -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>

View 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>