lexeme_view.html
6.29 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
{% extends "base.html" %}
{% load i18n version_static %}
{% block extrahead-lib %}
{% include "slickgrid_libs.html" %}
{% endblock %}
{% block extrahead %}
<link rel="stylesheet" type="text/css"
href="{% version_static 'css/slickgrid.css' %}"/>
<link rel="stylesheet" type="text/css"
href="{% version_static 'css/slickgrid-edit.css' %}"/>
<link rel="stylesheet" type="text/css"
href="{% version_static 'css/lexeme_view.css' %}"/>
<link rel="stylesheet" type="text/css"
href="{% version_static 'css/history.css' %}">
<script type="text/javascript"
src="{% version_static 'js/remotemodel.js' %}"></script>
<script type="text/javascript"
src="{% version_static 'js/slickgrid.js' %}"></script>
<script type="text/javascript"
src="{% version_static 'js/lexeme-view.js' %}"></script>
<script type="text/javascript"
src="{% version_static 'js/edit.js' %}"></script>
<script type="text/javascript"
src="{% version_static 'js/lexeme-edit.js' %}"></script>
{% endblock %}
{% block title %}{% trans 'Lexeme view' %}{% endblock %}
{% block moremenu %}
<li id="search-panel">
<button id="sort-button" title="{% trans 'sort' %}">
<span class="ui-icon ui-icon-sort">{% trans 'sort' %}</span>
</button>
<button id="filter-button" title="{% trans 'filter' %}">
<span class="ui-icon ui-icon-filter">{% trans 'filter' %}</span>
</button>
<button id="show-columns-button" title="{% trans 'show/hide' %}">
<span class="ui-icon ui-icon-columns">{% trans 'show/hide' %}</span>
</button>
<input type="text" id="text-search"/>
<button id="search-button" title="{% trans 'search' %}">
<span class="ui-icon ui-icon-search">{% trans 'search' %}</span>
</button>
{% if perms.dictionary.change_lexeme %}
<!--button id="action-button" title="{% trans 'group actions' %}">
<span class="ui-icon ui-icon-star">{% trans 'group actions' %}</span>
</button-->
<button id="add-button" title="{% trans 'create lexeme' %}">
<span class="ui-icon ui-icon-plus">{% trans 'create lexeme' %}</span>
</button>
{% endif %}
<button id="more-button" title="{% trans 'more' %}">
<span class="ellipsis-icon">...</span>
</button>
</li>
{% endblock %}
{% block content %}
<div id="left">
<div id="lexeme-grid"></div>
</div>
<div id="right">
<div class="tabs" id="lexeme-tabs">
<ul>
<li><a href="#edit" id="edit-tab">{% trans 'Edit' %}</a></li>
<li><a href="#variant0">{% trans 'Base forms' %}</a></li>
<li><a href="#variant1">{% trans 'All forms' %}</a></li>
<!--li><a href="#odm">Formy z sjp.pl</a></li-->
<li><a href="#history">{% trans 'History' %}</a></li>
</ul>
<div id="edit"></div>
<div id="variant0"></div>
<div id="variant1"></div>
<!--div id="odm"></div-->
<div id="history"></div>
</div>
</div>
{% endblock %}
{% block modal_elements %}
{% include "slickgrid_modal_elements.html" %}
<div id="more-actions-dialog" title="{% trans 'Other actions' %}">
<p><button type="button" id="export-list-button">
{% trans 'Export the current list' %}
</button></p>
<p><button type="button" id="reload-list-button">
{% trans 'Reload the list' %}
</button></p>
<p><button type="button" id="clone-lexeme-button">
{% trans 'Clone the active lexeme' %}
</button></p>
</div>
<div id="group-action-dialog" title="{% trans 'Choose group action' %}">
<button id="add-action" title="{% trans 'add action' %}">
<span class="ui-icon ui-icon-plus">{% trans 'add action' %}</span>
</button>
<table id="action-list" class="group-action-list">
</table>
</div>
<div id="choose-homonym-dialog" title="{% trans 'Choose homonym' %}">
<table id="homonym-list" class="choose-homonym-list">
<thead>
<tr>
<th>{% trans 'Hom. №' %}</th>
<th>{% trans 'Gender' %}</th>
<th>{% trans 'Pattern' %}</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<div id="prompter-dialog" title="{% trans 'Pattern prompter' %}">
<div id="prompter-dialog-left">
<table id="prompter-list">
</table>
<ul id="prompter-checkboxes">
<li>
<input type="checkbox" id="prompter-gender"/>
<label for="prompter-gender">{% trans 'Match gender' %}</label>
</li>
<li>
<input type="checkbox" id="prompter-commonness"/>
<label for="prompter-commonness">{% trans 'Match commonness' %}</label>
</li>
<li>
<input type="checkbox" id="prompter-blacklist"/>
<label for="prompter-blacklist">{% trans 'Exclude atypical patterns' %}</label>
</li>
</ul>
</div>
<div id="prompter-table-preview">
</div>
</div>
<div id="default-owner-dialog" title="{% trans 'Choose default dictionary' %}">
<p>
{% trans 'Choose a dictionary to be set as the default owner when creating new lexemes.' %}
</p>
<p>
{% trans 'This choice can be change in Settings.' %}
</p>
<ul id="default-owner">
{% for vocab in editable_vocabularies %}
<li>
<input type="radio" value="{{ vocab.pk }}" name="owner"/>
{{ vocab.id }}
</li>
{% endfor %}
</ul>
</div>
<div id="auto-derivatives-dialog" title="{% trans 'Create derivatives' %}">
<p>{% trans 'Choose entries to create' %}:</p>
<ul id="auto-derivatives-list">
</ul>
</div>
<div id="back-references-dialog" title="{% trans 'Back references' %}">
<div id="proposed-crs"></div>
</div>
{% endblock %}