Blame view

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

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

{% block title %}Widok leksemów{% endblock %}

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

{% block modal_elements %}
janek37 authored
100
101
102
103
104
105
106
107
108
109
110
111
112
    <div id="choose-columns-dialog" title="Wybierz kolumny">
        <select id="column-list" multiple=multiple></select>
    </div>
    <div id="choose-filter-dialog" title="Filtrowanie">
        <p>
            <select id="group-op">
                <option value="AND" selected="selected">oraz</option>
                <option value="OR">lub</option>
            </select>
            <input type="button" value="+" title="Dodaj filtr"
                   id="add-filter-button">
        </p>
        <table id="filter-table"></table>
janek37 authored
113
114
    </div>
    <div id="load-filter-dialog" title="Wybierz filtr">
janek37 authored
115
        <ul id="filter-list" class="load-dialog-list"></ul>
janek37 authored
116
117
118
119
120
121
    </div>
    <div id="group-action-dialog" title="Wybierz akcję grupową">
        <button id="add-action" title="dodaj akcję">
            <span class="ui-icon ui-icon-plus">dodaj akcję</span>
        </button>
        <table id="action-list" class="group-action-list">
janek37 authored
122
        </table>
janek37 authored
123
124
125
126
    </div>
    <div id="choose-homonym-dialog" title="Wybierz homonim">
        <table id="homonym-list" class="choose-homonym-list">
            <thead>
janek37 authored
127
128
129
130
131
                <tr>
                    <th>Nr hom.</th>
                    <th>Char. fleks.</th>
                    <th>Wzór</th>
                </tr>
janek37 authored
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
            </thead>
            <tbody>
            </tbody>
        </table>
    </div>
    <div id="prompter-dialog" title="Podpowiadacz wzorów">
        <div id="prompter-dialog-left">
            <table id="prompter-list">
            </table>
            <ul id="prompter-checkboxes">
                <li>
                    <input type="checkbox" id="prompter-ic"/>
                    <label for="prompter-ic">Uwzględniaj charakterystykę
                        fleksyjną</label>
                </li>
                <li>
                    <input type="checkbox" id="prompter-commonness"/>
                    <label for="prompter-commonness">Uwzględniaj
                        pospolitość</label>
                </li>
                <li>
                    <input type="checkbox" id="prompter-blacklist"/>
                    <label for="prompter-blacklist">Pomijaj wzory
                        nietypowe</label>
                </li>
            </ul>
        </div>
        <div id="prompter-table-preview">
        </div>
    </div>
    <div id="default-owner-dialog" title="Wybór domyślnego słownika">
        <p>
            Wybierz słownik domyślnie ustawiany jako właściciel przy dodawaniu
            leksemów.
        </p>
        <p>
janek37 authored
168
            Wybór można będzie zmienić w Ustawieniach.
janek37 authored
169
170
171
172
173
174
175
176
        </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
177
        </ul>
janek37 authored
178
    </div>
janek37 authored
179
{% endblock %}