lexeme_view.html 8.44 KB
{% 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 %}