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
751d975a
Commit
751d975a
authored
Oct 30, 2020
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: Add links to edit form and form action
parent
a3c0e2f6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
6 deletions
+33
-6
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_label_field_js.js
...ateItem/web_page_module/rjs_gadget_erp5_label_field_js.js
+3
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_label_field_js.xml
...teItem/web_page_module/rjs_gadget_erp5_label_field_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
...emplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
+3
-0
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.js
...Item/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.js
+20
-1
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
...tem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
...teItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
+3
-0
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_label_field_js.js
View file @
751d975a
...
...
@@ -105,6 +105,8 @@
.
onStateChange
(
function
onStateChange
(
modification_dict
)
{
var
gadget
=
this
,
options
=
modification_dict
.
options
||
{},
field_json
=
options
.
field_json
,
span
,
css_class
,
i
,
...
...
@@ -247,4 +249,4 @@
return
this
.
changeState
({
first_call
:
true
,
error_text
:
error_text
});
});
}(
window
,
document
,
rJS
));
\ No newline at end of file
}(
window
,
document
,
rJS
));
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_label_field_js.xml
View file @
751d975a
...
...
@@ -234,7 +234,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
98
4.41193.2075.29252
</string>
</value>
<value>
<string>
98
7.42313.38411.5666
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -252,7 +252,7 @@
</tuple>
<state>
<tuple>
<float>
1
596116391.77
</float>
<float>
1
604090662.46
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
View file @
751d975a
...
...
@@ -1092,6 +1092,9 @@ div[data-gadget-scope='header'] .ui-header ul {
.gadget-content
.ui-content-header-plain
{
font-size
:
150%
;
}
.gadget-content
.ui-content-header-plain
>
h3
>
a
{
padding-left
:
3pt
;
}
.gadget-content
.worklist-empty
{
max-width
:
442px
;
/* original size of the embedded image */
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.js
View file @
751d975a
...
...
@@ -281,7 +281,9 @@
]);
})
.
push
(
function
(
translated_title_list
)
{
var
action_confirm
=
form_gadget
.
element
.
querySelector
(
'
input.dialogconfirm
'
);
var
field_href
,
form_definition
=
modification_dict
.
form_definition
,
action_confirm
=
form_gadget
.
element
.
querySelector
(
'
input.dialogconfirm
'
);
if
(
action_confirm
!==
null
)
{
if
(
form_gadget
.
state
.
action_title
)
{
action_confirm
.
value
=
form_gadget
.
state
.
action_title
;
...
...
@@ -292,6 +294,23 @@
selector
.
textContent
=
"
\
u00A0
"
+
translated_title_list
[
0
];
selector
.
className
=
"
ui-content-title ui-body-c ui-icon ui-icon-custom
"
+
icon
;
if
(
form_definition
.
hasOwnProperty
(
"
edit_form_href
"
))
{
field_href
=
document
.
createElement
(
"
a
"
);
field_href
.
href
=
form_definition
.
edit_form_href
;
field_href
.
title
=
"
Edit this form
"
;
field_href
.
appendChild
(
document
.
createElement
(
"
img
"
));
field_href
.
firstElementChild
.
src
=
form_definition
.
edit_form_icon
;
selector
.
appendChild
(
field_href
);
}
if
(
form_definition
.
hasOwnProperty
(
"
edit_form_action_href
"
))
{
field_href
=
document
.
createElement
(
"
a
"
);
field_href
.
href
=
form_definition
.
edit_form_action_href
;
field_href
.
title
=
"
Edit this form's action
"
;
field_href
.
appendChild
(
document
.
createElement
(
"
img
"
));
field_href
.
firstElementChild
.
src
=
form_definition
.
edit_form_action_icon
;
selector
.
appendChild
(
field_href
);
}
// Render the erp5_from
return
form_gadget
.
getDeclaredGadget
(
"
erp5_form
"
);
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_dialog_js.xml
View file @
751d975a
...
...
@@ -228,7 +228,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
987.
241.33421.1607
6
</string>
</value>
<value>
<string>
987.
42388.43014.2189
6
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -246,7 +246,7 @@
</tuple>
<state>
<tuple>
<float>
160
1565340.43
</float>
<float>
160
4095960.55
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
View file @
751d975a
...
...
@@ -1265,6 +1265,9 @@ div[data-gadget-scope='header'] .ui-header {
.ui-content-header-plain {
font-size: 150%;
& > h3 > a {
padding-left: 3pt;
}
}
.worklist-empty {
max-width: 442px; /* original size of the embedded image */
...
...
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