Blame view

dictionary/templates/lexeme_view.html 8.22 KB
janek37 authored
1
{% extends "base.html" %}
janek37 authored
2
{% load i18n staticfiles %}
janek37 authored
3
4

{% block extrahead %}
janek37 authored
5
    <link rel="stylesheet" type="text/css"
janek37 authored
6
          href="{% static 'css/lib/jquery.uix.multiselect.css' %}">
janek37 authored
7
    <link rel="stylesheet" type="text/css"
janek37 authored
8
          href="{% static 'css/lib/jquery.ui.selectmenu.css' %}"/>
janek37 authored
9
    <link rel="stylesheet" type="text/css"
janek37 authored
10
          href="{% static 'css/lib/slick.grid.css' %}"/>
janek37 authored
11
    <link rel="stylesheet" type="text/css"
janek37 authored
12
          href="{% static 'css/slick-default-theme.css' %}"/>
janek37 authored
13
    <link rel="stylesheet" type="text/css"
janek37 authored
14
          href="{% static 'css/slickgrid.css' %}"/>
janek37 authored
15
    <link rel="stylesheet" type="text/css"
janek37 authored
16
          href="{% static 'css/lexeme_view.css' %}"/>
janek37 authored
17
18
    <link rel="stylesheet" type="text/css"
          href="{% static 'css/history.css' %}">
janek37 authored
19
    <script type="text/javascript"
janek37 authored
20
            src="{% static 'js/lib/cvi_busy_lib.js' %}"></script>
janek37 authored
21
    <script type="text/javascript"
janek37 authored
22
            src="{% static 'js/lib/splitter.js' %}"></script>
janek37 authored
23
    <script type="text/javascript"
janek37 authored
24
            src="{% static 'js/lib/jquery.event.drag-2.2.js' %}"></script>
janek37 authored
25
    <script type="text/javascript"
janek37 authored
26
            src="{% static 'js/lib/jquery.event.drop-2.2.js' %}"></script>
janek37 authored
27
    <script type="text/javascript"
janek37 authored
28
            src="{% static 'js/lib/jquery.ui.selectmenu.js' %}"></script>
janek37 authored
29
    <script type="text/javascript"
janek37 authored
30
            src="{% static 'js/lib/jquery.uix.multiselect.js' %}"></script>
janek37 authored
31
    <script type="text/javascript"
janek37 authored
32
            src="{% static 'js/lib/slick.core.js' %}"></script>
janek37 authored
33
    <script type="text/javascript"
janek37 authored
34
            src="{% static 'js/lib/slick.grid.js' %}"></script>
janek37 authored
35
    <script type="text/javascript"
janek37 authored
36
            src="{% static 'js/remotemodel.js' %}"></script>
janek37 authored
37
    <script type="text/javascript"
janek37 authored
38
            src="{% static 'js/slickgrid.js' %}"></script>
janek37 authored
39
    <script type="text/javascript"
janek37 authored
40
            src="{% static 'js/lexeme-view.js' %}"></script>
janek37 authored
41
    <script type="text/javascript"
janek37 authored
42
            src="{% static 'js/edit.js' %}"></script>
janek37 authored
43
    <script type="text/javascript"
janek37 authored
44
            src="{% static 'js/lexeme-edit.js' %}"></script>
janek37 authored
45
46
{% endblock %}
janek37 authored
47
{% block title %}{% trans 'Widok leksemów' %}{% endblock %}
janek37 authored
48
49

{% block content %}
janek37 authored
50
51
    <div id="left">
        <div id="search-panel">
janek37 authored
52
53
            <button id="sort-button" title="{% trans 'sortuj' %}">
                <span class="ui-icon ui-icon-sort">{% trans 'sortuj' %}</span>
janek37 authored
54
            </button>
janek37 authored
55
56
            <button id="filter-button" title="{% trans 'filtruj' %}">
                <span class="ui-icon ui-icon-filter">{% trans 'filtruj' %}</span>
