Added: info
This commit is contained in:
@@ -47,9 +47,9 @@
|
||||
|
||||
<!-- Gemeente in het kort / praktische info -->
|
||||
<div class="row mb-4">
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-12">
|
||||
<h2 class="h5 mb-3">Gemeente in het kort</h2>
|
||||
<ul class="list-unstyled mb-0">
|
||||
<ul class="list-unstyled mb-3">
|
||||
{{ with $town.region }}<li><strong>Regio / provincie:</strong> {{ . }}</li>{{ end }}
|
||||
{{ with $town.info_residents_total }}<li><strong>Aantal inwoners:</strong> {{ . }}</li>{{ end }}
|
||||
{{ with $town.info_residents_density }}<li><strong>Inwonersdichtheid:</strong> {{ . }}</li>{{ end }}
|
||||
@@ -61,7 +61,7 @@
|
||||
{{ with $town.monumenten_count }}<li><strong>Aantal monumenten:</strong> {{ . }}</li>{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="col-md-12">
|
||||
<h2 class="h5 mb-3">Praktische informatie</h2>
|
||||
<ul class="list-unstyled mb-0">
|
||||
{{ with $town.info_town_website }}<li><strong>Gemeentelijke website:</strong> <a href="{{ . }}" target="_blank" rel="noopener">{{ . }}</a></li>{{ end }}
|
||||
@@ -101,49 +101,6 @@
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
<!-- Fallback: alle overige (nog niet getoonde) velden simpel onder elkaar -->
|
||||
{{ $knownKeys := slice
|
||||
"flag"
|
||||
"mantelzorgwoning_status"
|
||||
"premantelzorgwoning_status"
|
||||
"generatiewoning_status"
|
||||
"vrijebouw_status"
|
||||
"natura_status"
|
||||
"monumenten_status"
|
||||
"soil_status"
|
||||
"plan_status"
|
||||
"region"
|
||||
"info_residents_total"
|
||||
"info_residents_density"
|
||||
"info_town_surface_total"
|
||||
"info_town_surface_soil"
|
||||
"info_town_surface_water"
|
||||
"soil_composition"
|
||||
"soil_types"
|
||||
"monumenten_count"
|
||||
"info_town_website"
|
||||
"info_town_hall_address"
|
||||
"info_town_hall_phone"
|
||||
"info_town_omgevingsloket"
|
||||
"info_town_wiki"
|
||||
"info_town_train_bool"
|
||||
"info_town_bus_array"
|
||||
"map_url"
|
||||
"map_img"
|
||||
"natura_links"
|
||||
"monumenten_links"
|
||||
}}
|
||||
<div class="mb-4">
|
||||
<h2 class="h6 mb-2">Overige gegevens</h2>
|
||||
<ul class="list-unstyled mb-0">
|
||||
{{ range $key, $value := $town }}
|
||||
{{ if not (in $knownKeys $key) }}
|
||||
<li><strong>{{ humanize $key }}:</strong> {{ $value }}</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Content }}
|
||||
|
||||
Reference in New Issue
Block a user