lemma_examples.html
1.41 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
<script type="text/javascript">
$("button#delete_lemma_example").click(function(){
delete_lemma_example(selected_lemma_example_id)
});
$("button#modify_lemma_example").click(function(){
modify_lemma_example(selected_lemma_example_id)
});
$("button#assign_lemma_example").click(function(){
assign_lemma_example(selected_lemma_example_id)
});
</script>
<strong>Przykłady niepasujące do żadnego schematu:</strong>
{% if can_modify and perms.dictionary.modify_lemma_examples %}
<form class="lemma-example-form" method="post"> {% csrf_token %}
{{ add_nkjp_form.as_p }}
<p class="lexeme-save">
<button type="submit" id="lemma-example-form-submit">
Zapisz
</button>
<button type="button" id="lemma-example-form-cancel">
Wyczyść
</button>
</p>
</form>
{% endif %}
<div id='lemma_example_show'>
</div>
{% if can_modify %}
<div id='modify_lemma_example_buttons'>
{% if perms.dictionary.add_syntactic_frames or perms.dictionary.add_phraseologic_frames %}
<button type="button" id="assign_lemma_example" style="width:140px">Przypisz</button>
{% endif %}
{% if perms.dictionary.modify_lemma_examples %}
<button type="button" id="delete_lemma_example" style="width:140px">Usuń</button>
<button type="button" id="modify_lemma_example" style="width:140px">Modyfikuj</button>
{% endif %}
</div>
{% endif %}