janek37 authored
57
            </button>
janek37 authored
58
59
            <button id="show-columns-button" title="{% trans 'pokaż/ukryj' %}">
                <span class="ui-icon ui-icon-columns">{% trans 'pokaż/ukryj' %}</span>
janek37 authored
60
            </button>
janek37 authored
61
            <input type="text" id="text-search"/>
janek37 authored
62
63
            <button id="search-button" title="{% trans 'szukaj' %}">
                <span class="ui-icon ui-icon-search">{% trans 'szukaj' %}</span>
janek37 authored
64
65
            </button>
            {% if perms.dictionary.change_lexeme %}
janek37 authored
66
67
                <!--button id="action-button" title="{% trans 'akcje grupowe' %}">
                    <span class="ui-icon ui-icon-star">{% trans 'akcje grupowe' %}</span>
janek37 authored
68
                </button-->
janek37 authored
69
70
                <button id="add-button" title="{% trans 'dodaj leksem' %}">
                    <span class="ui-icon ui-icon-plus">{% trans 'dodaj leksem' %}</span>
janek37 authored
71
72
                </button>
            {% endif %}
janek37 authored
73
            <button id="more-button" title="{% trans 'więcej' %}">
janek37 authored
74
75
                <span class="ellipsis-icon">...</span>
            </button>
janek37 authored
76
        </div>
janek37 authored
77
        <div id="lexeme-grid"></div>
janek37 authored
78
    </div>
janek37 authored
79
    <div id="right">
janek37 authored
80
        <div class="tabs" id="lexeme-tabs">
janek37 authored
81
            <ul>
janek37 authored
82
83
84
                <li><a href="#edit" id="edit-tab">{% trans 'Edycja' %}</a></li>
                <li><a href="#variant0">{% trans 'Formy bazowe' %}</a></li>
                <li><a href="#variant1">{% trans 'Wszystkie formy' %}</a></li>
janek37 authored
85
                <!--li><a href="#odm">Formy z sjp.pl</a></li-->
janek37 authored
86
                <li><a href="#history">{% trans 'Historia' %}</a></li>
janek37 authored
87
88
89
90
            </ul>
            <div id="edit"></div>
            <div id="variant0"></div>
            <div id="variant1"></div>
janek37 authored
91
            <!--div id="odm"></div-->
janek37 authored
92
93
            <div id="history"></div>
        </div>
janek37 authored
94
95
96
97
    </div>
{% endblock %}

{% block modal_elements %}
janek37 authored
98
    <div id="choose-columns-dialog" title="{% trans 'Wybierz kolumny' %}">
janek37 authored
99
100
        <select id="column-list" multiple=multiple></select>
    </div>
janek37 authored
101
    <div id="choose-filter-dialog" title="{% trans 'Filtrowanie' %}">
janek37 authored
102
103
        <p>
            <select id="group-op">
janek37 authored
104
105
                <option value="AND" selected="selected">{% trans 'oraz' %}</option>
                <option value="OR">{% trans 'lub' %}</option>
janek37 authored
106
            </select>
janek37 authored
107
            <input type="button" value="+" title="{% trans 'Dodaj filtr' %}"
janek37 authored
108
109
110
                   id="add-filter-button">
        </p>
        <table id="filter-table"></table>
janek37 authored
111
    </div>
janek37 authored
112
    <div id="load-filter-dialog" title="{% trans 'Wybierz filtr' %}">
janek37 authored
113
        <ul id="filter-list" class="load-dialog-list"></ul>
janek37 authored
114
    </div>
janek37 authored
115
116
117
    <div id="group-action-dialog" title="{% trans 'Wybierz akcję grupową' %}">
        <button id="add-action" title="{% trans 'dodaj akcję' %}">
            <span class="ui-icon ui-icon-plus">{% trans 'dodaj akcję' %}</span>
janek37 authored
118
119
        </button>
        <table id="action-list" class="group-action-list">
janek37 authored
120
        </table>
