mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-09 22:23:28 +08:00
fix validation problems
This commit is contained in:
parent
19433850c8
commit
1facd2cefe
3 changed files with 16 additions and 2 deletions
3
Gemfile
3
Gemfile
|
@ -58,7 +58,8 @@ gem 'aws-sdk-v1'
|
|||
gem 'delayed_job_active_record'
|
||||
gem 'devise-async'
|
||||
gem 'ruby-graphviz', '~> 1.2' # Graphviz for rails
|
||||
gem 'quill-rails', '~> 0.1.0' # Rich text editor
|
||||
gem 'quill-rails',
|
||||
git: 'https://github.com/biosistemika/quill-rails.git' # Rich text editor
|
||||
|
||||
group :development, :test do
|
||||
gem 'byebug'
|
||||
|
|
|
@ -428,6 +428,17 @@ a[data-toggle="tooltip"] {
|
|||
}
|
||||
}
|
||||
|
||||
.has-error {
|
||||
.ql-container.ql-snow {
|
||||
border: 1px solid #a94442;
|
||||
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
||||
}
|
||||
.ql-toolbar.ql-snow {
|
||||
border: 1px solid #a94442;
|
||||
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
||||
}
|
||||
}
|
||||
|
||||
.nav-tabs-less {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
|
|
@ -26,7 +26,9 @@
|
|||
<div class="tab-content">
|
||||
<div class="tab-pane active" role="tabpanel" id="new-step-main">
|
||||
<%= f.text_field :name, label: t("protocols.steps.new.name"), placeholder: t("protocols.steps.new.name_placeholder") %>
|
||||
<%= quill_editor nil, { name: 'step[description]', value: @step.description } %>
|
||||
<div class="form-group">
|
||||
<%= quill_editor nil, { id: 'step_description', name: 'step[description]', value: @step.description } %>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tab-pane" role="tabpanel" id="new-step-checklists">
|
||||
<%= f.nested_fields_for :checklists do |ff| %>
|
||||
|
|
Loading…
Reference in a new issue