Blame view

dictionary/templates/lexeme_view.html 6.29 KB
janek37 authored
1
{% extends "base.html" %}
janek37 authored
2
{% load i18n version_static %}
janek37 authored
3
janek37 authored
4
5
6
7
{% block extrahead-lib %}
    {% include "slickgrid_libs.html" %}
{% endblock %}
janek37 authored
8
{% block extrahead %}
janek37 authored
9
    <link rel="stylesheet" type="text/css"
janek37 authored
10
          href="{% version_static 'css/slickgrid.css' %}"/>
janek37 authored
11
    <link rel="stylesheet" type="text/css"
janek37 authored
12
13
          href="{% version_static 'css/slickgrid-edit.css' %}"/>
    <link rel="stylesheet" type="text/css"
janek37 authored
14
          href="{% version_static 'css/lexeme_view.css' %}"/>
janek37 authored
15
    <link rel="stylesheet" type="text/css"
janek37 authored
16
          href="{% version_static 'css/history.css' %}">
janek37 authored
17
    <script type="text/javascript"
janek37 authored
18
            src="{% version_static 'js/remotemodel.js' %}"></script>
janek37 authored
19
    <script type="text/javascript"
janek37 authored
20
            src="{% version_static 'js/slickgrid.js' %}"></script>
janek37 authored
21
    <script type="text/javascript"
janek37 authored
22
            src="{% version_static 'js/lexeme-view.js' %}"></script>
janek37 authored
23
    <script type="text/javascript"
janek37 authored
24
            src="{% version_static 'js/edit.js' %}"></script>
janek37 authored
25
    <script type="text/javascript"
janek37 authored
26
            src="{% version_static 'js/lexeme-edit.js' %}"></script>
janek37 authored
27
28
{% endblock %}
janek37 authored
29
{% block title %}{% trans 'Lexeme view' %}{% endblock %}
janek37 authored
30
janek37 authored
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
{% 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 %}
janek37 authored
60
{% block content %}
janek37 authored
61
    <div id="left">
janek37 authored
62
        <div id="lexeme-grid"></div>
janek37 authored
63
    </div>
janek37 authored
64
    <div id="right">
janek37 authored
65
        <div class="tabs" id="lexeme-tabs">
janek37 authored
66
            <ul>
janek37 authored
67
68
69
                <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>
janek37 authored
70
                <!--li><a href="#odm">Formy z sjp.pl</a></li-->
janek37 authored
71
                <li><a href="#history">{% trans 'History' %}</a></li>
janek37 authored
72
73
74
75
            </ul>
            <div id="edit"></div>
            <div id="variant0"></div>
            <div id="variant1"></div>
janek37 authored
76
            <!--div id="odm"></div-->
janek37 authored
77
78
            <div id="history"></div>
        </div>
janek37 authored
79
80
81
82
    </div>
{% endblock %}

{% block modal_elements %}
janek37 authored
83
84
85
86
87
88
89
90
91
92
93
    {% 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>
janek37 authored
94
    </div>
janek37 authored
95
96
97
    <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>
janek37 authored
98
99
        </button>
        <table id="action-list" class="group-action-list">
janek37 authored
100
        </table>
janek37 authored
101
    </div>
janek37 authored
102
    <div id="choose-homonym-dialog" title="{% trans 'Choose homonym' %}">
janek37 authored
103
104
        <table id="homonym-list" class="choose-homonym-list">
            <thead>
janek37 authored
105
                <tr>
janek37 authored
106
107
108
                    <th>{% trans 'Hom. №' %}</th>
                    <th>{% trans 'Gender' %}</th>
                    <th>{% trans 'Pattern' %}</th>
janek37 authored
109
                </tr>
janek37 authored
110
111
112
113
114
            </thead>
            <tbody>
            </tbody>
        </table>
    </div>
janek37 authored
115
    <div id="prompter-dialog" title="{% trans 'Pattern prompter' %}">
janek37 authored
116
117
118
119
120
        <div id="prompter-dialog-left">
            <table id="prompter-list">
            </table>
            <ul id="prompter-checkboxes">
                <li>
janek37 authored
121
                    <input type="checkbox" id="prompter-gender"/>
janek37 authored
122
                    <label for="prompter-gender">{% trans 'Match gender' %}</label>
janek37 authored
123
124
125
                </li>
                <li>
                    <input type="checkbox" id="prompter-commonness"/>
janek37 authored
126
                    <label for="prompter-commonness">{% trans 'Match commonness' %}</label>
janek37 authored
127
128
129
                </li>
                <li>
                    <input type="checkbox" id="prompter-blacklist"/>
janek37 authored
130
                    <label for="prompter-blacklist">{% trans 'Exclude atypical patterns' %}</label>
janek37 authored
131
132
133
134
135
136
                </li>
            </ul>
        </div>
        <div id="prompter-table-preview">
        </div>
    </div>
janek37 authored
137
    <div id="default-owner-dialog" title="{% trans 'Choose default dictionary' %}">
janek37 authored
138
        <p>
janek37 authored
139
            {% trans 'Choose a dictionary to be set as the default owner when creating new lexemes.' %}
janek37 authored
140
141
        </p>
        <p>
janek37 authored
142
            {% trans 'This choice can be change in Settings.' %}
janek37 authored
143
144
145
146
        </p>
        <ul id="default-owner">
            {% for vocab in editable_vocabularies %}
                <li>
janek37 authored
147
148
                    <input type="radio" value="{{ vocab.pk }}" name="owner"/>
                    {{ vocab.id }}
janek37 authored
149
150
                </li>
            {% endfor %}
janek37 authored
151
        </ul>
janek37 authored
152
    </div>
janek37 authored
153
154
    <div id="auto-derivatives-dialog" title="{% trans 'Create derivatives' %}">
        <p>{% trans 'Choose entries to create' %}:</p>
janek37 authored
155
156
157
        <ul id="auto-derivatives-list">
        </ul>
    </div>
janek37 authored
158
    <div id="back-references-dialog" title="{% trans 'Back references' %}">
janek37 authored
159
160
        <div id="proposed-crs"></div>
    </div>
janek37 authored
161
{% endblock %}