janek37 authored
121
    </div>
janek37 authored
122
    <div id="choose-homonym-dialog" title="{% trans 'Wybierz homonim' %}">
janek37 authored
123
124
        <table id="homonym-list" class="choose-homonym-list">
            <thead>
janek37 authored
125
                <tr>
janek37 authored
126
127
128
                    <th>{% trans 'Nr hom.' %}</th>
                    <th>{% trans 'Rodzaj' %}</th>
                    <th>{% trans 'Wzór' %}</th>
janek37 authored
129
                </tr>
janek37 authored
130
131
132
133
134
            </thead>
            <tbody>
            </tbody>
        </table>
    </div>
janek37 authored
135
    <div id="prompter-dialog" title="{% trans 'Podpowiadacz wzorów' %}">
janek37 authored
136
137
138
139
140
        <div id="prompter-dialog-left">
            <table id="prompter-list">
            </table>
            <ul id="prompter-checkboxes">
                <li>
janek37 authored
141
                    <input type="checkbox" id="prompter-gender"/>
janek37 authored
142
                    <label for="prompter-gender">{% trans 'Uwzględniaj rodzaj' %}</label>
janek37 authored
143
144
145
                </li>
                <li>
                    <input type="checkbox" id="prompter-commonness"/>
janek37 authored
146
                    <label for="prompter-commonness">{% trans 'Uwzględniaj pospolitość' %}</label>
janek37 authored
147
148
149
                </li>
                <li>
                    <input type="checkbox" id="prompter-blacklist"/>
janek37 authored
150
                    <label for="prompter-blacklist">{% trans 'Pomijaj wzory nietypowe' %}</label>
janek37 authored
151
152
153
154
155
156
                </li>
            </ul>
        </div>
        <div id="prompter-table-preview">
        </div>
    </div>
janek37 authored
157
    <div id="default-owner-dialog" title="{% trans 'Wybór domyślnego słownika' %}">
janek37 authored
158
        <p>
janek37 authored
159
160
161
162
            {% blocktrans %}
                Wybierz słownik domyślnie ustawiany jako właściciel przy
                dodawaniu leksemów.
            {% endblocktrans %}
janek37 authored
163
164
        </p>
        <p>
janek37 authored
165
            {% trans 'Wybór można będzie zmienić w Ustawieniach.' %}
janek37 authored
166
167
168
169
170
171
172
173
        </p>
        <ul id="default-owner">
            {% for vocab in editable_vocabularies %}
                <li>
                    <input type="radio" value="{{ vocab.pk }}"
                           name="owner"/> {{ vocab.id }}
                </li>
            {% endfor %}
janek37 authored
174
        </ul>
janek37 authored
175
    </div>
janek37 authored
176
    <div id="more-actions-dialog" title="{% trans 'Inne działania' %}">
janek37 authored
177
        <p><button type="button" id="export-list-button">
janek37 authored
178
            {% trans 'Eksport aktualnie filtrowanej listy' %}
janek37 authored
179
180
        </button></p>
        <p><button type="button" id="reload-list-button">
janek37 authored
181
            {% trans 'Przeładowanie listy' %}
janek37 authored
182
        </button></p>
janek37 authored
183
        <p><button type="button" id="clone-lexeme-button">
janek37 authored
184
            {% trans 'Sklonowanie aktywnego leksemu' %}
janek37 authored
185
        </button></p>
janek37 authored
186
    </div>
janek37 authored
187
188
    <div id="auto-derivatives-dialog" title="{% trans 'Tworzenie derywatów' %}">
        <p>{% trans 'Wybierz hasła do utworzenia' %}:</p>
janek37 authored
189
190
191
        <ul id="auto-derivatives-list">
        </ul>
    </div>
janek37 authored
192
    <div id="search-by-form-dialog" title="{% trans 'Szukanie według formy' %}">
janek37 authored
193
194
195
        <table id="search-by-form-table">
        </table>
    </div>
janek37 authored
196
{% endblock %}