1 {% extends "base.html" %}
4 <script type="text/javascript" charset="utf-8">
5 var fileId = '{{ fileid }}';
7 <link rel="stylesheet" href="{{STATIC_URL}}css/toolbar.css" type="text/css" />
8 <link rel="stylesheet" href="{{STATIC_URL}}css/jquery.modal.css" type="text/css" />
9 <script src="{{STATIC_URL}}js/lib/jquery.lazyload.js" type="text/javascript" charset="utf-8"></script>
10 <script src="{{STATIC_URL}}js/lib/codemirror/codemirror.js" type="text/javascript" charset="utf-8"></script>
11 <script src="{{STATIC_URL}}js/lib/jquery.wtooltip.js" type="text/javascript" charset="utf-8"></script>
12 <script src="{{STATIC_URL}}js/lib/jquery.json.js" type="text/javascript" charset="utf-8"></script>
13 <script src="{{STATIC_URL}}js/lib/jquery.cookie.js" type="text/javascript" charset="utf-8"></script>
14 <script src="{{STATIC_URL}}js/lib/jquery.modal.js" type="text/javascript" charset="utf-8"></script>
15 <script src="{{STATIC_URL}}js/app.js" type="text/javascript" charset="utf-8"></script>
16 <script src="{{STATIC_URL}}js/views/split.js" type="text/javascript" charset="utf-8"></script>
17 <script src="{{STATIC_URL}}js/views/xml.js" type="text/javascript" charset="utf-8"></script>
18 <script src="{{STATIC_URL}}js/views/html.js" type="text/javascript" charset="utf-8"></script>
19 <script src="{{STATIC_URL}}js/views/panel_container.js" type="text/javascript" charset="utf-8"></script>
20 <script src="{{STATIC_URL}}js/editor.js" type="text/javascript" charset="utf-8"></script>
21 <script src="{{STATIC_URL}}js/editor.ui.js" type="text/javascript" charset="utf-8"></script>
23 {# JavaScript templates #}
24 <script type="text/html" charset="utf-8" id="panel-container-view-template">
26 <% for (var i = 0; i < panels.length; i++) { %>
27 <option value="<%= i %>"><%= panels[i].name %></option>
30 <div class="content-view"></div>
32 <script type="text/html" charset="utf-8" id="html-view-template">
33 <p>Hej! Jestem widokiem HTML!</p>
35 <script type="text/html" charset="utf-8" id="xml-view-template">
36 <p>Hej! Jestem widokiem XML!</p>
38 {% endblock extrahead %}
41 <script type="text/javascript" charset="utf-8">
43 {% for scriptlet in scriptlets %}
44 editor.registerScriptlet("{{scriptlet.name}}",
45 function(editor, panel, params) {
46 {{ scriptlet.code|safe }}
51 {% endblock extrabody %}
53 {% load explorer_tags %}
55 {% block breadcrumbs %}<a href="{% url file_list %}">Platforma Redakcyjna</a> > {{ fileid|bookname }}{% endblock breadcrumbs %}
57 {% block header-toolbar %}
58 <button type="button" class="requires-save toolbar-button" id="toolbar-button-commit">Merge</button>
59 <button type="button" class="requires-save toolbar-button" id="toolbar-button-update"
60 ui:ajax-action="{% url file_update fileid %}">Update</button>
61 <button type="button" class="provides-save toolbar-button" id="toolbar-button-save" disabled="disabled">Commit</button>
62 <button type="button" class="provides-save toolbar-button" id="toolbar-button-quick-save" disabled="disabled">Quick Save</button>
65 {% block message-box %}
66 <div class="msg-info" id="save-waiting"><p>Zapisuję dane na serwerze.</p><p class="data"></p></div>
67 <div class="msg-success" id="save-successful"><p>Zapisano :)</p><p class="data"></p></div>
68 <div class="msg-warning" id="save-warn"><p>Zapisano. Uwagi: (</p><p class="data"></p></div>
69 <div class="msg-error" id="save-error"><p>Błąd przy zapisie.</p> <p class="data"></p></div>
71 <div class="msg-success" id="generic-yes"><p class="data"></p></div>
72 <div class="msg-info" id="generic-info"><p class="data"></p></div>
73 <div class="msg-error" id="generic-error"><p class="data"></p></div>
75 <div class="msg-warning" id="not-implemented"><p>Tej funkcji jeszcze nie ma :(</p><p class="data"></p></div>
79 {% block maincontent %}
81 <div id="left-panel-container" class='panel-container'>
82 <select name="select-left-panel" id="panel-left-select">
83 {% for panel_type in availble_panels %}
84 <option value="{% url panel_view path=fileid,name=panel_type.id %}" p:panel-name="{{ panel_type.id }}">{{panel_type.display_name}}</option>
87 <div id="panel-left-content" class="panel-content"></div>
88 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
90 <div id="right-panel-container" class='panel-container'>
91 {# <select name="select-right-panel" id="panel-right-select"> #}
92 {# {% for panel_type in availble_panels %} #}
93 {# <option value="{% url panel_view path=fileid,name=panel_type.id %}" p:panel-name="{{ panel_type.id }}">{{panel_type.display_name}}</option> #}
96 {# <div id="panel-right-content" class="panel-content"></div> #}
97 <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p></div>
100 <div id="commit-dialog" class="jqmWindow">
101 <form action="{% url file_commit fileid %}" method="POST">
102 <label for="message">Commit message:</label>
103 <textarea cols="60" rows="10" name="message" id="commit-dialog-message"></textarea>
104 <p id="commit-dialog-error-empty-message">Wiadomość nie może być pusta.</p>
105 <fieldset id="commit-dialog-related-issues"
106 ui:ajax-src="http://localhost:3000/publications/issues/{{fileid}}">
107 <legend>Related issues</legend>
108 <div class="loading-box" style="display: none;">
109 <p>Loading related issues...</p>
111 <div class="container-box">No related issues.</div>
114 <input type="button" value="Save" id="commit-dialog-save-button" />
115 <input type="reset" value="Cancel" id="commit-dialog-cancel-button" />
120 <div id="split-dialog" class="jqmWindow">
121 <div class="container-box"> </div>
122 <div class="loading-box" style="display: none;">
123 <p>Loading dialog contents...</p>
124 <!-- <p><button type="button" class="dialog-close-button">Close</button></p> -->
126 <div class="fatal-error-box" style="display: none;">
127 <p>Server error, while loading dialog :(</p>
128 <p><button type="button" class="dialog-close-button">Close</button></p>
131 {% endblock maincontent %}