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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gabriel Monnerat
erp5
Commits
238ff559
Commit
238ff559
authored
Oct 08, 2021
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_osoe_web_renderjs_ui: do not show the "New Document" submit button
parent
6f9680cb
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
46 additions
and
11 deletions
+46
-11
bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_js.js
...Item/web_page_module/osoe_rjs_site_document_creator_js.js
+7
-3
bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_js.xml
...tem/web_page_module/osoe_rjs_site_document_creator_js.xml
+2
-2
bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_site_module/osoe_runner.xml
...derjs_ui/PathTemplateItem/web_site_module/osoe_runner.xml
+31
-4
bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllPortalTypeDialog.xml
...5_osoe_web_renderjs/TypesTool_viewAllPortalTypeDialog.xml
+1
-1
bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllPortalTypeDialog/your_select_action.xml
.../TypesTool_viewAllPortalTypeDialog/your_select_action.xml
+5
-1
No files found.
bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_js.js
View file @
238ff559
...
...
@@ -4,11 +4,13 @@
"
use strict
"
;
rJS
(
window
)
.
declareAcquiredMethod
(
"
notifySubmit
"
,
"
notifySubmit
"
)
.
declareAcquiredMethod
(
"
submitDialogWithCustomDialogMethod
"
,
"
submitDialogWithCustomDialogMethod
"
)
.
declareMethod
(
'
render
'
,
function
(
options
)
{
return
this
.
changeState
({
key
:
options
.
key
,
erp5_add_list
:
JSON
.
stringify
(
options
.
erp5_add_list
)
erp5_add_list
:
JSON
.
stringify
(
options
.
erp5_add_list
),
action_script
:
options
.
action_script
});
})
.
onStateChange
(
function
()
{
...
...
@@ -67,8 +69,10 @@
.
onEvent
(
'
click
'
,
function
(
evt
)
{
if
(
evt
.
target
.
tagName
===
'
BUTTON
'
)
{
this
.
state
.
value
=
evt
.
target
.
getAttribute
(
'
data-value
'
);
return
this
.
submitDialogWithCustomDialogMethod
(
this
.
state
.
action_script
);
}
return
this
.
notifySubmit
();
},
false
);
}(
domsugar
,
window
,
rJS
));
\ No newline at end of file
bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_page_module/osoe_rjs_site_document_creator_js.xml
View file @
238ff559
...
...
@@ -240,7 +240,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
9
89.60636.39444.34389
</string>
</value>
<value>
<string>
9
95.21419.34087.102
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -258,7 +258,7 @@
</tuple>
<state>
<tuple>
<float>
16
12969693.16
</float>
<float>
16
33688572.82
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_osoe_web_renderjs_ui/PathTemplateItem/web_site_module/osoe_runner.xml
View file @
238ff559
...
...
@@ -670,12 +670,12 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
System Processes
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
<value>
<
none/
>
<
persistent>
<string
encoding=
"base64"
>
AAAAAAAAAAs=
</string>
</persistent
>
</value>
</item>
<item>
...
...
@@ -684,7 +684,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
99
1.18011.47096.21555
</string>
</value>
<value>
<string>
99
4.13854.35574.25361
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -702,7 +702,7 @@
</tuple>
<state>
<tuple>
<float>
16
18017329.04
</float>
<float>
16
32297084.96
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
@@ -716,4 +716,31 @@
</dictionary>
</pickle>
</record>
<record
id=
"11"
aka=
"AAAAAAAAAAs="
>
<pickle>
<global
name=
"Message"
module=
"Products.ERP5Type.Message"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
default
</string>
</key>
<value>
<string>
Translation data updated.
</string>
</value>
</item>
<item>
<key>
<string>
domain
</string>
</key>
<value>
<string>
erp5_ui
</string>
</value>
</item>
<item>
<key>
<string>
mapping
</string>
</key>
<value>
<none/>
</value>
</item>
<item>
<key>
<string>
message
</string>
</key>
<value>
<string>
Translation data updated.
</string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllPortalTypeDialog.xml
View file @
238ff559
...
...
@@ -14,7 +14,7 @@
</item>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string>
Base_doSiteAction
</string>
</value>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
action_title
</string>
</key>
...
...
bt5/erp5_osoe_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_osoe_web_renderjs/TypesTool_viewAllPortalTypeDialog/your_select_action.xml
View file @
238ff559
...
...
@@ -56,6 +56,10 @@
<key>
<string>
default
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
description
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
field_id
</string>
</key>
<value>
<string></string>
</value>
...
...
@@ -129,7 +133,7 @@
<dictionary>
<item>
<key>
<string>
_text
</string>
</key>
<value>
<string>
python: [(\'erp5_add_list\', here.TypesTool_getCategorizedModuleActionInformationDict().get(\'add\', []))]
</string>
</value>
<value>
<string>
python: [(\'
action_script\', \'Base_doSiteAction\'), (\'
erp5_add_list\', here.TypesTool_getCategorizedModuleActionInformationDict().get(\'add\', []))]
</string>
</value>
</item>
</dictionary>
</pickle>
...
...
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