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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
9d290396
Commit
9d290396
authored
Dec 04, 2020
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_forge: submit vcs gadget content
parent
a668fbf7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
10 deletions
+47
-10
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewVcsStatusDialog.xml
...l_skins/erp5_vcs/BusinessTemplate_viewVcsStatusDialog.xml
+5
-5
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewVcsStatusDialog/your_vcs_status_gadget.xml
...ssTemplate_viewVcsStatusDialog/your_vcs_status_gadget.xml
+10
-0
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/gadget_vcs_status.js.js
...emplateItem/portal_skins/erp5_vcs/gadget_vcs_status.js.js
+32
-5
No files found.
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewVcsStatusDialog.xml
View file @
9d290396
...
...
@@ -14,7 +14,7 @@
</item>
<item>
<key>
<string>
action
</string>
</key>
<value>
<string></string>
</value>
<value>
<string>
BusinessTemplate_doVcsCommit
</string>
</value>
</item>
<item>
<key>
<string>
action_title
</string>
</key>
...
...
@@ -57,15 +57,15 @@
<item>
<key>
<string>
bottom
</string>
</key>
<value>
<list/>
<list>
<string>
your_vcs_status_gadget
</string>
</list>
</value>
</item>
<item>
<key>
<string>
center
</string>
</key>
<value>
<list>
<string>
your_vcs_status_gadget
</string>
</list>
<list/>
</value>
</item>
<item>
...
...
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/BusinessTemplate_viewVcsStatusDialog/your_vcs_status_gadget.xml
View file @
9d290396
...
...
@@ -13,6 +13,8 @@
<string>
gadget_url
</string>
<string>
renderjs_extra
</string>
<string>
title
</string>
<string>
validator_field_id
</string>
<string>
validator_form_id
</string>
</list>
</value>
</item>
...
...
@@ -105,6 +107,14 @@
<key>
<string>
title
</string>
</key>
<value>
<string>
Gadget
</string>
</value>
</item>
<item>
<key>
<string>
validator_field_id
</string>
</key>
<value>
<string>
my_core_mode_text_content_validator
</string>
</value>
</item>
<item>
<key>
<string>
validator_form_id
</string>
</key>
<value>
<string>
erp5_core/Base_viewFieldLibrary
</string>
</value>
</item>
</dictionary>
</value>
</item>
...
...
bt5/erp5_forge/SkinTemplateItem/portal_skins/erp5_vcs/gadget_vcs_status.js.js
View file @
9d290396
...
...
@@ -487,9 +487,8 @@
get_tree_url
:
options
.
get_tree_url
,
remote_comment
:
options
.
remote_comment
,
remote_url
:
options
.
remote_url
,
// key: options.key,
// value: options.value || "",
value
:
JSON
.
stringify
({
added
:
[],
modified
:
[],
deleted
:
[],
key
:
options
.
key
,
value
:
options
.
value
||
JSON
.
stringify
({
added
:
[],
modified
:
[],
deleted
:
[],
changelog
:
''
}),
editable
:
(
options
.
editable
===
undefined
)
?
true
:
options
.
editable
});
...
...
@@ -517,7 +516,9 @@
return
renderChangelogView
(
gadget
);
}
throw
new
Error
(
'
Unhandled display step:
'
+
gadget
.
state
.
display_step
);
if
(
modification_dict
.
hasOwnProperty
(
'
display_step
'
))
{
throw
new
Error
(
'
Unhandled display step:
'
+
gadget
.
state
.
display_step
);
}
})
...
...
@@ -624,7 +625,33 @@
},
{
mutex
:
'
changestate
'
})
.
declareMethod
(
'
checkValidity
'
,
function
()
{
return
true
;
throw
new
Error
(
'
checkValidity not implemented
'
);
},
{
mutex
:
'
changestate
'
});
},
{
mutex
:
'
changestate
'
})
.
declareAcquiredMethod
(
"
notifyChange
"
,
"
notifyChange
"
)
.
onEvent
(
'
change
'
,
function
change
()
{
return
RSVP
.
all
([
this
.
checkValidity
(),
this
.
notifyChange
(
"
change
"
)
]);
},
false
,
false
)
.
onEvent
(
'
input
'
,
function
input
()
{
return
RSVP
.
all
([
this
.
checkValidity
(),
this
.
notifyChange
(
"
input
"
)
]);
},
false
,
false
)
.
declareAcquiredMethod
(
"
notifyFocus
"
,
"
notifyFocus
"
)
.
onEvent
(
'
focus
'
,
function
focus
()
{
return
this
.
notifyFocus
();
},
true
,
false
)
.
declareAcquiredMethod
(
"
notifyBlur
"
,
"
notifyBlur
"
)
.
onEvent
(
'
blur
'
,
function
blur
()
{
return
this
.
notifyBlur
();
},
true
,
false
);
}(
window
,
rJS
,
RSVP
,
domsugar
,
jIO
,
console
,
document
,
NodeFilter
));
\ No newline at end of file
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