Skip to content

Commit

Permalink
BGDIDIC-118: update mako for point geoms
Browse files Browse the repository at this point in the history
  • Loading branch information
faselm committed Oct 24, 2024
1 parent f2c6b4d commit cac2bec
Showing 1 changed file with 23 additions and 25 deletions.
48 changes: 23 additions & 25 deletions chsdi/templates/htmlpopup/notruf_zentral_147.mako
Original file line number Diff line number Diff line change
@@ -1,30 +1,28 @@
<%inherit file="base.mako"/>

<%def name="table_body(c, lang)">
<%
arr_fn_zentrale_147 = c['attributes']['fn_zentrale_147'].split('\n')
arr_len = len(arr_fn_zentrale_147)
str_output_fn = ''
for i in range(arr_len):
str_output_fn = str_output_fn + arr_fn_zentrale_147[i] + '<br />' if i < (arr_len-1) else str_output_fn + arr_fn_zentrale_147[i]
endfor
arr_mo_zentrale_147 = c['attributes']['mo_zentrale_147'].split('\n')
arr_len = len(arr_mo_zentrale_147)
str_output_mo = ''
for i in range(arr_len):
str_output_mo = str_output_mo + arr_mo_zentrale_147[i] + '<br />' if i < (arr_len-1) else str_output_mo + arr_mo_zentrale_147[i]
endfor
%>
<% c['stable_id'] = True %>
<tr><td class="cell-left">${_('gemeinde')}</td> <td>${c['attributes']['gemeinde_147'] or '-'}</td></tr>
<tr><td class="cell-left">${_('ch.bakom.notruf-147_zentral.festnetz_147')}</td> <td>${c['attributes']['festnetz_147'] or '-'}</td></tr>
<tr><td class="cell-left">${_('ch.bakom.notruf-147_zentral.fn_zentrale_147')}</td> <td>${_(str_output_fn)|n}</td></tr>
<tr><td class="cell-left">${_('ch.bakom.notruf-147_zentral.mobile_147')}</td> <td>${c['attributes']['mobile_147'] or '-'}</td></tr>
<tr><td class="cell-left">${_('ch.bakom.notruf-147_zentral.mo_zentrale_147')}</td> <td>${_(str_output_mo)|n}</td></tr>
<tr>
<td class="cell-left">${_('ch.bakom.notruf-147_zentral.alarmzentrale')}</td>
<td>${c['attributes']['alarmzentrale'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bakom.notruf-147_zentral.strasse')}</td>
<td>${c['attributes']['strasse'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bakom.notruf-147_zentral.nummer')}</td>
<td>${c['attributes']['nummer'] or '-'}</td>
<tr>
<td class="cell-left">${_('ch.bakom.notruf-147_zentral.plz')}</td>
<td>${c['attributes']['plz'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bakom.notruf-147_zentral.ort')}</td>
<td>${c['attributes']['ort'] or '-'}</td>
</tr>
<tr>
<td class="cell-left">${_('ch.bakom.notruf-147_zentral.rn_147')}</td>
<td>${c['attributes']['rn_147'] or '-'}</td>
</tr>
</%def>

0 comments on commit cac2bec

Please sign in to comment.