mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-26 09:42:46 +08:00
Integrate library with default settings
This commit is contained in:
parent
fd805f4072
commit
ab0879e8d6
5 changed files with 5 additions and 3 deletions
1
Gemfile
1
Gemfile
|
@ -58,6 +58,7 @@ 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
|
||||
|
||||
group :development, :test do
|
||||
gem 'byebug'
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
//= require i18n.js
|
||||
//= require i18n/translations
|
||||
//= require turbolinks
|
||||
//= require quill
|
||||
|
||||
|
||||
// Initialize links for submitting forms. This is useful for submitting
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
*= require constants
|
||||
*= require introjs
|
||||
*= stub reports_pdf
|
||||
*= require quill.snow
|
||||
*/
|
||||
@import "bootstrap-sprockets";
|
||||
@import "bootstrap";
|
||||
|
|
|
@ -26,8 +26,7 @@
|
|||
<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") %>
|
||||
|
||||
<%= f.text_area :description, label: t("protocols.steps.new.description"), placeholder: t("protocols.steps.new.description_placeholder") %>
|
||||
<%= quill_editor nil, { name: 'step[description]', value: @step.description } %>
|
||||
</div>
|
||||
<div class="tab-pane" role="tabpanel" id="new-step-checklists">
|
||||
<%= f.nested_fields_for :checklists do |ff| %>
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
<% if step.description.blank? %>
|
||||
<em><%= t("protocols.steps.no_description") %></em>
|
||||
<% else %>
|
||||
<%= step.description %>
|
||||
<%= step.description.html_safe %>
|
||||
<% end %>
|
||||
<hr>
|
||||
<div class="row">
|
||||
|
|
Loading…
Reference in a new issue