lexeme_view.html
8.44 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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
{% extends "base.html" %}
{% load i18n version_static %}
{% block extrahead %}
<link rel="stylesheet" type="text/css"
href="{% version_static 'css/lib/jquery.uix.multiselect.css' %}">
<link rel="stylesheet" type="text/css"
href="{% version_static 'css/lib/jquery.ui.selectmenu.css' %}"/>
<link rel="stylesheet" type="text/css"
href="{% version_static 'css/lib/slick.grid.css' %}"/>
<link rel="stylesheet" type="text/css"
href="{% version_static 'css/slick-default-theme.css' %}"/>
<link rel="stylesheet" type="text/css"
href="{% version_static 'css/slickgrid.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/lib/cvi_busy_lib.js' %}"></script>
<script type="text/javascript"
src="{% version_static 'js/lib/splitter.js' %}"></script>
<script type="text/javascript"
src="{% version_static 'js/lib/jquery.event.drag-2.2.js' %}"></script>
<script type="text/javascript"
src="{% version_static 'js/lib/jquery.event.drop-2.2.js' %}"></script>
<script type="text/javascript"
src="{% version_static 'js/lib/jquery.ui.selectmenu.js' %}"></script>
<script type="text/javascript"
src="{% version_static 'js/lib/jquery.uix.multiselect.js' %}"></script>
<script type="text/javascript"
src="{% version_static 'js/jquery.uix.multiselect_pl.js' %}"></script>
<script type="text/javascript"
src="{% version_static 'js/lib/slick.core.js' %}"></script>
<script type="text/javascript"
src="{% version_static 'js/lib/slick.grid.js' %}"></script>
<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 content %}
<div id="left">
<div 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>
</div>
<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 %}
<div id="choose-columns-dialog" title="{% trans 'Choose columns' %}">
<select id="column-list" multiple=multiple></select>
</div>
<div id="choose-filter-dialog" title="{% trans 'Filters' %}">
<p>
<select id="group-op">
<option value="AND" selected="selected">{% trans 'and' %}</option>
<option value="OR">{% trans 'or' %}</option>
</select>
<input type="button" value="+" title="{% trans 'Add filter' %}"
id="add-filter-button">
</p>
<table id="filter-table"></table>
</div>
<div id="load-filter-dialog" title="{% trans 'Choose filter' %}">
<ul id="filter-list" class="load-dialog-list"></ul>
</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="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="auto-derivatives-dialog" title="{% trans 'Create derivatives' %}">
<p>{% trans 'Choose entries to create' %}:</p>
<ul id="auto-derivatives-list">
</ul>
</div>
<div id="search-by-form-dialog" title="{% trans 'Search by form' %}">
<table id="search-by-form-table">
</table>
</div>
<div id="back-references-dialog" title="{% trans 'Back references' %}">
<div id="proposed-crs"></div>
</div>
{% endblock %}