moar info

master
informatic 2020-04-14 22:30:16 +02:00
parent 980af625d7
commit 9bd577bf1c
2 changed files with 2 additions and 2 deletions

View File

@ -87,7 +87,7 @@ class MapView(AdminSecurityMixin, flask_admin.BaseView):
mapdata = [
{
key: getattr(request, key).name if isinstance(getattr(request, key), enum.Enum) else getattr(request, key)
for key in ['id', 'entity_info', 'shipping_latitude', 'shipping_longitude', 'status', 'handling_orga']
for key in ['id', 'entity_info', 'shipping_latitude', 'shipping_longitude', 'status', 'handling_orga', 'extra', 'remarks', 'faceshield_full_required']
}
for request in query
]

View File

@ -44,7 +44,7 @@ for (const loc of mapdata) {
stroke: loc.id == focusitem,
fillOpacity: 0.4,
}).addTo(map);
marker.bindPopup(`<b>[${e(loc.id)}]</b> <a href="/admin/faceshieldrequest/edit/?id=${e(loc.id)}">${e(loc.entity_info)}</a><br /><b>Handling orga:</b> ${e(loc.handling_orga)}<br /><b>Status:</b> ${e(loc.status)}`);
marker.bindPopup(`<b>[${e(loc.id)}]</b> <a href="/admin/faceshieldrequest/edit/?id=${e(loc.id)}">${e(loc.entity_info)}</a><br /><b>Handling orga:</b> ${e(loc.handling_orga)}<br /><b>Status:</b> ${e(loc.status)}<br/><b>Extra:</b> ${e(loc.extra||'')}<br/><b>Remarks:</b> ${e(loc.remarks||'')}<br/><b>Full required:</b> ${e(loc.faceshield_full_required)}`);
if (loc.id == focusitem) {
map.setView([loc.shipping_latitude, loc.shipping_longitude], 10);
marker.openPopup();