Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5-bin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Hamza
erp5-bin
Commits
05778cfc
Commit
05778cfc
authored
Sep 04, 2019
by
Hamza Chahed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update notebook module to synchronize with officejs_notebook
parent
bfa143c0
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
85 additions
and
48 deletions
+85
-48
bt5/erp5_notebook/ActionTemplateItem/portal_types/Notebook%20Module/view.xml
...ctionTemplateItem/portal_types/Notebook%20Module/view.xml
+5
-3
bt5/erp5_notebook/ModuleTemplateItem/notebook_module.xml
bt5/erp5_notebook/ModuleTemplateItem/notebook_module.xml
+1
-0
bt5/erp5_notebook/PortalTypeTemplateItem/portal_types/Notebook.xml
...notebook/PortalTypeTemplateItem/portal_types/Notebook.xml
+1
-3
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/NotebookModule_viewNotebookList/listbox.xml
...erp5_notebook/NotebookModule_viewNotebookList/listbox.xml
+4
-0
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/Notebook_view.xml
...TemplateItem/portal_skins/erp5_notebook/Notebook_view.xml
+1
-0
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/Notebook_view/my_filename.xml
.../portal_skins/erp5_notebook/Notebook_view/my_filename.xml
+72
-0
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.js
...ateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.js
+0
-41
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.js.js
...eItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.js.js
+1
-1
No files found.
bt5/erp5_notebook/ActionTemplateItem/portal_types/Notebook%20Module/view.xml
View file @
05778cfc
...
...
@@ -16,13 +16,13 @@
<key>
<string>
categories
</string>
</key>
<value>
<tuple>
<string>
action_type/object_
list
</string>
<string>
action_type/object_
view
</string>
</tuple>
</value>
</item>
<item>
<key>
<string>
category
</string>
</key>
<value>
<string>
object_
list
</string>
</value>
<value>
<string>
object_
view
</string>
</value>
</item>
<item>
<key>
<string>
condition
</string>
</key>
...
...
@@ -30,7 +30,9 @@
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
icon
</string>
</key>
...
...
bt5/erp5_notebook/ModuleTemplateItem/notebook_module.xml
View file @
05778cfc
...
...
@@ -12,6 +12,7 @@
</permission>
<permission
type=
'tuple'
>
<name>
Access contents information
</name>
<role>
Anonymous
</role>
<role>
Assignee
</role>
<role>
Assignor
</role>
<role>
Associate
</role>
...
...
bt5/erp5_notebook/PortalTypeTemplateItem/portal_types/Notebook.xml
View file @
05778cfc
...
...
@@ -25,9 +25,7 @@
<item>
<key>
<string>
group_list
</string>
</key>
<value>
<tuple>
<string>
document
</string>
</tuple>
<tuple/>
</value>
</item>
<item>
...
...
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/NotebookModule_viewNotebookList/listbox.xml
View file @
05778cfc
...
...
@@ -74,6 +74,10 @@
<string>
title
</string>
<string>
Title
</string>
</tuple>
<tuple>
<string>
filename
</string>
<string>
Filename
</string>
</tuple>
<tuple>
<string>
reference
</string>
<string>
Reference
</string>
...
...
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/Notebook_view.xml
View file @
05778cfc
...
...
@@ -83,6 +83,7 @@
<string>
my_effective_date
</string>
<string>
my_revision
</string>
<string>
my_translated_portal_type
</string>
<string>
my_filename
</string>
</list>
</value>
</item>
...
...
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/Notebook_view/my_filename.xml
0 → 100644
View file @
05778cfc
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"ProxyField"
module=
"Products.ERP5Form.ProxyField"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
id
</string>
</key>
<value>
<string>
my_filename
</string>
</value>
</item>
<item>
<key>
<string>
message_values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
external_validator_failed
</string>
</key>
<value>
<string>
The input failed the external validator.
</string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
overrides
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
tales
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</value>
</item>
<item>
<key>
<string>
values
</string>
</key>
<value>
<dictionary>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string>
my_view_mode_filename
</string>
</value>
</item>
<item>
<key>
<string>
form_id
</string>
</key>
<value>
<string>
Base_viewFieldLibrary
</string>
</value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_eval.js.js
View file @
05778cfc
...
...
@@ -512,31 +512,6 @@
};
}
///P
function
download
()
{
//remove the default margin
var
style
=
document
.
createElement
(
'
style
'
);
style
.
setAttribute
(
"
type
"
,
"
text/css
"
);
style
.
setAttribute
(
"
media
"
,
"
print
"
);
var
multiStr
=
[
"
@page{
"
,
"
size: auto;
"
,
"
margin: 0mm;
"
,
"
margin-right: 3%;
"
,
"
margin-left:3%;}
"
].
join
(
"
\n
"
);
style
.
innerHTML
=
multiStr
;
document
.
head
.
appendChild
(
style
);
// remove-insert download-button
var
button
=
document
.
createElement
(
'
botton
'
);
button
=
document
.
body
.
firstChild
;
document
.
body
.
removeChild
(
button
);
window
.
print
();
document
.
body
.
insertBefore
(
button
,
document
.
body
.
firstChild
);
}
///P
document
.
addEventListener
(
'
DOMContentLoaded
'
,
function
()
{
var
jsmd
=
document
.
querySelector
(
'
[type="text/x-jsmd"]
'
).
textContent
,
...
...
@@ -549,22 +524,6 @@
queue
.
push
(
deferCellExecution
(
cell_list
[
i
]));
}
return
queue
///P
.
push
(
function
()
{
var
button
=
document
.
createElement
(
'
botton
'
);
button
.
innerHTML
=
"
Download As PDF
"
;
button
.
setAttribute
(
"
type
"
,
"
button
"
);
document
.
body
.
insertBefore
(
button
,
document
.
body
.
firstChild
);
document
.
querySelector
(
'
[type="button"]
'
).
addEventListener
(
"
click
"
,
download
);
//
var
script
=
document
.
createElement
(
'
script
'
);
script
.
setAttribute
(
"
src
"
,
"
https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.2/jspdf.min.js
"
);
document
.
head
.
appendChild
(
script
);
script
.
setAttribute
(
"
src
"
,
"
https://html2canvas.hertzen.com/dist/html2canvas.min.js
"
);
document
.
head
.
appendChild
(
script
);
//
})
///P
.
push
(
function
()
{
console
.
info
(
'
JSMD executed.
'
);
},
function
(
error
)
{
...
...
bt5/erp5_notebook/SkinTemplateItem/portal_skins/erp5_notebook/gadget_jsmd_viewer.js.js
View file @
05778cfc
...
...
@@ -62,7 +62,7 @@
.push(function (evt) {
*/
// XXX Insecure
iframe
.
setAttribute
(
"
sandbox
"
,
"
allow-scripts allow-same-origin allow-modals
"
);
///P
iframe
.
setAttribute
(
"
sandbox
"
,
"
allow-scripts allow-same-origin allow-modals
"
);
// iframe.setAttribute("csp", "default-src *; script-src * 'unsafe-inline';");
// iframe.setAttribute("src", evt.target.result);
iframe
.
setAttribute
(
"
srcdoc
"
,
doc
.
documentElement
.
outerHTML
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment