Blame view

patterns/templates/pattern_view.html 3.13 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/pattern_view.css' %}"/>
janek37 authored
15
    <link rel="stylesheet" type="text/css"
janek37 authored
16
          href="{% version_static 'css/inflection_table.css' %}"/>
janek37 authored
17
    <link rel="stylesheet" type="text/css"
janek37 authored
18
          href="{% version_static 'css/history.css' %}"/>
janek37 authored
19
    <script type="text/javascript"
janek37 authored
20
            src="{% version_static 'js/remotemodel.js' %}"></script>
janek37 authored
21
    <script type="text/javascript"
janek37 authored
22
            src="{% version_static 'js/slickgrid.js' %}"></script>
janek37 authored
23
    <script type="text/javascript"
janek37 authored
24
            src="{% version_static 'js/pattern-view.js' %}"></script>
janek37 authored
25
    <script type="text/javascript"
janek37 authored
26
            src="{% version_static 'js/edit.js' %}"></script>
janek37 authored
27
    <script type="text/javascript"
janek37 authored
28
            src="{% version_static 'js/pattern-edit.js' %}"></script>
janek37 authored
29
30
{% endblock %}
janek37 authored
31
{% block title %}{% trans 'Pattern view' %}{% endblock %}
janek37 authored
32
janek37 authored
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{% block moremenu %}
    <li id="search-panel">
        <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_pattern %}
            <button id="add-button" title="{% trans 'create pattern' %}">
                <span class="ui-icon ui-icon-plus">{% trans 'create pattern' %}</span>
janek37 authored
48
            </button>
janek37 authored
49
50
            <button id="more-button" title="{% trans 'more' %}">
                <span class="ellipsis-icon">...</span>
janek37 authored
51
            </button>
janek37 authored
52
53
54
55
56
57
        {% endif %}
    </li>
{% endblock %}

{% block content %}
    <div id="left">
janek37 authored
58
        <div id="pattern-grid"></div>
janek37 authored
59
    </div>
janek37 authored
60
61
62
    <div id="right">
        <div class="tabs">
            <ul>
janek37 authored
63
64
65
                <li><a href="#edit" id="edit-tab">{% trans 'Edit' %}</a></li>
                <li><a href="#preview" id="preview-tab">{% trans 'Preview' %}</a></li>
                <li><a href="#history" id="history-tab">{% trans 'History' %}</a></li>
janek37 authored
66
67
68
            </ul>
            <div id="edit">
            </div>
janek37 authored
69
70
            <div id="preview">
            </div>
janek37 authored
71
72
            <div id="history">
            </div>
janek37 authored
73
        </div>
janek37 authored
74
75
76
77
    </div>
{% endblock %}

{% block modal_elements %}
janek37 authored
78
    {% include "slickgrid_modal_elements.html" %}
janek37 authored
79
    <div id="more-actions-dialog" title="{% trans 'Other actions' %}">
janek37 authored
80
        <p><button type="button" id="clone-pattern-button">
janek37 authored
81
            {% trans 'Clone the active pattern' %}
janek37 authored
82
83
        </button></p>
    </div>
janek37 authored
84
{% endblock %}