Initial commit

This commit is contained in:
2025-09-04 11:27:16 +03:00
commit c1a75f783a
29 changed files with 2153 additions and 0 deletions

View File

@@ -0,0 +1,37 @@
{% extends "layout.html" %}
{% block content %}
<h2 class="mb-4">Матрица поддержки: {{ survey.name }}</h2>
<form method="post">
<table class="table table-bordered table-sm align-middle">
<thead class="table-light">
<tr>
<th>Функция</th>
{% for platform in platforms %}
<th class="text-center">{{ platform.name }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for feature in features %}
<tr>
<td>
<strong>{{ feature.name }}</strong><br>
<small>{{ feature.question_text }}</small>
</td>
{% for platform in platforms %}
<td class="text-center">
<input type="checkbox"
name="support_{{ platform.id }}_{{ feature.id }}"
{% if support[platform.id][feature.id] %}checked{% endif %}>
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
<button type="submit" class="btn btn-success mt-3">Сохранить</button>
</form>
<a href="{{ url_for('manage_platforms_by_survey', survey_id=survey.id) }}" class="btn btn-link mt-4">← Назад к платформам</a>
{% endblock %}