lexeme_view.html 8.22 KB
{% extends "base.html" %}
{% load i18n staticfiles %}

{% block extrahead %}
    <link rel="stylesheet" type="text/css"
          href="{% static 'css/lib/jquery.uix.multiselect.css' %}">
    <link rel="stylesheet" type="text/css"
          href="{% static 'css/lib/jquery.ui.selectmenu.css' %}"/>
    <link rel="stylesheet" type="text/css"
          href="{% static 'css/lib/slick.grid.css' %}"/>
    <link rel="stylesheet" type="text/css"
          href="{% static 'css/slick-default-theme.css' %}"/>
    <link rel="stylesheet" type="text/css"
          href="{% static 'css/slickgrid.css' %}"/>
    <link rel="stylesheet" type="text/css"
          href="{% static 'css/lexeme_view.css' %}"/>
    <link rel="stylesheet" type="text/css"
          href="{% static 'css/history.css' %}">
    <script type="text/javascript"
            src="{% static 'js/lib/cvi_busy_lib.js' %}"></script>
    <script type="text/javascript"
            src="{% static 'js/lib/splitter.js' %}"></script>
    <script type="text/javascript"
            src="{% static 'js/lib/jquery.event.drag-2.2.js' %}"></script>
    <script type="text/javascript"
            src="{% static 'js/lib/jquery.event.drop-2.2.js' %}"></script>
    <script type="text/javascript"
            src="{% static 'js/lib/jquery.ui.selectmenu.js' %}"></script>
    <script type="text/javascript"
            src="{% static 'js/lib/jquery.uix.multiselect.js' %}"></script>
    <script type="text/javascript"
            src="{% static 'js/lib/slick.core.js' %}"></script>
    <script type="text/javascript"
            src="{% static 'js/lib/slick.grid.js' %}"></script>
    <script type="text/javascript"
            src="{% static 'js/remotemodel.js' %}"></script>
    <script type="text/javascript"
            src="{% static 'js/slickgrid.js' %}"></script>
    <script type="text/javascript"
            src="{% static 'js/lexeme-view.js' %}"></script>
    <script type="text/javascript"
            src="{% static 'js/edit.js' %}"></script>
    <script type="text/javascript"
            src="{% static 'js/lexeme-edit.js' %}"></script>
{% endblock %}

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

{% block content %}
    <div id="left">
        <div id="search-panel">
            <button id="sort-button" title="{% trans 'sortuj' %}">
                <span class="ui-icon ui-icon-sort">{% trans 'sortuj' %}</span>
            </button>
            <button id="filter-button" title="{% trans 'filtruj' %}">
                <span class="ui-icon ui-icon-filter">{% trans 'filtruj' %}</span>
            </button>
            <button id="show-columns-button" title="{% trans 'pokaż/ukryj' %}">
                <span class="ui-icon ui-icon-columns">{% trans 'pokaż/ukryj' %}</span>
            </button>
            <input type="text" id="text-search"/>
            <button id="search-button" title="{% trans 'szukaj' %}">
                <span class="ui-icon ui-icon-search">{% trans 'szukaj' %}</span>
            </button>
            {% if perms.dictionary.change_lexeme %}
                <!--button id="action-button" title="{% trans 'akcje grupowe' %}">
                    <span class="ui-icon ui-icon-star">{% trans 'akcje grupowe' %}</span>
                </button-->
                <button id="add-button" title="{% trans 'dodaj leksem' %}">
                    <span class="ui-icon ui-icon-plus">{% trans 'dodaj leksem' %}</span>
                </button>
            {% endif %}
            <button id="more-button" title="{% trans 'więcej' %}">
                <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 'Edycja' %}</a></li>
                <li><a href="#variant0">{% trans 'Formy bazowe' %}</a></li>
                <li><a href="#variant1">{% trans 'Wszystkie formy' %}</a></li>
                <!--li><a href="#odm">Formy z sjp.pl</a></li-->
                <li><a href="#history">{% trans 'Historia' %}</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 'Wybierz kolumny' %}">
        <select id="column-list" multiple=multiple></select>
    </div>
    <div id="choose-filter-dialog" title="{% trans 'Filtrowanie' %}">
        <p>
            <select id="group-op">
                <option value="AND" selected="selected">{% trans 'oraz' %}</option>
                <option value="OR">{% trans 'lub' %}</option>
            </select>
            <input type="button" value="+" title="{% trans 'Dodaj filtr' %}"
                   id="add-filter-button">
        </p>
        <table id="filter-table"></table>
    </div>
    <div id="load-filter-dialog" title="{% trans 'Wybierz filtr' %}">
        <ul id="filter-list" class="load-dialog-list"></ul>
    </div>
    <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>
        </button>
        <table id="action-list" class="group-action-list">
        </table>
    </div>
    <div id="choose-homonym-dialog" title="{% trans 'Wybierz homonim' %}">
        <table id="homonym-list" class="choose-homonym-list">
            <thead>
                <tr>
                    <th>{% trans 'Nr hom.' %}</th>
                    <th>{% trans 'Rodzaj' %}</th>
                    <th>{% trans 'Wzór' %}</th>
                </tr>
            </thead>
            <tbody>
            </tbody>
        </table>
    </div>
    <div id="prompter-dialog" title="{% trans 'Podpowiadacz wzorów' %}">
        <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 'Uwzględniaj rodzaj' %}</label>
                </li>
                <li>
                    <input type="checkbox" id="prompter-commonness"/>
                    <label for="prompter-commonness">{% trans 'Uwzględniaj pospolitość' %}</label>
                </li>
                <li>
                    <input type="checkbox" id="prompter-blacklist"/>
                    <label for="prompter-blacklist">{% trans 'Pomijaj wzory nietypowe' %}</label>
                </li>
            </ul>
        </div>
        <div id="prompter-table-preview">
        </div>
    </div>
    <div id="default-owner-dialog" title="{% trans 'Wybór domyślnego słownika' %}">
        <p>
            {% blocktrans %}
                Wybierz słownik domyślnie ustawiany jako właściciel przy
                dodawaniu leksemów.
            {% endblocktrans %}
        </p>
        <p>
            {% trans 'Wybór można będzie zmienić w Ustawieniach.' %}
        </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 'Inne działania' %}">
        <p><button type="button" id="export-list-button">
            {% trans 'Eksport aktualnie filtrowanej listy' %}
        </button></p>
        <p><button type="button" id="reload-list-button">
            {% trans 'Przeładowanie listy' %}
        </button></p>
        <p><button type="button" id="clone-lexeme-button">
            {% trans 'Sklonowanie aktywnego leksemu' %}
        </button></p>
    </div>
    <div id="auto-derivatives-dialog" title="{% trans 'Tworzenie derywatów' %}">
        <p>{% trans 'Wybierz hasła do utworzenia' %}:</p>
        <ul id="auto-derivatives-list">
        </ul>
    </div>
    <div id="search-by-form-dialog" title="{% trans 'Szukanie według formy' %}">
        <table id="search-by-form-table">
        </table>
    </div>
{% endblock %}