| 
									
										
										
										
											2025-06-03 11:37:27 +02:00
										 |  |  | <tr>
 | 
					
						
							| 
									
										
										
										
											2025-06-03 12:51:20 +02:00
										 |  |  |                         <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>
 | 
					
						
							| 
									
										
										
										
											2025-06-03 11:37:27 +02:00
										 |  |  |                         </td>
 | 
					
						
							| 
									
										
										
										
											2025-06-19 10:20:40 +02:00
										 |  |  |                         <td>
 | 
					
						
							|  |  |  |                             <a href="{{ path('app_admin_make_email_for_place', {'id': commerce.id}) }}">
 | 
					
						
							|  |  |  |                                 <i class="bi bi-envelope-fill"></i>
 | 
					
						
							|  |  |  |                             </a>
 | 
					
						
							|  |  |  |                         </td>
 | 
					
						
							| 
									
										
										
										
											2025-06-24 12:30:39 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |                         <td>
 | 
					
						
							|  |  |  |                         {% if commerce.email is defined and commerce.email %}
 | 
					
						
							|  |  |  |                             <div style="max-width: 350px; white-space: pre-wrap; word-break: break-all;">{{ commerce.email }}</div>
 | 
					
						
							|  |  |  |                         {% else %}
 | 
					
						
							|  |  |  |                             <span class="text-muted">-</span>
 | 
					
						
							|  |  |  |                         {% endif %}
 | 
					
						
							|  |  |  |                         </td>
 | 
					
						
							| 
									
										
										
										
											2025-06-17 16:23:29 +02:00
										 |  |  |                         <td class="text-right completion-cell" 
 | 
					
						
							|  |  |  |                             style="background : rgba(0,255,0,{{ commerce.getCompletionPercentage() / 100 }})"
 | 
					
						
							|  |  |  |                             data-bs-toggle="popover"
 | 
					
						
							|  |  |  |                             data-bs-trigger="hover"
 | 
					
						
							|  |  |  |                             data-bs-html="true"
 | 
					
						
							| 
									
										
										
										
											2025-06-24 12:30:39 +02:00
										 |  |  |                             >
 | 
					
						
							|  |  |  |                             {{ commerce.getCompletionPercentage() }}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                             <div class='p-2'>
 | 
					
						
							| 
									
										
										
										
											2025-06-26 23:14:22 +02:00
										 |  |  |                                     {# <h6>Infos manquantes :</h6> #}
 | 
					
						
							|  |  |  |                                     <ul class='list-unstyled list-inline mb-0'>
 | 
					
						
							| 
									
										
										
										
											2025-06-17 16:23:29 +02:00
										 |  |  |                                         {% if not commerce.name %}
 | 
					
						
							| 
									
										
										
										
											2025-06-26 23:14:22 +02:00
										 |  |  |                                             <span title="Nom du commerce">
 | 
					
						
							|  |  |  |                                                 <i class='bi bi-person-badge text-danger'></i>
 | 
					
						
							|  |  |  |                                             </span>
 | 
					
						
							| 
									
										
										
										
											2025-06-17 16:23:29 +02:00
										 |  |  |                                         {% endif %}
 | 
					
						
							|  |  |  |                                         {% if not commerce.hasAddress() %}
 | 
					
						
							| 
									
										
										
										
											2025-06-26 23:14:22 +02:00
										 |  |  |                                             <span title="Adresse complète">
 | 
					
						
							|  |  |  |                                                 <i class='bi bi-geo-alt text-danger'></i>
 | 
					
						
							|  |  |  |                                             </li>
 | 
					
						
							| 
									
										
										
										
											2025-06-17 16:23:29 +02:00
										 |  |  |                                         {% endif %}
 | 
					
						
							|  |  |  |                                         {% if not commerce.hasOpeningHours() %}
 | 
					
						
							| 
									
										
										
										
											2025-06-26 23:14:22 +02:00
										 |  |  |                                             <span title="Horaires d'ouverture">
 | 
					
						
							|  |  |  |                                                 <i class='bi bi-clock text-danger'></i>
 | 
					
						
							|  |  |  |                                             </span>
 | 
					
						
							| 
									
										
										
										
											2025-06-17 16:23:29 +02:00
										 |  |  |                                         {% endif %}
 | 
					
						
							|  |  |  |                                         {% if not commerce.hasWebsite() %}
 | 
					
						
							| 
									
										
										
										
											2025-06-26 23:14:22 +02:00
										 |  |  |                                             <span title="Site web">
 | 
					
						
							|  |  |  |                                                 <i class='bi bi-globe text-danger'></i>
 | 
					
						
							|  |  |  |                                             </span>
 | 
					
						
							| 
									
										
										
										
											2025-06-17 16:23:29 +02:00
										 |  |  |                                         {% endif %}
 | 
					
						
							|  |  |  |                                         {# {% if not commerce.phone %}
 | 
					
						
							| 
									
										
										
										
											2025-06-26 23:14:22 +02:00
										 |  |  |                                             <li title="Téléphone">
 | 
					
						
							|  |  |  |                                                 <i class='bi bi-telephone text-danger'></i>
 | 
					
						
							|  |  |  |                                             </li>
 | 
					
						
							| 
									
										
										
										
											2025-06-17 16:23:29 +02:00
										 |  |  |                                         {% endif %} #}
 | 
					
						
							|  |  |  |                                         {% if not commerce.hasWheelchair() %}
 | 
					
						
							| 
									
										
										
										
											2025-06-26 23:14:22 +02:00
										 |  |  |                                             <span title="Accessibilité PMR">
 | 
					
						
							|  |  |  |                                                 <i class='bi bi-universal-access text-danger'></i>
 | 
					
						
							|  |  |  |                                             </span>
 | 
					
						
							|  |  |  |                                         {% endif %}
 | 
					
						
							|  |  |  |                                         {% if not commerce.siret %}
 | 
					
						
							|  |  |  |                                             <span title="SIRET">
 | 
					
						
							|  |  |  |                                                 <i class='bi bi-book text-danger'></i>
 | 
					
						
							|  |  |  |                                             </span>
 | 
					
						
							| 
									
										
										
										
											2025-06-17 16:23:29 +02:00
										 |  |  |                                         {% endif %}
 | 
					
						
							|  |  |  |                                     </ul>
 | 
					
						
							|  |  |  |                                 </div>
 | 
					
						
							| 
									
										
										
										
											2025-06-06 11:50:37 +02:00
										 |  |  |                         </td>
 | 
					
						
							| 
									
										
										
										
											2025-06-03 12:51:20 +02:00
										 |  |  |                         <td  class="{{ commerce.mainTag ? 'filled' : '' }}">
 | 
					
						
							| 
									
										
										
										
											2025-07-05 16:53:12 +02:00
										 |  |  |                         <span title="{{ commerce.mainTag }}">
 | 
					
						
							|  |  |  |                             {{ tag_emoji(commerce.mainTag) }}
 | 
					
						
							|  |  |  |                         </span>
 | 
					
						
							| 
									
										
										
										
											2025-06-03 12:51:20 +02:00
										 |  |  |                         </td>
 | 
					
						
							| 
									
										
										
										
											2025-06-09 00:11:16 +02:00
										 |  |  |                         <td  class="{{ commerce.hasAddress() ? 'filled' : '' }}">{{ commerce.address }}  </td>
 | 
					
						
							|  |  |  |                         <td  class="{{ commerce.hasAddress() ? 'filled' : '' }}">{{ commerce.housenumber }}</td>
 | 
					
						
							| 
									
										
										
										
											2025-07-12 12:03:40 +02:00
										 |  |  |                         <td  class="{{ commerce.hasAddress() ? 'filled' : '' }}">
 | 
					
						
							|  |  |  |                         {% if commerce.street %}
 | 
					
						
							|  |  |  |                                     <a href="{{ path('app_public_street', {'cityId': commerce.stats.zone, 'streetName': commerce.street|url_encode }) }}">{{ commerce.street }}</a>
 | 
					
						
							|  |  |  |                                 {% else %}
 | 
					
						
							|  |  |  |                                     <span class="text-muted">(inconnue)</span>
 | 
					
						
							|  |  |  |                                 {% endif %}
 | 
					
						
							|  |  |  |                         
 | 
					
						
							|  |  |  |                         {# {{ commerce.street }} #}
 | 
					
						
							|  |  |  |                         </td>
 | 
					
						
							| 
									
										
										
										
											2025-06-03 12:51:20 +02:00
										 |  |  |                         <td  class="{{ commerce.hasWebsite() ? 'filled' : '' }}">{{ commerce.website }}</td>
 | 
					
						
							|  |  |  |                         <td  class="{{ commerce.hasWheelchair() ? 'filled' : '' }}">{{ commerce.wheelchair }}</td>
 | 
					
						
							|  |  |  |                         <td  class="{{ commerce.hasNote() ? 'filled' : '' }}">{{ commerce.note }}</td>
 | 
					
						
							| 
									
										
										
										
											2025-06-04 00:16:56 +02:00
										 |  |  |                         <td  class="{{ commerce.noteContent ? 'filled' : '' }}">{{ commerce.noteContent }}</td>   
 | 
					
						
							| 
									
										
										
										
											2025-06-19 11:48:07 +02:00
										 |  |  |                         <td  class="{{ commerce.siret ? 'filled' : '' }}"> 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |                         {% if commerce.siret %}
 | 
					
						
							|  |  |  |                             {% set sirets = commerce.siret|split(';')|map(siret => siret|trim)|filter(siret => siret) %}
 | 
					
						
							|  |  |  |                             {% for siret in sirets %}
 | 
					
						
							|  |  |  |                                 {% if not loop.first %}, {% endif %}
 | 
					
						
							|  |  |  |                                 <a href="https://annuaire-entreprises.data.gouv.fr/etablissement/{{ siret }}" >{{ siret }}</a>
 | 
					
						
							|  |  |  |                             {% endfor %}
 | 
					
						
							|  |  |  |                         {% else %}
 | 
					
						
							|  |  |  |                         <a href="https://annuaire-entreprises.data.gouv.fr/etablissement/{{ commerce.siret }}" >
 | 
					
						
							|  |  |  |                         {% endif %}
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2025-07-07 23:06:04 +02:00
										 |  |  |                         <td>
 | 
					
						
							|  |  |  |                         {% if stats.population > 0 %}
 | 
					
						
							|  |  |  |                             {{ (1 / (stats.population / stats.places|length))|number_format(3, '.', ' ') }}
 | 
					
						
							|  |  |  |                         {% else %}
 | 
					
						
							|  |  |  |                             -
 | 
					
						
							|  |  |  |                         {% endif %}
 | 
					
						
							|  |  |  |                         </td>
 | 
					
						
							| 
									
										
										
										
											2025-06-04 00:16:56 +02:00
										 |  |  |                         <td>
 | 
					
						
							| 
									
										
										
										
											2025-06-18 00:41:24 +02:00
										 |  |  |                         {# (si siret clos) #}
 | 
					
						
							|  |  |  |                         </td>
 | 
					
						
							|  |  |  |                         <td>
 | 
					
						
							| 
									
										
										
										
											2025-06-19 12:49:30 +02:00
										 |  |  |                         {% if commerce.osmDataDate %}
 | 
					
						
							|  |  |  |                             {% set now = "now"|date("U") %}
 | 
					
						
							|  |  |  |                             {% set osmDate = commerce.osmDataDate|date("U") %}
 | 
					
						
							|  |  |  |                             {% set diff = now - osmDate %}
 | 
					
						
							|  |  |  |                             {% set years = (diff / 31536000)|round(0, 'floor') %}
 | 
					
						
							|  |  |  |                             {% set months = ((diff % 31536000) / 2592000)|round(0, 'floor') %}
 | 
					
						
							|  |  |  |                             {% set days = ((diff % 2592000) / 86400)|round(0, 'floor') %}
 | 
					
						
							|  |  |  |                             
 | 
					
						
							|  |  |  |                             <div class="small osm-modification-info">
 | 
					
						
							|  |  |  |                                 <div>
 | 
					
						
							| 
									
										
										
										
											2025-06-21 11:28:31 +02:00
										 |  |  |                                     {{ commerce.osmDataDate|date('Y-m-d H:i') }}
 | 
					
						
							| 
									
										
										
										
											2025-06-19 12:49:30 +02:00
										 |  |  |                                     <i class="bi bi-calendar"></i>
 | 
					
						
							|  |  |  |                                 </div>
 | 
					
						
							|  |  |  |                                 {% if commerce.osmUser %}
 | 
					
						
							|  |  |  |                                     <div>
 | 
					
						
							|  |  |  |                                         <i class="bi bi-person"></i>
 | 
					
						
							|  |  |  |                                         <a href="https://www.openstreetmap.org/user/{{ commerce.osmUser }}" target="_blank" title="Voir le profil OSM">
 | 
					
						
							|  |  |  |                                             {{ commerce.osmUser }}
 | 
					
						
							|  |  |  |                                         </a>
 | 
					
						
							|  |  |  |                                     </div>
 | 
					
						
							|  |  |  |                                 {% endif %}
 | 
					
						
							|  |  |  |                                 <div class="text-muted">
 | 
					
						
							|  |  |  |                                     <small>
 | 
					
						
							|  |  |  |                                         {% if diff < 86400 %}
 | 
					
						
							|  |  |  |                                             Aujourd'hui
 | 
					
						
							|  |  |  |                                         {% elseif years > 0 %}
 | 
					
						
							|  |  |  |                                             {{ years }} an{{ years > 1 ? 's' : '' }}
 | 
					
						
							|  |  |  |                                             {% if months > 0 %}, {{ months }} mois{% endif %}
 | 
					
						
							|  |  |  |                                         {% elseif months > 0 %}
 | 
					
						
							|  |  |  |                                             {{ months }} mois
 | 
					
						
							|  |  |  |                                             {% if days > 0 %}, {{ days }} jour{{ days > 1 ? 's' : '' }}{% endif %}
 | 
					
						
							|  |  |  |                                         {% elseif days > 0 %}
 | 
					
						
							|  |  |  |                                             {{ days }} jour{{ days > 1 ? 's' : '' }}
 | 
					
						
							|  |  |  |                                         {% else %}
 | 
					
						
							|  |  |  |                                             Aujourd'hui
 | 
					
						
							|  |  |  |                                         {% endif %}
 | 
					
						
							|  |  |  |                                     </small>
 | 
					
						
							|  |  |  |                                 </div>
 | 
					
						
							|  |  |  |                             </div>
 | 
					
						
							|  |  |  |                         {% else %}
 | 
					
						
							|  |  |  |                             <span class="text-muted">Non disponible</span>
 | 
					
						
							|  |  |  |                         {% endif %}
 | 
					
						
							|  |  |  |                         </td>
 | 
					
						
							|  |  |  |                         <td>
 | 
					
						
							| 
									
										
										
										
											2025-06-17 18:27:19 +02:00
										 |  |  |                         <a href="https://www.openstreetmap.org/{{ commerce.osmKind }}/{{ commerce.osmId }}" title="{{ commerce.osmKind }} - {{ commerce.osmId }} " >
 | 
					
						
							| 
									
										
										
										
											2025-06-04 00:16:56 +02:00
										 |  |  |                             <i class="bi bi-globe"></i>
 | 
					
						
							| 
									
										
										
										
											2025-06-17 18:27:19 +02:00
										 |  |  |                             
 | 
					
						
							| 
									
										
										
										
											2025-06-04 00:16:56 +02:00
										 |  |  |                         </a>
 | 
					
						
							|  |  |  |                         </td>
 | 
					
						
							|  |  |  |                         <td>
 | 
					
						
							|  |  |  |                             {{ commerce.osmKind }}
 | 
					
						
							|  |  |  |                         </td>
 | 
					
						
							| 
									
										
										
										
											2025-06-03 11:37:27 +02:00
										 |  |  |                     </tr>
 |