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
Alexander Emmerich
erp5
Commits
b3bd7d4b
Commit
b3bd7d4b
authored
Jun 08, 2018
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: use 'error' class for validation errors
i need it because use span for displaying icons in json form
parent
55d7381c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
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
+1
-0
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
+4
-4
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
+1
-1
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_label_field_js.js
View file @
b3bd7d4b
...
@@ -141,6 +141,7 @@
...
@@ -141,6 +141,7 @@
if
(
this
.
state
.
error_text
)
{
if
(
this
.
state
.
error_text
)
{
if
(
span
===
null
)
{
if
(
span
===
null
)
{
span
=
document
.
createElement
(
'
span
'
);
span
=
document
.
createElement
(
'
span
'
);
span
.
setAttribute
(
'
class
'
,
'
error
'
);
span
.
textContent
=
this
.
state
.
error_text
;
span
.
textContent
=
this
.
state
.
error_text
;
this
.
props
.
container_element
.
appendChild
(
span
);
this
.
props
.
container_element
.
appendChild
(
span
);
}
else
{
}
else
{
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
View file @
b3bd7d4b
...
@@ -1190,11 +1190,11 @@ div[data-gadget-scope='header'] .ui-header ul {
...
@@ -1190,11 +1190,11 @@ div[data-gadget-scope='header'] .ui-header ul {
.gadget-content
form
.ui-field-contain
{
.gadget-content
form
.ui-field-contain
{
position
:
relative
;
position
:
relative
;
}
}
.gadget-content
form
.ui-field-contain
>
span
{
.gadget-content
form
.ui-field-contain
>
span
.error
{
animation
:
fadein
0.2s
ease-out
;
animation
:
fadein
0.2s
ease-out
;
}
}
@media
not
screen
and
(
max-width
:
85em
),
only
screen
and
(
min-width
:
45em
)
and
(
max-width
:
85em
)
{
@media
not
screen
and
(
max-width
:
85em
),
only
screen
and
(
min-width
:
45em
)
and
(
max-width
:
85em
)
{
.gadget-content
form
.ui-field-contain
>
span
{
.gadget-content
form
.ui-field-contain
>
span
.error
{
background-color
:
#FF6600
;
background-color
:
#FF6600
;
color
:
#f8fff3
;
color
:
#f8fff3
;
left
:
25%
;
left
:
25%
;
...
@@ -1206,7 +1206,7 @@ div[data-gadget-scope='header'] .ui-header ul {
...
@@ -1206,7 +1206,7 @@ div[data-gadget-scope='header'] .ui-header ul {
width
:
auto
;
width
:
auto
;
z-index
:
1001
;
z-index
:
1001
;
}
}
.gadget-content
form
.ui-field-contain
>
span
:before
{
.gadget-content
form
.ui-field-contain
>
span
.error
:before
{
position
:
absolute
;
position
:
absolute
;
top
:
100%
;
top
:
100%
;
left
:
2em
;
left
:
2em
;
...
@@ -1218,7 +1218,7 @@ div[data-gadget-scope='header'] .ui-header ul {
...
@@ -1218,7 +1218,7 @@ div[data-gadget-scope='header'] .ui-header ul {
}
}
}
}
@media
not
screen
and
(
min-width
:
45em
)
{
@media
not
screen
and
(
min-width
:
45em
)
{
.gadget-content
form
.ui-field-contain
>
span
{
.gadget-content
form
.ui-field-contain
>
span
.error
{
margin-left
:
6pt
;
margin-left
:
6pt
;
color
:
#FF6600
;
color
:
#FF6600
;
}
}
...
...
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
View file @
b3bd7d4b
...
@@ -1403,7 +1403,7 @@ div[data-gadget-scope='header'] .ui-header {
...
@@ -1403,7 +1403,7 @@ div[data-gadget-scope='header'] .ui-header {
// relative for displaying popups with errors
// relative for displaying popups with errors
position: relative;
position: relative;
& > span {
& > span
.error
{
animation: fadein @transition-timing;
animation: fadein @transition-timing;
@media @desktop, @tablet {
@media @desktop, @tablet {
...
...
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