Blame view

dictionary/templates/lexeme_view.html 6.68 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
    <link rel="stylesheet" type="text/css"
          href="{{ MEDIA_URL }}css/lib/jquery.ui.selectmenu.css"/>
    <link rel="stylesheet" type="text/css"
janek37 authored
10
11
12
13
14
          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
15
16
17
18
19
20
21
    <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
22
23
24
25
            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
26
27
            src="{{ MEDIA_URL }}js/lib/jquery.ui.selectmenu.js"></script>
    <script type="text/javascript"
janek37 authored
28
            src="{{ MEDIA_URL }}js/lib/jquery.uix.multiselect.js"></script>
janek37 authored
29
    <script type="text/javascript"
janek37 authored
30
            src="{{ MEDIA_URL }}js/lib/slick.core.js"></script>
janek37 authored
31
    <script type="text/javascript"
janek37 authored
32
            src="{{ MEDIA_URL }}js/lib/slick.grid.js"></script>
janek37 authored
33
    <script type="text/javascript"
janek37 authored
34
35
36
            src="{{ MEDIA_URL }}js/remotemodel.js"></script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/slickgrid.js"></script>
janek37 authored
37
38
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/lexeme-view.js"></script>
janek37 authored
39
40
41
42
    <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
43
44
45
46
47
{% endblock %}

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

{% block content %}
janek37 authored
48
49
    <div id="left">
        <div id="search-panel">
janek37 authored
50
            <button id="sort-button" title="sortuj">
janek37 authored
51
52
53
54
55
56
57
58
                <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
59
            <input type="text" id="text-search"/>
janek37 authored
60
            <button id="search-button" title="szukaj">
janek37 authored
61
62
63
64
65
66
67
68
69
70
71
                <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
72
        <div id="lexeme-grid"></div>
janek37 authored
73
    </div>
janek37 authored
74
    <div id="right">
janek37 authored
75
        <div class="tabs" id="lexeme-tabs">
janek37 authored
76
77
78
79
            <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
80
                <!--li><a href="#odm">Formy z sjp.pl</a></li-->
janek37 authored
81
82
83
84
85
                <li><a href="#history">Historia</a></li>
            </ul>
            <div id="edit"></div>
            <div id="variant0"></div>
            <div id="variant1"></div>
janek37 authored
86
            <!--div id="odm"></div-->
janek37 authored
87
88
            <div id="history"></div>
        </div>
janek37 authored
89
90
91
92
    </div>
{% endblock %}

{% block modal_elements %}
janek37 authored
93
94
95
96
97
98
99
100
101
102
103
104
105
    <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
106
107
    </div>
    <div id="load-filter-dialog" title="Wybierz filtr">
janek37 authored
108
        <ul id="filter-list" class="load-dialog-list"></ul>
janek37 authored
109
110
111
112
113
114
    </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
115
        </table>
janek37 authored
116
117
118
119
    </div>
    <div id="choose-homonym-dialog" title="Wybierz homonim">
        <table id="homonym-list" class="choose-homonym-list">
            <thead>
janek37 authored
120
121
122
123
124
                <tr>
                    <th>Nr hom.</th>
                    <th>Char. fleks.</th>
                    <th>Wzór</th>
                </tr>
janek37 authored
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
            </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
161
            Wybór można będzie zmienić w Ustawieniach.
janek37 authored
162
163
164
165
166
167
168
169
        </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
170
        </ul>
janek37 authored
171
    </div>
janek37 authored
172
{% endblock %}