kommunalwahl2020/site/_includes/topics.html

31 lines
1.1 KiB
HTML
Raw Permalink Normal View History

2020-02-02 10:28:54 +00:00
<main role="main" class="container">
{% assign topic = site.data.topics | where:"slug",include.slug | first %}
<h1>{{ topic.title }}</h1>
{% for question in topic.questions %}
<h4>{{ question.text }}</h4>
<div id="accordion_{{ question.slug }}">
{% for candidate in site.data.candidates %}
<div class="card">
<div class="card-header" id="heading_{{ question.slug }}_{{ candidate.slug }}">
<h5 class="mb-0">
<button class="btn btn-link collapsed" data-toggle="collapse" data-target="#collapse_{{ question.slug }}_{{ candidate.slug }}" aria-expanded="false" aria-controls="collapse_{{ question.slug }}_{{ candidate.slug }}">
{{ candidate.name }}
</button>
</h5>
</div>
<div id="collapse_{{ question.slug }}_{{ candidate.slug }}" class="collapse" aria-labelledby="heading_{{ question.slug }}_{{ candidate.slug }}" data-parent="#accordion_{{ question.slug }}">
<div class="card-body">
2020-02-08 18:51:45 +00:00
{% include {{ candidate.slug }}/{{ question.slug }}.html %}
2020-02-02 10:28:54 +00:00
</div>
</div>
</div>
{% endfor %}
</div>
{% endfor %}
</main>