lemma_status.html
2.25 KB
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
79
80
81
82
<div style="display:flex;">
<div>
<div id="lemma-status">
<table class='StatusTable'>
<tr>
<td class='ColumnHeader'>Hasło:</td>
<td>{{lemma.entry}}</td>
</tr>
<tr>
<td class='ColumnHeader'>Właściciel:</td>
<td>
{% if lemma.owner %}
{{lemma.owner.username}}
{% else %}
brak
{% endif %}
</td>
</tr>
<tr>
<td class='ColumnHeader'>Frazeolog:</td>
<td>
{% if lemma.phraseologist %}
{{lemma.phraseologist.username}}
{% else %}
brak
{% endif %}
</td>
</tr>
<tr>
<td class='ColumnHeader'>Semantyk:</td>
<td>
{% if lemma.semanticist %}
{{lemma.semanticist.username}}
{% else %}
brak
{% endif %}
</td>
</tr>
<tr>
<td class='ColumnHeader'>Słownik:</td>
<td>{{lemma.vocabulary.name}}</td>
</tr>
<tr>
<td class='ColumnHeader'>Status:</td>
<td>{{lemma.status.status}}</td>
</tr>
<tr>
<td class='ColumnHeader'>Część mowy:</td>
<td>{{pos.name}}</td>
</tr>
</table>
</div>
<div id="lemma-status-change">
{% if abort_status %}
<button type="button" id="{{ abort_status.id }}" style="width:120px">Zmień na "{{ abort_status.status }}"</button>
{% endif %}
{% for next_status in next_statuses %}
<button type="button" id="{{ next_status.id }}" style="width:120px">Zmień na "{{ next_status.status }}"</button>
{% endfor %}
</div>
</div>
{% if perms.dictionary.view_status_changes and status_changes %}
<div class="status-changes">
<table class='ChangeControlTable' style="margin:15px;">
<tr>
<td class='ColumnHeader'>Czas zmiany:</td>
<td class='ColumnHeader'>Docelowy status:</td>
<td class='ColumnHeader'>Osoba dokonująca zmiany:</td>
</tr>
{% for change in status_changes %}
<tr class='ChangeControlTableRow' id="change_{{version.id}}">
<td>{{ change.date }}</td>
<td>{{ change.status.status }}</td>
<td>{{ change.changer.username }}</td>
</tr>
{% endfor %}
</table>
</div>
{% endif %}
</div>
<div id="ready-note-dialog">
</div>