Przeniesienie fixtures do katalogu /apps/explorer.
[redakcja.git] / project / templates / explorer / editor.html
1 {% extends "base.html" %}
2
3 {% block extrahead %}
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>
13
14 {% endblock extrahead %}
15
16 {% block extrabody %}
17     <script type="text/javascript" charset="utf-8">
18     $(function() {
19         {% for scriptlet in scriptlets %}
20         editor.registerScriptlet("{{scriptlet.name}}",
21             function(editor, panel, params) {
22                 {{ scriptlet.code|safe }}
23             });
24         {% endfor %}
25      });  
26     </script>
27 {% endblock extrabody %}
28
29 {% block breadcrumbs %}<a href="{% url file_list %}">Platforma Redakcyjna</a> &gt; plik {{ fileid }}{% endblock breadcrumbs %}
30
31 {% block header-toolbar %}
32
33 <form action="{% url file_commit fileid %}" method="POST" style="display: inline;" id="toolbar-commit-form">
34     <input type="text" size="40" id="toolbar-commit-message" name="message" />
35     <button type="submit" class="toolbar-button" id="toolbar-button-commit">Merge</button>
36 </form>
37 <button type="button" class="toolbar-button" id="toolbar-button-update"
38         ui:ajax-action="{% url file_update fileid %}">Update</button>
39 <button type="button" class="toolbar-button" id="toolbar-button-save" disabled="disabled">Save</button>
40 {% endblock %}
41
42 {% block message-box %}
43     <div class="msg-info" id="save-waiting"><p>Zapisuję dane na serwerze.</p><p class="data"></p></div>
44     <div class="msg-success" id="save-successful"><p>Zapisano :)</p><p class="data"></p></div>
45     <div class="msg-warning" id="save-warn"><p>Zapisano. Uwagi: (</p><p class="data"></p></div>
46     <div class="msg-error" id="save-error"><p>Błąd przy zapisie.</p> <p class="data"></p></div>
47
48     <div class="msg-success" id="generic-yes"><p class="data"></p></div>
49     <div class="msg-info" id="generic-info"><p class="data"></p></div>
50     <div class="msg-error" id="generic-error"><p class="data"></p></div>
51     
52     <div class="msg-warning" id="not-implemented"><p>Tej funkcji jeszcze nie ma :(</p><p class="data"></p></div>
53     
54 {% endblock %}
55
56 {% block maincontent %}
57         <div id="panels">
58             {% for n in panel_list %}
59             <div class="panel-wrap{% if forloop.last %} last-panel{% endif %}" id="panel-{{n}}">
60                 <div class="panel-toolbar">
61                     <p><label>{{n|capfirst}} panel:
62                     <select name="select-{{n}}-panel" id="panel-{{n}}-select">
63                         {% for panel_type in availble_panels %}
64                         <option value="{% url panel_view path=fileid,name=panel_type.id  %}">{{panel_type.display_name}}</option>
65                         {% endfor %}
66                     </select>
67                     </label>
68                     <span class="toolbar-button-groups-container">
69                     <span class="panel-toolbar-extra" > </span>
70                     </span>
71                     <!-- rethink the refresh button - it doesn't work very well -->
72                     <!-- <button type="button" class="refresh-button">Odśwież</button> -->
73                     {# <a href="{% url print_xml fileid %}" target="_new">Wydruk</a> #}
74                     <strong class="change-notification" style="display: none">Widok nieaktualny!</strong>
75                     </p>
76                </div>
77                <div id="panel-{{n}}-content" class="panel-content"></div>
78                <button type="button" class="panel-slider"></button>
79             </div>
80             {% endfor %}
81         </div>
82 {% endblock maincontent %}