Initial commit
This commit is contained in:
37
templates/admin/support.html
Normal file
37
templates/admin/support.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user