mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
Merge pull request #4903 from sboursen-scinote/sb_SCI-7676
CSS: error messages at moving experiment [SCI-7676]
This commit is contained in:
commit
d9beafd9a7
|
@ -42,8 +42,9 @@ var renderFormError = function(ev, input, errMsgs, clearErr, errAttributes) {
|
|||
}
|
||||
|
||||
var $errSpan = "<span class='help-block'" +
|
||||
errAttributes + '>' + errorText + '</span>';
|
||||
errAttributes + '>' + errorText + '.' + '</span>';
|
||||
$(input).after($errSpan);
|
||||
$(input).closest('.modal').modal('handleUpdate');
|
||||
}
|
||||
|
||||
var $parent;
|
||||
|
|
|
@ -166,11 +166,12 @@
|
|||
background: linear-gradient(to right, $color-transparent, $color-white 50%);
|
||||
bottom: .4em;
|
||||
content: "";
|
||||
height: 1.75em;
|
||||
height: 1.5em;
|
||||
position: absolute;
|
||||
right: 0;
|
||||
text-align: right;
|
||||
width: 25%;
|
||||
min-width: 75px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -4,3 +4,11 @@
|
|||
color: $brand-danger;
|
||||
}
|
||||
}
|
||||
|
||||
.form-group.has-error {
|
||||
margin-bottom: 0;
|
||||
|
||||
.form-control {
|
||||
height: auto;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -319,7 +319,7 @@ class ExperimentsController < ApplicationController
|
|||
view_type = view_state.state['my_modules']['view_type'] || 'canvas'
|
||||
path = view_mode_redirect_url(view_type)
|
||||
else
|
||||
message = service.errors.values.join(', ')
|
||||
message = "#{service.errors.values.join('. ')}."
|
||||
status = :unprocessable_entity
|
||||
end
|
||||
|
||||
|
|
|
@ -1405,7 +1405,7 @@ en:
|
|||
view: 'View'
|
||||
head_title: "%{project} | Overview"
|
||||
canvas_edit: "Edit workflow"
|
||||
canvas_empty: "It's empty here. Please add some tasks"
|
||||
canvas_empty: "It's empty here. Please add some tasks."
|
||||
new_my_module: "New task"
|
||||
new_my_module_modal:
|
||||
title: "Create new task"
|
||||
|
|
Loading…
Reference in a new issue