-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BGDIDIC-118: update mako for point geoms
- Loading branch information
Showing
1 changed file
with
23 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> | ||
|