|
@@ -9,7 +9,7 @@
|
9
|
9
|
<link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/glyphicons.css')}" />
|
10
|
10
|
|
11
|
11
|
<link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/bootstrap-datetimepicker.min.css')}" />
|
12
|
|
-
|
|
12
|
+ <link rel="stylesheet" type="text/css" media="screen" href="${tg.url('/css/external/font-awesome-4.0.3/css/font-awesome.min.css')}" />
|
13
|
13
|
<style>
|
14
|
14
|
/* Wrapper for page content to push down footer */
|
15
|
15
|
#wrap {
|
|
@@ -84,12 +84,91 @@ body { padding-top: 60px; }
|
84
|
84
|
}
|
85
|
85
|
|
86
|
86
|
ul.nav li.dropdown:hover > ul.dropdown-menu {
|
87
|
|
- display: block;
|
|
87
|
+ display: block;
|
88
|
88
|
}
|
89
|
89
|
|
90
|
90
|
</style>
|
91
|
91
|
</head>
|
92
|
92
|
<body class="${self.body_class()}">
|
|
93
|
+ <script src="http://code.jquery.com/jquery.js"></script>
|
|
94
|
+
|
|
95
|
+##########################
|
|
96
|
+##
|
|
97
|
+## HERE COMES THE FULLSCREEN CODE FOR RICH TEXT EDITING
|
|
98
|
+##
|
|
99
|
+## FIXME - D.A. - 2013-11-13 - This code is testing, to remove later
|
|
100
|
+<style>
|
|
101
|
+ .full-size-overlay {
|
|
102
|
+ height:100%;
|
|
103
|
+ width:100%;
|
|
104
|
+ position:fixed;
|
|
105
|
+ left:0;
|
|
106
|
+ top:0;
|
|
107
|
+ z-index:0 !important;
|
|
108
|
+ background-color:white;
|
|
109
|
+
|
|
110
|
+ filter: alpha(opacity=90); /* internet explorer */
|
|
111
|
+ -khtml-opacity: 0.9; /* khtml, old safari */
|
|
112
|
+ -moz-opacity: 0.9; /* mozilla, netscape */
|
|
113
|
+ opacity: 0.9; /* fx, safari, opera */
|
|
114
|
+ }
|
|
115
|
+
|
|
116
|
+ .full-size-overlay-inner {
|
|
117
|
+ margin: 3.5em 0.5em 0.5em 0.5em;
|
|
118
|
+ overflow: auto;
|
|
119
|
+ max-height: 85%;
|
|
120
|
+ }
|
|
121
|
+
|
|
122
|
+</style>
|
|
123
|
+<script>
|
|
124
|
+
|
|
125
|
+ function toggleFullScreen(outerWidgetId, innerWidgetId) {
|
|
126
|
+ if($(outerWidgetId).hasClass('full-size-overlay')) {
|
|
127
|
+ // Toggle from fullscreen to "normal"
|
|
128
|
+ $(outerWidgetId).removeClass('full-size-overlay');
|
|
129
|
+ $(innerWidgetId).removeClass('full-size-overlay-inner');
|
|
130
|
+ $('.pod-toggle-full-screen-button > i').removeClass('fa-compress')
|
|
131
|
+ $('.pod-toggle-full-screen-button > i').addClass('fa-expand')
|
|
132
|
+ } else {
|
|
133
|
+ $(outerWidgetId).addClass('full-size-overlay');
|
|
134
|
+ $(innerWidgetId).addClass('full-size-overlay-inner');
|
|
135
|
+ $('.pod-toggle-full-screen-button > i').removeClass('fa-expand')
|
|
136
|
+ $('.pod-toggle-full-screen-button > i').addClass('fa-compress')
|
|
137
|
+ }
|
|
138
|
+ }
|
|
139
|
+
|
|
140
|
+ function initToolbarBootstrapBindings(richTextEditorId) {
|
|
141
|
+ // $('a[title]').tooltip({container:'body'});
|
|
142
|
+ $(richTextEditorId+' > .dropdown-menu input').click(function() {return false;})
|
|
143
|
+ .change(function () {$(this).parent('.dropdown-menu').siblings('.dropdown-toggle').dropdown('toggle');})
|
|
144
|
+ .keydown('esc', function () {this.value='';$(this).change();});
|
|
145
|
+
|
|
146
|
+ $('[data-role=magic-overlay]').each(function () {
|
|
147
|
+ var overlay = $(this), target = $(overlay.data('target'));
|
|
148
|
+ overlay.css('opacity', 0).css('position', 'absolute').offset(target.offset()).width(target.outerWidth()).height(target.outerHeight());
|
|
149
|
+ });
|
|
150
|
+ if ("onwebkitspeechchange" in document.createElement("input")) {
|
|
151
|
+ var editorOffset = $(richTextEditorId).offset();
|
|
152
|
+ $('#voiceBtn').css('position','absolute').offset({top: editorOffset.top, left: editorOffset.left+$(richTextEditorId).innerWidth()-35});
|
|
153
|
+ } else {
|
|
154
|
+ $('#voiceBtn').hide();
|
|
155
|
+ }
|
|
156
|
+ };
|
|
157
|
+ function showErrorAlert (reason, detail) {
|
|
158
|
+ var msg='';
|
|
159
|
+ if (reason==='unsupported-file-type') { msg = "Unsupported format " +detail; }
|
|
160
|
+ else {
|
|
161
|
+ console.log("error uploading file", reason, detail);
|
|
162
|
+ }
|
|
163
|
+ $('<div class="alert"> <button type="button" class="close" data-dismiss="alert">×</button>'+
|
|
164
|
+ '<strong>File upload error</strong> '+msg+' </div>').prependTo('#alerts');
|
|
165
|
+ };
|
|
166
|
+
|
|
167
|
+</script>
|
|
168
|
+##
|
|
169
|
+## END OF FULLSCREEN CODE FOR RICH TEXT EDITING
|
|
170
|
+##
|
|
171
|
+##########################
|
93
|
172
|
|
94
|
173
|
<div class="container">
|
95
|
174
|
${self.main_menu()}
|
|
@@ -97,16 +176,29 @@ ul.nav li.dropdown:hover > ul.dropdown-menu {
|
97
|
176
|
${self.footer()}
|
98
|
177
|
</div>
|
99
|
178
|
|
100
|
|
- <script src="http://code.jquery.com/jquery.js"></script>
|
101
|
|
- <script src="${tg.url('/javascript/bootstrap.min.js')}"></script>
|
|
179
|
+## <script src="http://code.jquery.com/jquery.js"></script>
|
|
180
|
+ <script src="${tg.url('/javascript/external/bootstrap.min.js')}"></script>
|
|
181
|
+
|
|
182
|
+ <link href="${tg.url('/css/external/google-code-prettify/prettify.css')}" rel="stylesheet">
|
|
183
|
+## <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.no-icons.min.css" rel="stylesheet">
|
|
184
|
+## <link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-responsive.min.css" rel="stylesheet">
|
|
185
|
+## <link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+## <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
|
|
189
|
+ <script src="${tg.url('/javascript/external/jquery.hotkeys.js')}"></script>
|
|
190
|
+## <script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js"></script>
|
|
191
|
+ <script src="${tg.url('/javascript/external/google-code-prettify/prettify.js')}"></script>
|
|
192
|
+## <link href="index.css" rel="stylesheet">
|
|
193
|
+ <script src="${tg.url('/javascript/external/bootstrap-wysiwyg.js')}"></script>
|
102
|
194
|
|
103
|
195
|
<!-- WYSIWYG Text editor -->
|
104
|
|
-<link rel="stylesheet" type="text/css" href="/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css"></link>
|
|
196
|
+## FIXME D.A. 2013-11-13 <link rel="stylesheet" type="text/css" href="/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.css"></link>
|
105
|
197
|
<!--link rel="stylesheet" type="text/css" href="/bootstrap-wysihtml5-0.0.2/libs/css/bootstrap.min.css"></link-->
|
106
|
198
|
|
107
|
|
-<script src="/bootstrap-wysihtml5-0.0.2/libs/js/wysihtml5-0.3.0_rc2.js"></script>
|
108
|
|
-<script src="/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.js"></script>
|
109
|
|
-<script src="/javascript/bootstrap-datetimepicker.min.js"></script>
|
|
199
|
+## FIXME D.A. 2013-11-13 <script src="/bootstrap-wysihtml5-0.0.2/libs/js/wysihtml5-0.3.0_rc2.js"></script>
|
|
200
|
+## FIXME<script src="/bootstrap-wysihtml5-0.0.2/bootstrap-wysihtml5-0.0.2.js"></script>
|
|
201
|
+<script src="/javascript/external/bootstrap-datetimepicker.min.js"></script>
|
110
|
202
|
|
111
|
203
|
<style>
|
112
|
204
|
tr:Hover td div.pod-toolbar {
|
|
@@ -136,94 +228,46 @@ tr:Hover td div.pod-toolbar {
|
136
|
228
|
|
137
|
229
|
<script>
|
138
|
230
|
$(document).ready(function() {
|
139
|
|
- $('#current_node_textarea').wysihtml5({
|
140
|
|
- "font-styles": true, //Font styling, e.g. h1, h2, etc. Default true
|
141
|
|
- "emphasis": true, //Italics, bold, etc. Default true
|
142
|
|
- "lists": true, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
|
143
|
|
- "html": true, //Button which allows you to edit the generated HTML. Default false
|
144
|
|
- "link": true, //Button to insert a link. Default true
|
145
|
|
- "image": true, //Button to insert an image. Default true,
|
146
|
|
- // "color": true //Button to change color of font
|
147
|
|
- });
|
148
|
|
- $('#current_node_textarea').css('margin-bottom', '0');
|
149
|
|
- $('#current_node_textarea').css("min-height", "12em");
|
150
|
|
- $('#current_node_textarea').addClass("span5");
|
151
|
|
-
|
152
|
|
- /* ADD EVENT FORM */
|
153
|
|
- $('#add_event_data_content_textarea').wysihtml5({
|
154
|
|
- "font-styles": false, //Font styling, e.g. h1, h2, etc. Default true
|
155
|
|
- "emphasis": true, //Italics, bold, etc. Default true
|
156
|
|
- "lists": false, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
|
157
|
|
- "html": true, //Button which allows you to edit the generated HTML. Default false
|
158
|
|
- "link": true, //Button to insert a link. Default true
|
159
|
|
- "image": true, //Button to insert an image. Default true,
|
160
|
|
- // "color": true //Button to change color of font
|
161
|
|
- });
|
162
|
|
- $('#add_event_data_content_textarea').css('margin-bottom', '0');
|
163
|
|
- $('#add_event_data_content_textarea').css("height", "4em");
|
164
|
|
- $('#add_event_data_content_textarea').addClass("span3");
|
165
|
|
-
|
166
|
|
- /* ADD CONTACT FORM */
|
167
|
|
- $('#add_contact_data_content_textarea').wysihtml5({
|
168
|
|
- "font-styles": false, //Font styling, e.g. h1, h2, etc. Default true
|
169
|
|
- "emphasis": true, //Italics, bold, etc. Default true
|
170
|
|
- "lists": false, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
|
171
|
|
- "html": true, //Button which allows you to edit the generated HTML. Default false
|
172
|
|
- "link": true, //Button to insert a link. Default true
|
173
|
|
- "image": true, //Button to insert an image. Default true,
|
174
|
|
- // "color": true //Button to change color of font
|
175
|
|
- });
|
176
|
|
- $('#add_contact_data_content_textarea').css('margin-bottom', '0');
|
177
|
|
- $('#add_contact_data_content_textarea').css("height", "4em");
|
178
|
|
- $('#add_contact_data_content_textarea').addClass("span3");
|
179
|
|
-
|
180
|
|
-
|
181
|
|
- /* ADD COMMENT FORM */
|
182
|
|
- $('#add_comment_data_content_textarea').wysihtml5({
|
183
|
|
- "font-styles": false, //Font styling, e.g. h1, h2, etc. Default true
|
184
|
|
- "emphasis": true, //Italics, bold, etc. Default true
|
185
|
|
- "lists": false, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
|
186
|
|
- "html": true, //Button which allows you to edit the generated HTML. Default false
|
187
|
|
- "link": true, //Button to insert a link. Default true
|
188
|
|
- "image": true, //Button to insert an image. Default true,
|
189
|
|
- // "color": true //Button to change color of font
|
190
|
|
- });
|
191
|
|
- $('#add_comment_data_content_textarea').css('margin-bottom', '0');
|
192
|
|
- $('#add_comment_data_content_textarea').css("height", "4em");
|
193
|
|
- $('#add_comment_data_content_textarea').addClass("span3");
|
194
|
|
-
|
195
|
|
- /* ADD FILE FORM */
|
196
|
|
- $('#add_file_data_content_textarea').wysihtml5({
|
197
|
|
- "font-styles": false, //Font styling, e.g. h1, h2, etc. Default true
|
198
|
|
- "emphasis": true, //Italics, bold, etc. Default true
|
199
|
|
- "lists": false, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
|
200
|
|
- "html": true, //Button which allows you to edit the generated HTML. Default false
|
201
|
|
- "link": true, //Button to insert a link. Default true
|
202
|
|
- "image": true, //Button to insert an image. Default true,
|
203
|
|
- // "color": true //Button to change color of font
|
204
|
|
- });
|
205
|
|
- $('#add_file_data_content_textarea').css('margin-bottom', '0');
|
206
|
|
- $('#add_file_data_content_textarea').css("height", "4em");
|
207
|
|
- $('#add_file_data_content_textarea').addClass("span3");
|
208
|
|
-
|
209
|
|
-
|
210
|
|
- /* Edit title form */
|
211
|
|
- $("#current-document-title-edit-form" ).css("display", "none");
|
212
|
|
- $("#current-document-title" ).dblclick(function() {
|
213
|
|
- $("#current-document-title" ).css("display", "none");
|
214
|
|
- $("#current-document-title-edit-form" ).css("display", "block");
|
215
|
|
- });
|
216
|
|
- $("#current-document-title-edit-cancel-button" ).click(function() {
|
217
|
|
- $("#current-document-title" ).css("display", "block");
|
218
|
|
- $("#current-document-title-edit-form" ).css("display", "none");
|
219
|
|
- });
|
220
|
|
- $('#current-document-title-save-cancel-button').on('click', function(e){
|
221
|
|
- // We don't want this to act as a link so cancel the link action
|
222
|
|
- e.preventDefault();
|
223
|
|
- $('#current-document-title-edit-form').submit();
|
224
|
|
- });
|
225
|
|
-
|
226
|
|
- /* Edit content form */
|
|
231
|
+## FIXME $('#current_node_textarea').wysihtml5({
|
|
232
|
+## FIXME "font-styles": true, //Font styling, e.g. h1, h2, etc. Default true
|
|
233
|
+## FIXME "emphasis": true, //Italics, bold, etc. Default true
|
|
234
|
+## FIXME "lists": true, //(Un)ordered lists, e.g. Bullets, Numbers. Default true
|
|
235
|
+## FIXME "html": true, //Button which allows you to edit the generated HTML. Default false
|
|
236
|
+## FIXME "link": true, //Button to insert a link. Default true
|
|
237
|
+## FIXME "image": true, //Button to insert an image. Default true,
|
|
238
|
+## FIXME // "color": true //Button to change color of font
|
|
239
|
+## FIXME });
|
|
240
|
+## FIXME $('#current_node_textarea').css('margin-bottom', '0');
|
|
241
|
+## FIXME $('#current_node_textarea').css("min-height", "12em");
|
|
242
|
+## FIXME $('#current_node_textarea').addClass("span5");
|
|
243
|
+
|
|
244
|
+###################
|
|
245
|
+##
|
|
246
|
+## HERE
|
|
247
|
+##
|
|
248
|
+###################
|
|
249
|
+
|
|
250
|
+##
|
|
251
|
+## RE-IMPLEMENT THIS SOON !!!
|
|
252
|
+##
|
|
253
|
+## /* Edit title form */
|
|
254
|
+## $("#current-document-title-edit-form" ).css("display", "none");
|
|
255
|
+## $("#current-document-title" ).dblclick(function() {
|
|
256
|
+## $("#current-document-title" ).css("display", "none");
|
|
257
|
+## $("#current-document-title-edit-form" ).css("display", "block");
|
|
258
|
+## });
|
|
259
|
+## $("#current-document-title-edit-cancel-button" ).click(function() {
|
|
260
|
+## $("#current-document-title" ).css("display", "block");
|
|
261
|
+## $("#current-document-title-edit-form" ).css("display", "none");
|
|
262
|
+## });
|
|
263
|
+## $('#current-document-title-save-cancel-button').on('click', function(e){
|
|
264
|
+## // We don't want this to act as a link so cancel the link action
|
|
265
|
+## e.preventDefault();
|
|
266
|
+## $('#current-document-title-edit-form').submit();
|
|
267
|
+## });
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+ /* EDIT CONTENT FORM */
|
227
|
271
|
$("#current-document-content-edit-form" ).css("display", "none");
|
228
|
272
|
$("#current-document-content-edit-button" ).click(function() {
|
229
|
273
|
$("#current-document-content" ).css("display", "none");
|
|
@@ -240,11 +284,17 @@ tr:Hover td div.pod-toolbar {
|
240
|
284
|
$('#current-document-content-edit-save-button').on('click', function(e){
|
241
|
285
|
// We don't want this to act as a link so cancel the link action
|
242
|
286
|
e.preventDefault();
|
|
287
|
+ $('#current_node_textarea_wysiwyg').cleanHtml();
|
|
288
|
+ $('#current_node_textarea').val($('#current_node_textarea_wysiwyg').html());
|
243
|
289
|
$('#current-document-content-edit-form').submit();
|
244
|
290
|
});
|
245
|
291
|
|
246
|
|
-
|
247
|
|
- /* Add event form hide/show behavior */
|
|
292
|
+ /* ADD EVENT => FORM */
|
|
293
|
+ $('#add_event_data_content_textarea').wysiwyg();
|
|
294
|
+ $('#add_event_data_content_textarea').css('margin-bottom', '0');
|
|
295
|
+ $('#add_event_data_content_textarea').css("height", "4em");
|
|
296
|
+ $('#add_event_data_content_textarea').addClass("span3");
|
|
297
|
+ /* ADD EVENT => SHOW/HIDE/SUBMIT BUTTONS */
|
248
|
298
|
$("#current-document-add-event-button" ).click(function() {
|
249
|
299
|
$("#current-document-add-event-form" ).css("display", "block");
|
250
|
300
|
$("#current-document-add-event-button" ).css("display", "none");
|
|
@@ -255,10 +305,17 @@ tr:Hover td div.pod-toolbar {
|
255
|
305
|
});
|
256
|
306
|
$('#current-document-add-event-save-button').on('click', function(e){
|
257
|
307
|
e.preventDefault(); // We don't want this to act as a link so cancel the link action
|
|
308
|
+ $('#add_event_data_content_textarea_wysiwyg').cleanHtml();
|
|
309
|
+ $('#add_event_data_content_textarea').val($('#add_event_data_content_textarea_wysiwyg').html());
|
258
|
310
|
$('#current-document-add-event-form').submit();
|
259
|
311
|
});
|
260
|
312
|
|
261
|
|
- /* Add contact form hide/show behavior */
|
|
313
|
+ /* ADD CONTACT => FORM */
|
|
314
|
+ $('#add_contact_data_content_textarea').wysiwyg();
|
|
315
|
+ $('#add_contact_data_content_textarea').css('margin-bottom', '0');
|
|
316
|
+ $('#add_contact_data_content_textarea').css("height", "4em");
|
|
317
|
+ $('#add_contact_data_content_textarea').addClass("span3");
|
|
318
|
+ /* ADD CONTACT => SHOW/HIDE/SUBMIT BUTTONS */
|
262
|
319
|
$("#current-document-add-contact-button" ).click(function() {
|
263
|
320
|
$("#current-document-add-contact-form" ).css("display", "block");
|
264
|
321
|
$("#current-document-add-contact-button" ).css("display", "none");
|
|
@@ -269,10 +326,18 @@ tr:Hover td div.pod-toolbar {
|
269
|
326
|
});
|
270
|
327
|
$('#current-document-add-contact-save-button').on('click', function(e){
|
271
|
328
|
e.preventDefault(); // We don't want this to act as a link so cancel the link action
|
|
329
|
+ $('#add_contact_data_content_textarea_wysiwyg').cleanHtml();
|
|
330
|
+ $('#add_contact_data_content_textarea').val($('#add_contact_data_content_textarea_wysiwyg').html());
|
272
|
331
|
$('#current-document-add-contact-form').submit();
|
273
|
332
|
});
|
274
|
333
|
|
275
|
|
- /* Add comment form hide/show behavior */
|
|
334
|
+
|
|
335
|
+ /* ADD COMMENT => FORM */
|
|
336
|
+ $('#add_comment_data_content_textarea').wysiwyg();
|
|
337
|
+ $('#add_comment_data_content_textarea').css('margin-bottom', '0');
|
|
338
|
+ $('#add_comment_data_content_textarea').css("height", "4em");
|
|
339
|
+ $('#add_comment_data_content_textarea').addClass("span3");
|
|
340
|
+ /* ADD COMMENT => SHOW/HIDE/SUBMIT BUTTONS */
|
276
|
341
|
$("#current-document-add-comment-button" ).click(function() {
|
277
|
342
|
$("#current-document-add-comment-form" ).css("display", "block");
|
278
|
343
|
$("#current-document-add-comment-button" ).css("display", "none");
|
|
@@ -283,10 +348,17 @@ tr:Hover td div.pod-toolbar {
|
283
|
348
|
});
|
284
|
349
|
$('#current-document-add-comment-save-button').on('click', function(e){
|
285
|
350
|
e.preventDefault(); // We don't want this to act as a link so cancel the link action
|
|
351
|
+ $('#add_comment_data_content_textarea_wysiwyg').cleanHtml();
|
|
352
|
+ $('#add_comment_data_content_textarea').val($('#add_comment_data_content_textarea_wysiwyg').html());
|
286
|
353
|
$('#current-document-add-comment-form').submit();
|
287
|
354
|
});
|
288
|
355
|
|
289
|
|
- /* Add file form hide/show behavior */
|
|
356
|
+ /* ADD FILE => FORM */
|
|
357
|
+ $('#add_file_data_content_textarea').wysiwyg();
|
|
358
|
+ $('#add_file_data_content_textarea').css('margin-bottom', '0');
|
|
359
|
+ $('#add_file_data_content_textarea').css("height", "4em");
|
|
360
|
+ $('#add_file_data_content_textarea').addClass("span3");
|
|
361
|
+ /* ADD FILE => SHOW/HIDE/SUBMIT BUTTONS */
|
290
|
362
|
$("#current-document-add-file-button" ).click(function() {
|
291
|
363
|
$("#current-document-add-file-form" ).css("display", "block");
|
292
|
364
|
$("#current-document-add-file-button" ).css("display", "none");
|
|
@@ -297,6 +369,8 @@ tr:Hover td div.pod-toolbar {
|
297
|
369
|
});
|
298
|
370
|
$('#current-document-add-file-save-button').on('click', function(e){
|
299
|
371
|
e.preventDefault(); // We don't want this to act as a link so cancel the link action
|
|
372
|
+ $('#add_file_data_content_textarea_wysiwyg').cleanHtml();
|
|
373
|
+ $('#add_file_data_content_textarea').val($('#add_file_data_content_textarea_wysiwyg').html());
|
300
|
374
|
$('#current-document-add-file-form').submit();
|
301
|
375
|
});
|
302
|
376
|
|
|
@@ -454,7 +528,10 @@ tr:Hover td div.pod-toolbar {
|
454
|
528
|
});
|
455
|
529
|
});
|
456
|
530
|
|
457
|
|
-$('.item-with-data-popoverable').popover({ html: true});
|
|
531
|
+ // ALLOW TO SHOW POPOVER WITH SPECIFIC DATA
|
|
532
|
+ $('.item-with-data-popoverable').popover({ html: true});
|
|
533
|
+
|
|
534
|
+
|
458
|
535
|
|
459
|
536
|
/** Make calculator available on all pages */
|
460
|
537
|
$(document).ready(function() {
|
|
@@ -478,6 +555,39 @@ $('.item-with-data-popoverable').popover({ html: true});
|
478
|
555
|
});
|
479
|
556
|
|
480
|
557
|
</script>
|
|
558
|
+ <style>
|
|
559
|
+ .pod-rich-text-zone {
|
|
560
|
+ overflow:auto;
|
|
561
|
+ min-height:3em;
|
|
562
|
+ max-height: 10%;
|
|
563
|
+ border: 1px solid #CCC;
|
|
564
|
+ padding: 0.5em;
|
|
565
|
+ box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
|
|
566
|
+ border-radius: 4px;
|
|
567
|
+ background-color: white;
|
|
568
|
+ }
|
|
569
|
+
|
|
570
|
+ .pod-input-like-shadow {
|
|
571
|
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
|
572
|
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
|
573
|
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
|
574
|
+ -webkit-transition: border linear 0.2s, box-shadow linear 0.2s;
|
|
575
|
+ -moz-transition: border linear 0.2s, box-shadow linear 0.2s;
|
|
576
|
+ -ms-transition: border linear 0.2s, box-shadow linear 0.2s;
|
|
577
|
+ -o-transition: border linear 0.2s, box-shadow linear 0.2s;
|
|
578
|
+ transition: border linear 0.2s, box-shadow linear 0.2s;
|
|
579
|
+ }
|
|
580
|
+ .pod-input-like-shadow:focus {
|
|
581
|
+ border-color: rgba(82, 168, 236, 0.8);
|
|
582
|
+ -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
|
|
583
|
+ -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
|
|
584
|
+ box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(82, 168, 236, 0.6);
|
|
585
|
+ outline: 0;
|
|
586
|
+ outline: thin dotted \9;
|
|
587
|
+ }
|
|
588
|
+
|
|
589
|
+ </style>
|
|
590
|
+
|
481
|
591
|
</body>
|
482
|
592
|
|
483
|
593
|
<%def name="content_wrapper()">
|
|
@@ -515,75 +625,81 @@ $('.item-with-data-popoverable').popover({ html: true});
|
515
|
625
|
<ul class="nav">
|
516
|
626
|
<li>
|
517
|
627
|
<a href="${tg.url('/')}">
|
518
|
|
- <i class="icon-g-home"></i>
|
519
|
|
- Home
|
|
628
|
+ <i class="fa fa-home"></i>
|
|
629
|
+ <strong>pod</strong>
|
520
|
630
|
</a>
|
521
|
631
|
</li>
|
522
|
632
|
% if request.identity:
|
523
|
633
|
<li>
|
524
|
|
- <a href="${tg.url('/document')}"><i class="icon-g-book-open"></i> ${_('Documents')}</a>
|
|
634
|
+ <a href="${tg.url('/dashboard')}">
|
|
635
|
+ <i class="fa fa-dashboard"></i>
|
|
636
|
+ Dashboard
|
|
637
|
+ </a>
|
|
638
|
+ </li>
|
|
639
|
+ <li>
|
|
640
|
+ <a href="${tg.url('/document')}"><i class="fa fa-file-text-o"></i> ${_('Documents')}</a>
|
525
|
641
|
</li>
|
526
|
642
|
|
527
|
643
|
<li title=" ${_('Toggle view mode [narrow, medium, large]')}">
|
528
|
|
- <a title="${_('Toggle view mode: narrow')}" id='view-size-toggle-button-small' style="display: none;"><i class='icon-g-eye-open'></i></a>
|
529
|
|
- <a title="${_('Toggle view mode: medium')}" id='view-size-toggle-button-medium'><i class='icon-g-eye-open'></i></a>
|
530
|
|
- <a title="${_('Toggle view mode: large')}" id='view-size-toggle-button-large' style="display: none;"><i class='icon-g-eye-open'></i></a>
|
|
644
|
+ <a title="${_('Toggle view mode: narrow')}" id='view-size-toggle-button-small' style="display: none;"><i class='fa fa-eye'></i></a>
|
|
645
|
+ <a title="${_('Toggle view mode: medium')}" id='view-size-toggle-button-medium'><i class='fa fa-eye'></i></a>
|
|
646
|
+ <a title="${_('Toggle view mode: large')}" id='view-size-toggle-button-large' style="display: none;"><i class='fa fa-eye'></i></a>
|
531
|
647
|
</li>
|
532
|
648
|
|
533
|
649
|
<li title="Rebuild document index">
|
534
|
650
|
% if current_node is UNDEFINED:
|
535
|
|
- <a href="${tg.url('/api/reindex_nodes?back_to_node_id=0')}"><i class="icon-g-refresh"></i></a>
|
|
651
|
+ <a href="${tg.url('/api/reindex_nodes?back_to_node_id=0')}"><i class="fa fa-refresh"></i></a>
|
536
|
652
|
% else:
|
537
|
|
- <a href="${tg.url('/api/reindex_nodes?back_to_node_id=%i'%(current_node.node_id))}"><i class="icon-g-refresh"></i></a>
|
|
653
|
+ <a href="${tg.url('/api/reindex_nodes?back_to_node_id=%i'%(current_node.node_id))}"><i class="fa fa-refresh"></i></a>
|
538
|
654
|
% endif
|
539
|
655
|
</li>
|
540
|
656
|
|
541
|
|
- <li class="dropdown" title="Calculator">
|
542
|
|
- <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-g-calculator"></i></a>
|
543
|
|
- <ul class="dropdown-menu pull-left">
|
544
|
|
- <li class="text-center">
|
545
|
|
- <fieldset>
|
546
|
|
- <legend><i class="icon-g-calculator"></i> Calculator</legend>
|
547
|
|
- <table id='keyboard' style="margin:0.2em;">
|
548
|
|
- <tr>
|
549
|
|
- <td colspan="5">
|
550
|
|
- <input type='text' class="text-right" id='calculation'/><br/>
|
551
|
|
- <input type='text' class="text-right" readonly id='result'/>
|
552
|
|
- </td>
|
553
|
|
- </tr>
|
554
|
|
- <tr>
|
555
|
|
- <td><span class='btn'>7</span></td>
|
556
|
|
- <td><span class='btn'>8</span></td>
|
557
|
|
- <td><span class='btn'>9</span></td>
|
558
|
|
- <td><span class='btn'>(</span></td>
|
559
|
|
- <td><span class='btn'>)</span></td>
|
560
|
|
- </tr>
|
561
|
|
- <tr>
|
562
|
|
- <td><span class='btn'>4</span></td>
|
563
|
|
- <td><span class='btn'>5</span></td>
|
564
|
|
- <td><span class='btn'>6</span></td>
|
565
|
|
- <td><span class='btn'>-</span></td>
|
566
|
|
- <td><span class='btn'>+</span></td>
|
567
|
|
- </tr>
|
568
|
|
- <tr>
|
569
|
|
- <td><span class='btn'>1</span></td>
|
570
|
|
- <td><span class='btn'>2</span></td>
|
571
|
|
- <td><span class='btn'>3</span></td>
|
572
|
|
- <td><span class='btn'>/</span></td>
|
573
|
|
- <td><span class='btn'>*</span></td>
|
574
|
|
- </tr>
|
575
|
|
- <tr>
|
576
|
|
- <td><span class='btn'>.</span></td>
|
577
|
|
- <td><span class='btn'>0</span></td>
|
578
|
|
- <td><span class='btn'>%</span></td>
|
579
|
|
- <td><span class='btn btn-success'>=</span></td>
|
580
|
|
- <td><span class='btn btn-danger'>C</span></td>
|
581
|
|
- </tr>
|
582
|
|
- </table>
|
583
|
|
- </fieldset>
|
584
|
|
- <p></p>
|
585
|
|
- </ul>
|
586
|
|
- </li>
|
|
657
|
+## <li class="dropdown" title="Calculator">
|
|
658
|
+## <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-g-calculator"></i></a>
|
|
659
|
+## <ul class="dropdown-menu pull-left">
|
|
660
|
+## <li class="text-center">
|
|
661
|
+## <fieldset>
|
|
662
|
+## <legend><i class="icon-g-calculator"></i> Calculator</legend>
|
|
663
|
+## <table id='keyboard' style="margin:0.2em;">
|
|
664
|
+## <tr>
|
|
665
|
+## <td colspan="5">
|
|
666
|
+## <input type='text' class="text-right" id='calculation'/><br/>
|
|
667
|
+## <input type='text' class="text-right" readonly id='result'/>
|
|
668
|
+## </td>
|
|
669
|
+## </tr>
|
|
670
|
+## <tr>
|
|
671
|
+## <td><span class='btn'>7</span></td>
|
|
672
|
+## <td><span class='btn'>8</span></td>
|
|
673
|
+## <td><span class='btn'>9</span></td>
|
|
674
|
+## <td><span class='btn'>(</span></td>
|
|
675
|
+## <td><span class='btn'>)</span></td>
|
|
676
|
+## </tr>
|
|
677
|
+## <tr>
|
|
678
|
+## <td><span class='btn'>4</span></td>
|
|
679
|
+## <td><span class='btn'>5</span></td>
|
|
680
|
+## <td><span class='btn'>6</span></td>
|
|
681
|
+## <td><span class='btn'>-</span></td>
|
|
682
|
+## <td><span class='btn'>+</span></td>
|
|
683
|
+## </tr>
|
|
684
|
+## <tr>
|
|
685
|
+## <td><span class='btn'>1</span></td>
|
|
686
|
+## <td><span class='btn'>2</span></td>
|
|
687
|
+## <td><span class='btn'>3</span></td>
|
|
688
|
+## <td><span class='btn'>/</span></td>
|
|
689
|
+## <td><span class='btn'>*</span></td>
|
|
690
|
+## </tr>
|
|
691
|
+## <tr>
|
|
692
|
+## <td><span class='btn'>.</span></td>
|
|
693
|
+## <td><span class='btn'>0</span></td>
|
|
694
|
+## <td><span class='btn'>%</span></td>
|
|
695
|
+## <td><span class='btn btn-success'>=</span></td>
|
|
696
|
+## <td><span class='btn btn-danger'>C</span></td>
|
|
697
|
+## </tr>
|
|
698
|
+## </table>
|
|
699
|
+## </fieldset>
|
|
700
|
+## <p></p>
|
|
701
|
+## </ul>
|
|
702
|
+## </li>
|
587
|
703
|
|
588
|
704
|
|
589
|
705
|
% endif
|
|
@@ -592,16 +708,16 @@ $('.item-with-data-popoverable').popover({ html: true});
|
592
|
708
|
<li class="dropdown">
|
593
|
709
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Admin <b class="caret"></b></a>
|
594
|
710
|
<ul class="dropdown-menu">
|
595
|
|
- <li><a href="${tg.url('/admin')}">Manage</a></li>
|
|
711
|
+ <li><a href="${tg.url('/admin')}"><i class="fa fa-magic"></i> Manage</a></li>
|
596
|
712
|
</ul>
|
597
|
713
|
</li>
|
598
|
714
|
|
599
|
715
|
<li class="dropdown">
|
600
|
|
- <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-g-adjust"></i> Debug <b class="caret"></b></a>
|
|
716
|
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-cogs "></i> Debug <b class="caret"></b></a>
|
601
|
717
|
<ul class="dropdown-menu">
|
602
|
|
- <li><a href="${tg.url('/debug/iconset')}">icon set</a></li>
|
603
|
|
- <li><a href="${tg.url('/debug/environ')}">request.environ</a></li>
|
604
|
|
- <li><a href="${tg.url('/debug/identity')}">request.identity</a></li>
|
|
718
|
+ <li><a href="${tg.url('/debug/iconset')}"><i class="fa fa-picture-o"></i> icon set</a></li>
|
|
719
|
+ <li><a href="${tg.url('/debug/environ')}"><i class="fa fa-globe"></i> request.environ</a></li>
|
|
720
|
+ <li><a href="${tg.url('/debug/identity')}"><i class="fa fa-user-md"></i> request.identity</a></li>
|
605
|
721
|
</ul>
|
606
|
722
|
</li>
|
607
|
723
|
|
|
@@ -612,12 +728,12 @@ $('.item-with-data-popoverable').popover({ html: true});
|
612
|
728
|
<ul class="nav pull-right">
|
613
|
729
|
% if not request.identity:
|
614
|
730
|
<li class="dropdown">
|
615
|
|
- <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i> Login</a>
|
|
731
|
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> Login</a>
|
616
|
732
|
<ul class="dropdown-menu pull-right">
|
617
|
733
|
<li class="text-center">
|
618
|
734
|
<form action="${tg.url('/login_handler')}">
|
619
|
735
|
<fieldset>
|
620
|
|
- <legend><i class="icon-g-keys" style="vertical-align: baseline !important;"></i> Login</legend>
|
|
736
|
+ <legend><i class="fa fa-key" style="vertical-align: baseline !important;"></i> Login</legend>
|
621
|
737
|
<input class="span2" type="text" id="login" name="login" placeholder="email...">
|
622
|
738
|
<input class="span2" type="password" id="password" name="password" placeholder="password...">
|
623
|
739
|
<div class="span2 control-group">
|
|
@@ -630,12 +746,12 @@ $('.item-with-data-popoverable').popover({ html: true});
|
630
|
746
|
</li>
|
631
|
747
|
% else:
|
632
|
748
|
<li class="dropdown">
|
633
|
|
- <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i> ${request.identity['user']}</a>
|
|
749
|
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-user"></i> ${request.identity['user']}</a>
|
634
|
750
|
<ul class="dropdown-menu pull-right">
|
635
|
751
|
<li class="text-center">
|
636
|
752
|
<fieldset>
|
637
|
|
- <legend><i class="icon-g-keys"></i> Logout</legend>
|
638
|
|
- <a class="btn btn-danger" href="${tg.url('/logout_handler')}">Logout <i class="icon-off icon-white"></i> </a>
|
|
753
|
+ <legend><i class="fa fa-key"></i> Logout</legend>
|
|
754
|
+ <a class="btn btn-danger" href="${tg.url('/logout_handler')}">Logout <i class="fa fa-power-off"></i> </a>
|
639
|
755
|
</fieldset>
|
640
|
756
|
<p></p>
|
641
|
757
|
</ul>
|