question as csv

This commit is contained in:
Holger Sielaff
2024-07-13 14:38:42 +02:00
parent e7b2dff233
commit 1531b0f6d3
6 changed files with 99 additions and 44 deletions

View File

@@ -1,5 +1,6 @@
{% extends 'base.html' %}
{% block content %}
<h3>Questions</h3>
<form action="/questions" method="get" id="search_q_form">
<div id="question-search-field" class="row mb-5 mt-5">
<div class="col-12 p-0">
@@ -23,6 +24,7 @@
<div class="col-3">Question</div>
<div class="col-1">Files</div>
<div class="col-1">Labels</div>
<div class="col-1"><i class="fa fa-download"></i></div>
</div>
{% for q in items %}
<div class="row p-2">
@@ -36,6 +38,9 @@
{% if not forloop.last %},{% endif %}
{% endfor %}
</div>
<div class="col-1">
<a href="/questions/{{ q.id }}/csv" target="_blank">CSV</a>
</div>
</div>
{% endfor %}
{% endif %}