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
c9bd9737
Commit
c9bd9737
authored
6 years ago
by
Boris Kocherov
Committed by
Romain Courteaud
5 years ago
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
64d26c24
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 @
c9bd9737
...
...
@@ -141,6 +141,7 @@
if
(
this
.
state
.
error_text
)
{
if
(
span
===
null
)
{
span
=
document
.
createElement
(
'
span
'
);
span
.
setAttribute
(
'
class
'
,
'
error
'
);
span
.
textContent
=
this
.
state
.
error_text
;
this
.
props
.
container_element
.
appendChild
(
span
);
}
else
{
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_nojqm_css.css
View file @
c9bd9737
...
...
@@ -1190,11 +1190,11 @@ div[data-gadget-scope='header'] .ui-header ul {
.gadget-content
form
.ui-field-contain
{
position
:
relative
;
}
.gadget-content
form
.ui-field-contain
>
span
{
.gadget-content
form
.ui-field-contain
>
span
.error
{
animation
:
fadein
0.2s
ease-out
;
}
@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
;
color
:
#f8fff3
;
left
:
25%
;
...
...
@@ -1206,7 +1206,7 @@ div[data-gadget-scope='header'] .ui-header ul {
width
:
auto
;
z-index
:
1001
;
}
.gadget-content
form
.ui-field-contain
>
span
:before
{
.gadget-content
form
.ui-field-contain
>
span
.error
:before
{
position
:
absolute
;
top
:
100%
;
left
:
2em
;
...
...
@@ -1218,7 +1218,7 @@ div[data-gadget-scope='header'] .ui-header ul {
}
}
@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
;
color
:
#FF6600
;
}
...
...
This diff is collapsed.
Click to expand it.
bt5/erp5_web_renderjs_ui/SkinTemplateItem/portal_skins/erp5_web_renderjs_ui/erp5css.less.txt
View file @
c9bd9737
...
...
@@ -1403,7 +1403,7 @@ div[data-gadget-scope='header'] .ui-header {
// relative for displaying popups with errors
position: relative;
& > span {
& > span
.error
{
animation: fadein @transition-timing;
@media @desktop, @tablet {
...
...
This diff is collapsed.
Click to expand it.
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