28 lines
1.1 KiB
HTML
28 lines
1.1 KiB
HTML
{% extends "layout.html" %}
|
|
{% block content %}
|
|
<h2 class="mb-4 text-center">Опрос: {{ survey.name }}</h2>
|
|
|
|
<form method="post" action="{{ url_for('show_quiz', survey_id=survey.id) }}">
|
|
{% for category, features in questions.items() %}
|
|
<div class="card mb-4 shadow-sm">
|
|
<div class="card-header bg-primary text-white fw-semibold fs-5">
|
|
{{ category }}
|
|
</div>
|
|
<div class="card-body">
|
|
{% for feature in features %}
|
|
<div class="form-check mb-2">
|
|
<input class="form-check-input" type="checkbox" value="1" name="feature_{{ feature.id }}" id="f{{ feature.id }}">
|
|
<label class="form-check-label" for="f{{ feature.id }}">
|
|
{{ feature.question_text }}
|
|
</label>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
<div class="text-end">
|
|
<button type="submit" class="btn btn-success btn-lg" id="submitBtn">Отправить</button>
|
|
</div>
|
|
</form>
|
|
{% endblock %}
|