link customer address to a google maps search

This commit is contained in:
2026-07-16 18:01:06 -04:00
parent b8e28e3f1a
commit 0f58d2fb21
+5 -1
View File
@@ -32,7 +32,11 @@
<td>{{ c.email or '' }}</td>
<td>
{%- if c.address_line1 -%}
{{ c.address_line1 }}{% if c.city %}, {{ c.city }}{% endif %}{% if c.state %}, {{ c.state }}{% endif %} {{ c.zip or '' }}
{% set addr = c.address_line1 %}
{% if c.city %}{% set addr = addr + ', ' + c.city %}{% endif %}
{% if c.state %}{% set addr = addr + ', ' + c.state %}{% endif %}
{% if c.zip %}{% set addr = addr + ' ' + c.zip %}{% endif %}
<a href="https://www.google.com/maps/search/?api=1&query={{ addr | urlencode }}" target="_blank" rel="noopener">{{ addr }}</a>
{%- endif -%}
</td>
<td><a class="button-link" href="/?customer_id={{ c.id }}">Orders</a></td>