## -*- coding: UTF-8 -*-
<%inherit file="layout.html"/>
<%!
from urllib import unquote_plus
%>
<%namespace file="/widgets/fixed-pane.html" import="fixed_pane" />
${self.json()}
${c.exception.title}
Select a location
<% last = len(c.geocodes) - 1 %>
% for i, code in enumerate(c.geocodes):
<%
if i == last:
style = ' style="margin-bottom: 0;"'
else:
style = ''
%>
-
${self.geocode(code, i)}
% endfor
<%def name="geocode(geocode, i)">
<%
str_addr = str(geocode.address)
xy_ll = geocode.xy_ll
x, y = xy_ll.x, xy_ll.y
link_addr = geocode.urlStr()
html_addr = str_addr.replace('\n', '
')
field_addr = unquote_plus(link_addr)
%>
<%call expr="fixed_pane(title_bar_style={'display': 'none'}, )">
<%def name="title()">
Location
show on map
%def>
${html_addr}
%call>
%def>