mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-06-20 01:44:42 +02:00
up stats page
This commit is contained in:
parent
a412cb977a
commit
e4bf3753b0
9 changed files with 357 additions and 124 deletions
|
@ -1,11 +1,53 @@
|
|||
<tr>
|
||||
<td style="background-color: {{ commerce.hasAddress() ? 'yellowgreen' : 'transparent' }};">
|
||||
<a href="{{ path('app_admin_commerce', {'id': commerce.id}) }}">{{ commerce.name }}</a>
|
||||
<td class="{{ commerce.hasAddress() ? 'filled' : '' }}">
|
||||
<a href="{{ path('app_admin_commerce', {'id': commerce.id}) }}">
|
||||
{% if commerce.name is empty %}
|
||||
<span class="no-name">
|
||||
(sans nom)
|
||||
</span>
|
||||
{% else %}
|
||||
{{ commerce.name }}
|
||||
{% endif %}
|
||||
</a>
|
||||
</td>
|
||||
<td style="background-color: {{ commerce.mainTag ? 'yellowgreen' : 'transparent' }};">{{ commerce.mainTag }}</td>
|
||||
<td style="background-color: {{ commerce.hasAddress() ? 'yellowgreen' : 'transparent' }};">{{ commerce.address }}</td>
|
||||
<td style="background-color: {{ commerce.hasWebsite() ? 'yellowgreen' : 'transparent' }};">{{ commerce.website }}</td>
|
||||
<td style="background-color: {{ commerce.hasWheelchair() ? 'yellowgreen' : 'transparent' }};">{{ commerce.wheelchair }}</td>
|
||||
<td style="background-color: {{ commerce.hasNote() ? 'yellowgreen' : 'transparent' }};">{{ commerce.note }}</td>
|
||||
<td style="background-color: {{ commerce.hasNote() ? 'yellowgreen' : 'transparent' }};">{{ commerce.noteContent }}</td>
|
||||
<td class="{{ commerce.mainTag ? 'filled' : '' }}">
|
||||
|
||||
{% if commerce.mainTag == 'amenity=restaurant' or commerce.mainTag == 'amenity=bar' or commerce.mainTag == 'amenity=cafe' %}
|
||||
<i class="bi bi-fork-knife"></i>
|
||||
|
||||
{% elseif commerce.mainTag == 'amenity=townhall' or commerce.mainTag == 'amenity=community_centre' %}
|
||||
<i class="bi bi-building"></i>
|
||||
{% elseif commerce.mainTag == 'amenity=bank' or commerce.mainTag == 'amenity=atm' %}
|
||||
<i class="bi bi-bank"></i>
|
||||
{% elseif commerce.mainTag == 'amenity=pharmacy' or commerce.mainTag == 'amenity=hospital' or commerce.mainTag == 'amenity=clinic' %}
|
||||
<i class="bi bi-hospital"></i>
|
||||
{% elseif commerce.mainTag == 'amenity=school' or commerce.mainTag == 'amenity=kindergarten' or commerce.mainTag == 'amenity=university' %}
|
||||
<i class="bi bi-school"></i>
|
||||
{% elseif commerce.mainTag == 'amenity=library' or commerce.mainTag == 'amenity=museum' or commerce.mainTag == 'amenity=artwork' %}
|
||||
<i class="bi bi-book"></i>
|
||||
{% elseif commerce.mainTag == 'shop=car_repair' or commerce.mainTag == 'shop=car_parts' or commerce.mainTag == 'shop=car_wash' %}
|
||||
<i class="bi bi-car-front"></i>
|
||||
|
||||
{% elseif commerce.mainTag == 'amenity=post_office' %}
|
||||
<i class="bi bi-envelope"></i>
|
||||
{% elseif commerce.mainTag == 'shop=convenience' %}
|
||||
<i class="bi bi-shop"></i>
|
||||
{% elseif commerce.mainTag == 'shop=supermarket' %}
|
||||
<i class="bi bi-shop"></i>
|
||||
{% elseif commerce.mainTag == 'shop=clothes' %}
|
||||
<i class="bi bi-shop"></i>
|
||||
{% else %}
|
||||
<i class="bi bi-tag"></i>
|
||||
{% endif %}
|
||||
|
||||
{{ commerce.mainTag }}
|
||||
|
||||
|
||||
|
||||
</td>
|
||||
<td class="{{ commerce.hasAddress() ? 'filled' : '' }}">{{ commerce.address }}</td>
|
||||
<td class="{{ commerce.hasWebsite() ? 'filled' : '' }}">{{ commerce.website }}</td>
|
||||
<td class="{{ commerce.hasWheelchair() ? 'filled' : '' }}">{{ commerce.wheelchair }}</td>
|
||||
<td class="{{ commerce.hasNote() ? 'filled' : '' }}">{{ commerce.note }}</td>
|
||||
<td class="{{ commerce.noteContent ? 'filled' : '' }}">{{ commerce.noteContent }}</td>
|
||||
</tr>
|
Loading…
Add table
Add a link
Reference in a new issue