1 {% extends "base.html" %}
4 <link rel="stylesheet" href="{{STATIC_URL}}css/toolbar.css" type="text/css" />
5 <script src="{{STATIC_URL}}js/jquery.lazyload.js" type="text/javascript" charset="utf-8"></script>
6 <script src="{{STATIC_URL}}js/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
7 <script src="{{STATIC_URL}}js/jquery.autoscroll.js" type="text/javascript" charset="utf-8"></script>
8 <script src="{{STATIC_URL}}js/jquery.wtooltip.js" type="text/javascript" charset="utf-8"></script>
9 <script src="{{STATIC_URL}}js/jquery.hpanel.js" type="text/javascript" charset="utf-8"></script>
10 <script src="{{STATIC_URL}}js/jquery.json.js" type="text/javascript" charset="utf-8"></script>
11 <script src="{{STATIC_URL}}js/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
12 <script src="{{STATIC_URL}}js/editor.js" type="text/javascript" charset="utf-8"></script>
14 {% endblock extrahead %}
17 <script type="text/javascript" charset="utf-8">
19 {% for scriptlet in scriptlets %}
20 editor.registerScriptlet("{{scriptlet.name}}",
21 function(editor, panel, params) {
22 {{ scriptlet.code|safe }}
27 {% endblock extrabody %}
29 {% block breadcrumbs %}<a href="{% url file_list %}">Platforma Redakcyjna</a> > plik {{ hash }}{% endblock breadcrumbs %}
31 {% block header-toolbar %}
32 <button type="button" class="toolbar-button" id="toolbar-button-commit">Commit</button>
33 <button type="button" class="toolbar-button" id="toolbar-button-save" disabled="disabled">Zapisz</button>
36 {% block message-box %}
37 <div class="msg-info" id="save-waiting"><p>Zapisuję dane na serwerze.</p><p class="data" /></div>
38 <div class="msg-success" id="save-successful"><p>Zapisano :)</p><p class="data" /></div>
39 <div class="msg-error" id="save-error"><p>Błąd przy zapisie.</p> <p class="data" /></div>
40 <div class="msg-warning" id="not-implemented"><p>Tej funkcji jeszcze nie ma :(</p><p class="data" /></div>
41 <div class="msg-warning" id="save-warn"><p>Zapisano. Uwagi: (</p><p class="data" /></div>
44 {% block maincontent %}
46 {% for n in panel_list %}
47 <div class="panel-wrap{% if forloop.last %} last-panel{% endif %}" id="panel-{{n}}">
48 <div class="panel-toolbar">
49 <label for="select-{{n}}-panel">{{n|capfirst}} panel:</label>
50 <select name="select-{{n}}-panel" id="panel-{{n}}-select">
51 <option value="{% url xmleditor_panel hash %}" name="xmleditor">Edytor XML</option>
52 <option value="{% url htmleditor_panel hash %}" name="htmleditor">Edytor HTML</option>
53 <option value="{% url gallery_panel hash %}" name="gallery">Galeria skanów</option>
54 <option value="{% url dceditor_panel hash %}" name="dceditor">Edytor DublinCore</option>
56 <button type="button" class="refresh-button">Odśwież</button>
57 <strong class="change-notification" style="display: none">Widok nieaktualny!</strong>
59 <div id="panel-{{n}}-content" class="panel-content"></div>
60 <button type="button" class="panel-slider"></button>
64 {% endblock maincontent %}