Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
erp5
Commits
213b8219
Commit
213b8219
authored
Apr 23, 2019
by
Roque
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_post: post action forms moved to erp5_post
parent
b20eb74a
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
150 additions
and
12 deletions
+150
-12
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/gadget_field_new_action_js_script.html.html
...ins/erp5_post/gadget_field_new_action_js_script.html.html
+0
-1
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/gadget_field_new_action_js_script.js.js
...l_skins/erp5_post/gadget_field_new_action_js_script.js.js
+0
-11
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/gadget_field_reply_action_js_script.html.html
...s/erp5_post/gadget_field_reply_action_js_script.html.html
+18
-0
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/gadget_field_reply_action_js_script.html.xml
...ns/erp5_post/gadget_field_reply_action_js_script.html.xml
+28
-0
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/gadget_field_reply_action_js_script.js.js
...skins/erp5_post/gadget_field_reply_action_js_script.js.js
+76
-0
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/gadget_field_reply_action_js_script.js.xml
...kins/erp5_post/gadget_field_reply_action_js_script.js.xml
+28
-0
No files found.
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/gadget_field_new_action_js_script.html.html
View file @
213b8219
...
@@ -14,6 +14,5 @@
...
@@ -14,6 +14,5 @@
</head>
</head>
<body>
<body>
NEW HTML Post Action GADGET FIELD HTML!
</body>
</body>
</html>
</html>
\ No newline at end of file
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/gadget_field_new_action_js_script.js.js
View file @
213b8219
...
@@ -22,13 +22,7 @@
...
@@ -22,13 +22,7 @@
// declared methods
// declared methods
/////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////
.
declareMethod
(
"
render
"
,
function
(
options
)
{
console
.
log
(
"
GADGET FIELD RENDER METHOD!!!
"
);
return
;
})
.
declareMethod
(
"
handleRender
"
,
function
(
gadget
,
gadget_utils
,
options
,
action_reference
,
parent_portal_type
,
form_definition
)
{
.
declareMethod
(
"
handleRender
"
,
function
(
gadget
,
gadget_utils
,
options
,
action_reference
,
parent_portal_type
,
form_definition
)
{
console
.
log
(
"
GADGET FIELD handleRender METHOD!!!
"
);
var
child_gadget_url
=
'
gadget_erp5_pt_form_view_editable.html
'
;
var
child_gadget_url
=
'
gadget_erp5_pt_form_view_editable.html
'
;
return
RSVP
.
Queue
()
return
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
...
@@ -67,7 +61,6 @@
...
@@ -67,7 +61,6 @@
})
})
.
declareMethod
(
"
handleSubmit
"
,
function
(
gadget
,
gadget_utils
,
jio_key
,
content_dict
)
{
.
declareMethod
(
"
handleSubmit
"
,
function
(
gadget
,
gadget_utils
,
jio_key
,
content_dict
)
{
console
.
log
(
"
GADGET FIELD handleSubmit METHOD!!!
"
);
return
gadget
.
notifySubmitting
()
return
gadget
.
notifySubmitting
()
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
jio_get
(
jio_key
);
return
gadget
.
jio_get
(
jio_key
);
...
@@ -95,8 +88,4 @@
...
@@ -95,8 +88,4 @@
});
});
});
});
/*.onStateChange(function () {
return gadget_utils.renderGadget(this);
});*/
}(
window
,
rJS
,
RSVP
));
}(
window
,
rJS
,
RSVP
));
\ No newline at end of file
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/gadget_field_reply_action_js_script.html.html
0 → 100644
View file @
213b8219
<!doctype html>
<html>
<head>
<meta
charset=
"utf-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<title>
OfficeJS Reply Action
</title>
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"gadget_field_reply_action_js_script.js"
></script>
</head>
<body>
</body>
</html>
\ No newline at end of file
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/gadget_field_reply_action_js_script.html.xml
0 → 100644
View file @
213b8219
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
gadget_field_reply_action_js_script.html
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
text/html
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/gadget_field_reply_action_js_script.js.js
0 → 100644
View file @
213b8219
/*global window, rJS, RSVP */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(
function
(
window
,
rJS
,
RSVP
)
{
"
use strict
"
;
var
gadget_utils
;
rJS
(
window
)
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
.
declareAcquiredMethod
(
"
jio_get
"
,
"
jio_get
"
)
.
declareAcquiredMethod
(
"
jio_put
"
,
"
jio_put
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
'
getUrlParameter
'
,
'
getUrlParameter
'
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
'
notifySubmitted
'
)
.
declareAcquiredMethod
(
"
notifySubmitting
"
,
"
notifySubmitting
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.
declareMethod
(
"
handleRender
"
,
function
(
gadget
,
gadget_utils
,
options
,
action_reference
,
parent_portal_type
,
form_definition
)
{
var
child_gadget_url
=
'
gadget_erp5_pt_form_view_editable.html
'
;
return
gadget
.
jio_get
(
options
.
jio_key
)
.
push
(
function
(
parent_document
)
{
var
title
=
parent_document
.
title
;
if
(
!
title
.
startsWith
(
'
Re:
'
))
{
title
=
'
Re:
'
+
parent_document
.
title
;
}
return
gadget
.
changeState
({
doc
:
{
title
:
title
},
parent_document
:
parent_document
,
child_gadget_url
:
child_gadget_url
,
form_definition
:
form_definition
,
view
:
action_reference
,
editable
:
true
,
has_more_views
:
false
,
has_more_actions
:
false
,
is_form_list
:
false
});
});
})
.
declareMethod
(
"
handleSubmit
"
,
function
(
gadget
,
gadget_utils
,
jio_key
,
content_dict
)
{
var
document
=
{
my_title
:
gadget
.
state
.
doc
.
title
,
portal_type
:
gadget
.
state
.
parent_document
.
portal_type
,
parent_relative_url
:
gadget
.
state
.
parent_document
.
parent_relative_url
,
my_source_reference
:
gadget
.
state
.
parent_document
.
source_reference
},
property
;
for
(
property
in
content_dict
)
{
if
(
content_dict
.
hasOwnProperty
(
property
))
{
document
[
'
my_
'
+
property
]
=
content_dict
[
property
];
}
}
return
gadget_utils
.
createDocument
(
document
)
.
push
(
function
(
id
)
{
jio_key
=
id
;
return
gadget
.
notifySubmitting
();
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
'
Data Updated
'
,
status
:
'
success
'
});
})
.
push
(
function
()
{
return
gadget
.
redirect
({
command
:
'
display
'
,
options
:
{
jio_key
:
jio_key
,
editable
:
true
}
});
});
});
}(
window
,
rJS
,
RSVP
));
\ No newline at end of file
bt5/erp5_post/SkinTemplateItem/portal_skins/erp5_post/gadget_field_reply_action_js_script.js.xml
0 → 100644
View file @
213b8219
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
gadget_field_reply_action_js_script.js
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/javascript
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
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