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
1
Merge Requests
1
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
Cédric Le Ninivin
erp5
Commits
9a4ad9e0
Commit
9a4ad9e0
authored
Oct 29, 2019
by
Xiaowu Zhang
Committed by
Cédric Le Ninivin
Feb 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_production_planning: show notification whe not editable also
parent
209507a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
6 deletions
+18
-6
bt5/erp5_production_planning/SkinTemplateItem/portal_skins/erp5_production_planning/matrix_dynamic_total_line_column.js.js
...roduction_planning/matrix_dynamic_total_line_column.js.js
+5
-4
bt5/erp5_production_planning/SkinTemplateItem/portal_skins/erp5_production_planning/production_planning.css.css
...kins/erp5_production_planning/production_planning.css.css
+13
-2
No files found.
bt5/erp5_production_planning/SkinTemplateItem/portal_skins/erp5_production_planning/matrix_dynamic_total_line_column.js.js
View file @
9a4ad9e0
...
...
@@ -45,14 +45,15 @@ function recalculateSumLine(idx, element) {
inputs
=
matrixbox
.
find
(
'
tr
'
).
find
(
'
td:eq(
'
+
(
idx
+
1
)
+
'
)
'
);
for
(
i
=
1
;
i
<
inputs
.
length
-
1
;
i
++
)
{
var
input
=
inputs
[
i
];
text
=
input
.
parentElement
.
querySelector
(
'
.matrixbox_label_column
'
).
innerText
;
span
=
document
.
createElement
(
'
span
'
);
span
.
innerText
=
text
;
var
tmp
=
input
.
querySelector
(
'
input
'
);
if
(
tmp
)
{
text
=
tmp
.
parentElement
.
parentElement
.
parentElement
.
querySelector
(
'
.matrixbox_label_column
'
).
innerText
;
span
=
document
.
createElement
(
'
span
'
);
span
.
innerText
=
text
;
tmp
.
parentElement
.
appendChild
(
span
);
tmp
.
parentElement
.
appendChild
(
span
);
v
=
parse
(
tmp
.
value
);
}
else
{
input
.
querySelector
(
'
span
'
).
appendChild
(
span
);
v
=
parse
(
input
.
innerText
);
}
if
(
v
)
{
sum
+=
v
;
}
...
...
bt5/erp5_production_planning/SkinTemplateItem/portal_skins/erp5_production_planning/production_planning.css.css
View file @
9a4ad9e0
...
...
@@ -5,17 +5,28 @@
.matrixbox_production_planning
table
tbody
td
span
:last-child
span
{
display
:
none
;
position
:
absolute
;
left
:
10
0px
;
left
:
3
0px
;
background
:
black
;
color
:
white
;
z-index
:
100
;
min-width
:
200px
;
}
.matrixbox_production_planning
table
tbody
td
span
:last-child
input
~
span
{
left
:
100px
;
}
/*
.matrixbox_production_planning table tbody td span:last-child:focus span,
.matrixbox_production_planning table tbody td span:last-child:hover span {
display: inline;
}
*/
.matrixbox_production_planning
table
tbody
td
:focus
span
:last-child
span
,
.matrixbox_production_planning
table
tbody
td
:hover
span
:last-child
span
{
display
:
inline
;
}
.content
.field
.warning
{
color
:
#f40
;
...
...
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