mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-10-09 17:02:46 +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 %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue