Integrate library with default settings

This commit is contained in:
Mojca Lorber 2016-11-09 13:09:53 +01:00
parent fd805f4072
commit ab0879e8d6
5 changed files with 5 additions and 3 deletions

View file

@ -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'

View file

@ -31,6 +31,7 @@
//= require i18n.js
//= require i18n/translations
//= require turbolinks
//= require quill
// Initialize links for submitting forms. This is useful for submitting

View file

@ -7,6 +7,7 @@
*= require constants
*= require introjs
*= stub reports_pdf
*= require quill.snow
*/
@import "bootstrap-sprockets";
@import "bootstrap";

View file

@ -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| %>

View file

@ -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">