-
-
Notifications
You must be signed in to change notification settings - Fork 251
/
open-questions.twig
78 lines (72 loc) · 2.48 KB
/
open-questions.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
<h1 class="h2">
<i aria-hidden="true" class="bi bi-question-circle"></i>
{{ msgOpenQuestions }}
</h1>
</div>
<div class="row">
<div class="col-lg-12">
<div id="returnMessage"></div>
<form id="phpmyfaq-open-questions" name="phpmyfaq-open-questions" method="post" accept-charset="utf-8">
<input type="hidden" id="pmf-csrf-token" name="pmf-csrf-token" value="{{ csrfTokenDeleteQuestion }}">
<table class="table table-striped align-middle">
<thead>
<tr>
<th></th>
<th>{{ msgAuthor }}</th>
<th>{{ msgQuestion }}</th>
<th colspan="2">{{ msgVisibility }}?</th>
</tr>
</thead>
<tbody>
{% for question in questions %}
<tr>
<td>
<label>
<input id="questions[]" name="questions[]" value="{{ question.id }}" type="checkbox">
</label>
</td>
<td>
{{ question.created | format_datetime(locale=currentLocale) }}
<br>
<a href="mailto:{{ question.email }}">
{{ question.username }}
</a>
</td>
<td>
<strong>
{{ question.categoryId | categoryName }}
</strong>
<br>
{{ question.question }}
</td>
<td>
<a href="?action=question&id={{ question.id }}&is_visible=toggle&csrf={{ csrfTokenToggleVisibility }}"
class="btn btn-info">
{{ question.isVisible == 'Y' ? yes : no }}
</a>
</td>
<td>
{% if enableCloseQuestion and question.answerId %}
<a href="?action=editentry&id={{ question.answerId }}&lang={{ currentLocale }}"
class="btn btn-success">
{{ msg2answerFAQ }}
</a>
{% else %}
<a href="?action=takequestion&id={{ question.id }}" class="btn btn-success">
{{ msgTakeQuestion }}
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="text-end">
<button class="btn btn-danger" id="pmf-delete-questions" type="button">
{{ msgDeleteAllOpenQuestions }}
</button>
</div>
</form>
</div>
</div>