pattern_view.html 3.78 KB
{% extends "base.html" %}
{% load i18n %}

{% block extrahead %}
    <link rel="stylesheet" href="{{ MEDIA_URL }}css/lib/slick.grid.css"
          type="text/css"/>
    <link rel="stylesheet" type="text/css"
          href="{{ MEDIA_URL }}css/lib/jquery.uix.multiselect.css">
    <link rel="stylesheet" type="text/css"
          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"/>
    <link rel="stylesheet" type="text/css"
          href="{{ MEDIA_URL }}css/pattern_view.css"/>
    <link rel="stylesheet" type="text/css"
          href="{{ MEDIA_URL }}css/inflection_table.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"
            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"
            src="{{ MEDIA_URL }}js/lib/jquery.uix.multiselect.js"></script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/lib/slick.core.js"></script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/lib/slick.grid.js"></script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/remotemodel.js"></script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/slickgrid.js"></script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/pattern-view.js"></script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/edit.js"></script>
    <script type="text/javascript"
            src="{{ MEDIA_URL }}js/pattern-edit.js"></script>
{% endblock %}

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

{% block content %}
    <div id="left">
        <div id="search-panel">
            <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>
            <input type="text" id="text-search"/>
            <button id="search-button" title="szukaj">
                <span class="ui-icon ui-icon-search">szukaj</span>
            </button>
            {% if perms.dictionary.change_pattern %}
                <button id="add-button" title="dodaj wzór">
                    <span class="ui-icon ui-icon-plus">dodaj wzór</span>
                </button>
            {% endif %}
        </div>
        <div id="pattern-grid"></div>
    </div>
    <div id="right">
        <div class="tabs">
            <ul>
                <li><a href="#edit" id="edit-tab">Edycja</a></li>
                <li><a href="#preview" id="preview-tab">Podgląd</a></li>
            </ul>
            <div id="edit">
            </div>
            <div id="preview">
            </div>
        </div>
    </div>
{% endblock %}

{% block modal_elements %}
    <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>
    </div>
{% endblock %}