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
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
Klaus Wölfel
erp5
Commits
9b3d880f
Commit
9b3d880f
authored
Mar 31, 2017
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Improve multicheckbox field rendering.
Make the text clickable. Do not show text in grey.
parent
cc7b9818
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
24 additions
and
30 deletions
+24
-30
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multicheckboxfield_js.js
.../web_page_module/rjs_gadget_erp5_multicheckboxfield_js.js
+10
-17
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multicheckboxfield_js.xml
...web_page_module/rjs_gadget_erp5_multicheckboxfield_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
+5
-4
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml
...emplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.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
+5
-5
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multicheckboxfield_js.js
View file @
9b3d880f
...
...
@@ -6,7 +6,6 @@
function
appendCheckboxField
(
gadget
,
item
,
checked
)
{
var
input_gadget
,
label_gadget
;
if
(
!
gadget
.
state
.
editable
)
{
if
(
checked
)
{
return
gadget
.
declareGadget
(
'
gadget_html5_element.html
'
)
...
...
@@ -24,7 +23,10 @@
return
;
}
return
gadget
.
declareGadget
(
'
gadget_html5_input.html
'
,
{
scope
:
item
[
1
]})
return
gadget
.
declareGadget
(
'
gadget_html5_input.html
'
,
{
scope
:
item
[
1
],
element
:
document
.
createElement
(
'
span
'
)
})
.
push
(
function
(
result
)
{
input_gadget
=
result
;
var
state_dict
=
{
...
...
@@ -39,21 +41,12 @@
return
result
.
render
(
state_dict
);
})
.
push
(
function
()
{
return
gadget
.
declareGadget
(
'
gadget_html5_element.html
'
);
})
.
push
(
function
(
result
)
{
label_gadget
=
result
;
var
state_dict
=
{
tag
:
'
label
'
,
text_content
:
item
[
0
]
};
return
result
.
render
(
state_dict
);
})
.
push
(
function
()
{
var
div
=
document
.
createElement
(
"
div
"
);
div
.
setAttribute
(
"
class
"
,
"
ui-field-contain
"
);
div
.
appendChild
(
label_gadget
.
element
);
div
.
appendChild
(
input_gadget
.
element
);
var
div
=
document
.
createElement
(
"
div
"
),
label
=
document
.
createElement
(
"
label
"
),
text_node
=
document
.
createTextNode
(
item
[
0
]);
label
.
appendChild
(
input_gadget
.
element
);
label
.
appendChild
(
text_node
);
div
.
appendChild
(
label
);
gadget
.
element
.
appendChild
(
div
);
});
}
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_multicheckboxfield_js.xml
View file @
9b3d880f
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
4.58935.16621.30429
</string>
</value>
<value>
<string>
95
8.24032.27808.24456
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
14
79375555.8
6
</float>
<float>
14
90947237.2
6
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
View file @
9b3d880f
...
...
@@ -279,7 +279,7 @@ hr {
* Text fields
**********************************************/
label
{
color
:
#777777
;
display
:
block
;
}
input
:not
([
type
=
submit
])
:not
([
type
=
file
])
:not
([
type
=
checkbox
])
:not
([
type
=
radio
])
:not
([
type
=
color
]),
textarea
,
...
...
@@ -1019,15 +1019,16 @@ div[data-gadget-scope='header'] .ui-header ul {
.gadget-content
.ui-field-contain
{
display
:
flex
;
}
.gadget-content
.ui-field-contain
label
{
.gadget-content
.ui-field-contain
>
label
{
flex
:
1
;
color
:
#777777
;
}
.gadget-content
.ui-field-contain
label
+
div
{
.gadget-content
.ui-field-contain
>
label
+
div
{
flex
:
3
;
}
}
@media
only
screen
and
(
min-width
:
45em
)
and
(
max-width
:
85em
),
not
screen
and
(
max-width
:
85em
)
{
.gadget-content
.center
.ui-field-contain
label
+
div
{
.gadget-content
.center
.ui-field-contain
>
label
+
div
{
flex
:
7
;
}
}
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.xml
View file @
9b3d880f
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
958.
19701.31404.559
7
</string>
</value>
<value>
<string>
958.
22948.35082.5208
7
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
1490
687640.52
</float>
<float>
1490
947545.17
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
View file @
9b3d880f
...
...
@@ -353,8 +353,7 @@ hr {
**********************************************/
label {
// XXX
color: @grey;
display: block;
}
input:not([type=submit]):not([type=file]):not([type=checkbox]):not([type=radio]):not([type=color]), textarea, select {
...
...
@@ -1166,10 +1165,11 @@ div[data-gadget-scope='header'] .ui-header {
// Label
.ui-field-contain {
display: flex;
label {
& >
label {
flex: 1;
color: @grey;
}
label + div {
& >
label + div {
flex: 3;
}
}
...
...
@@ -1178,7 +1178,7 @@ div[data-gadget-scope='header'] .ui-header {
// Align field on the left group's field
.center {
.ui-field-contain {
label + div {
& >
label + div {
flex: 7;
}
}
...
...
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