summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/base.html
blob: 0b385267d7d83868002d40dfc46f7a8d550e408b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{% load i18n compress %}<!doctype html>
<html lang="{{LANGUAGE_CODE}}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="shortcut icon" href="{{STATIC_URL}}/media/images/favicon.png"/>
    <title>{% block title %}Ishtar{% if APP_NAME %} - {{APP_NAME}}{%endif%}{% endblock %}</title>
    {% compress js %}
    <script language="javascript" type="text/javascript">
        var url_path = "{{URL_PATH}}";
    </script>
    <script language="javascript" type="text/javascript" src="{{JQUERY_URL}}?ver={{VERSION}}"></script>
    <script language="javascript" type="text/javascript" src="{{STATIC_URL}}popper.min.js?ver={{VERSION}}"></script>
    <script language="javascript" type="text/javascript" src="{{STATIC_URL}}bootstrap/bootstrap.js?ver={{VERSION}}"></script>
    <script language="javascript" type="text/javascript" src="{{JQUERY_UI_URL}}jquery-ui.js?ver={{VERSION}}"></script>
    <script language="javascript" type="text/javascript" src="{{STATIC_URL}}js/chosen/chosen.jquery.min.js?ver={{VERSION}}"></script>
    {# <script language="javascript" type="text/javascript" src="{{STATIC_URL}}js/prettyPhoto/js/jquery.prettyPhoto.js?ver={{VERSION}}"></script> #}
    <script language="javascript" type="text/javascript"
            src="{{STATIC_URL}}datatables/datatables.min.js?ver={{VERSION}}"></script>
    <script language="javascript" type="text/javascript" src="{{STATIC_URL}}datatables/dataTables.bootstrap4.min.js?ver={{VERSION}}"></script>
    <script language="javascript" type="text/javascript" src="{{STATIC_URL}}datatables/dataTables.buttons.min.js?ver={{VERSION}}"></script>
    <script src="{{STATIC_URL}}lightgallery/js/lightgallery.min.js?ver={{VERSION}}"></script>
    <!-- lightgallery plugins -->
    <script src="{{STATIC_URL}}lightgallery/js/lg-zoom.min.js?ver={{VERSION}}"></script>
    <script src="{{STATIC_URL}}lightgallery/js/lg-fullscreen.min.js?ver={{VERSION}}"></script>
    <script src="{{STATIC_URL}}lightgallery/js/lg-thumbnail.min.js?ver={{VERSION}}"></script>
    <script language="javascript" type="text/javascript" src="{{STATIC_URL}}js/ishtar.js?ver={{VERSION}}"></script>
    <script language="javascript" type="text/javascript"
            src="{{STATIC_URL}}datatables/i18n/{{LANGUAGE_CODE}}.js?ver={{VERSION}}"></script>
    {{EXTRA_JS|safe}}
    <script type='text/javascript'>
    var shortcut_url = '{% url "shortcut-menu" %}';
    var get_file_url = '{% url "get-file-shortcut" %}';
    var get_operation_url = '{% url "get-operation-shortcut" %}';
    var get_contextrecord_url = '{% url "get-contextrecord-shortcut" %}';
    var get_find_url = '{% url "get-find-shortcut" %}';
    var activate_all_search_url = '{% url "activate-all-search" %}';
    var activate_own_search_url = '{% url "activate-own-search" %}';
    var activate_all_search_msg = "{% trans 'Searches in the shortcut menu deal with all items.' %}";
    var activate_own_search_msg = "{% trans 'Searches in the shortcut menu deal with only your items.' %}";
    var YES = "{% trans 'yes' %}";
    var NO = "{% trans 'no' %}";
    </script>
    {% endcompress %}
    {% compress css %}
    <link rel="stylesheet" href="{{STATIC_URL}}bootstrap/bootstrap.css?ver={{VERSION}}">
    <link rel="stylesheet" href="{{STATIC_URL}}js/chosen/chosen.min.css?ver={{VERSION}}">
    <link rel="stylesheet" href="{{STATIC_URL}}font-awesome/css/font-awesome.min.css?ver={{VERSION}}">
    <link rel="stylesheet" href="{{STATIC_URL}}js/prettyPhoto/css/prettyPhoto.css?ver={{VERSION}}">
    <link rel="stylesheet"
          href="{{STATIC_URL}}datatables/datatables.min.css?ver={{VERSION}}">
    <link rel="stylesheet" href="{{STATIC_URL}}datatables/dataTables.bootstrap4.min.css?ver={{VERSION}}">
    <link type="text/css" rel="stylesheet" href="{{STATIC_URL}}lightgallery/css/lightgallery.css?ver={{VERSION}}">
    <link rel="stylesheet" href="{{STATIC_URL}}media/styles.css?ver={{VERSION}}">
    {% for url_css in JQGRID_CSS %}<link rel="stylesheet" href="{{url_css}}?ver={{VERSION}}">{% endfor %}
    {{EXTRA_CSS|safe}}
    {% endcompress %}
    {% block extra_head %}
    {% endblock %}
</head>
<body{% if current_theme%} id='{{current_theme}}'{%endif%}>
    {% include "navbar.html" %}
    <div id="context-menu" class="navbar navbar-expand-lg"></div>
    {% if reminders %}
    <div id="reminder"><h5>{% trans "Current items" %}</h5>
{% for lbl, value in reminders %}
<p><strong class='lbl'>{{lbl}}{% trans ":"%}</strong> <span class='value'>{{value}}</span></p>
{% endfor %}
</div> {%endif%}
    <button class="nav-button btn btn-sm btn-secondary" id="to_bottom_arrow">
        <i class="fa fa-arrow-down" aria-hidden="true"></i>
    </button>
    <button class="nav-button btn btn-sm btn-secondary" id="to_top_arrow">
        <i class="fa fa-arrow-up" aria-hidden="true"></i>
    </button>
    {% block pre_container %}{% endblock %}
    <div class="container">
        {% block top_content %}{% endblock %}
        <div id="window_wrapper">
            <div id="window" role="tablist"></div>
        </div>

        {% if warnings %}{% for warning in warnings %}
        <div class="alert alert-warning alert-dismissible fade show" role="alert">
            {{warning}}<button type="button" class="close" data-dismiss="alert" aria-label="Close">
                <span aria-hidden="true">&times;</span>
            </button>
        </div>
        {% endfor %}{% endif %}
        {% block content %}{% endblock %}
    </div>

    {% block footer %}
    <div id="footer">
        {% include 'ishtar/blocks/footer.html' %}
    </div>
    {% endblock %}
    <div class="modal modal-progress" tabindex="-1" role="dialog"
         data-backdrop="static" data-keyboard="false" aria-hidden="true">
      <div class="modal-dialog modal-sm modal-dialog-centered">
        <div class="modal-content" id='progress-content'>
            <div class="modal-header">
                <span class='progress-detail progress-1'>
                    {% trans "Processing..." %}</span>
                <span class='progress-detail progress-2'>
                    {% trans "This can be long." %}</span>
                <span class='progress-detail progress-3'>
                    {% trans "Time to take a coffee?" %} <i class="fa fa-coffee" aria-hidden="true"></i></span>
                <span class='progress-detail progress-4'>
                    {% trans "Time to take another coffee?" %} <i class="fa fa-coffee" aria-hidden="true"></i></span>
                <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                  <span aria-hidden="true">&times;</span>
                </button>
            </div>
            <div class="modal-body">
                <div class="progress">
                  <div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 100%"></div>
                </div>
            </div>
        </div>
      </div>
    </div>
    <div id='message'>
        <div class='information'><i class="fa fa-info-circle" aria-hidden="true"></i> <span class='content'></span></div>
    </div>
</body>

</html>