30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
<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">
|
|
{% include {{ candidate.slug }}/{{ question.slug }}.html %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
{% endfor %}
|
|
|
|
</main>
|