From 67c508a89169b8cc7f1cb8e5c3d8e523606d01ea Mon Sep 17 00:00:00 2001 From: zmagod Date: Mon, 14 Nov 2016 13:47:20 +0100 Subject: [PATCH 1/2] fixes description label [fixes SCI-662] --- app/views/steps/_step.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/steps/_step.html.erb b/app/views/steps/_step.html.erb index ab8fa3979..c7399546e 100644 --- a/app/views/steps/_step.html.erb +++ b/app/views/steps/_step.html.erb @@ -32,7 +32,7 @@
- <% if step.description.blank? %> + <% if strip_tags(step.description).blank? %> <%= t("protocols.steps.no_description") %> <% else %> <%= step.description.html_safe %> From 7953372d83985ade2c224f7953da1f2432b29d76 Mon Sep 17 00:00:00 2001 From: zmagod Date: Wed, 16 Nov 2016 13:59:35 +0100 Subject: [PATCH 2/2] add description label --- app/views/steps/_empty_step.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/steps/_empty_step.html.erb b/app/views/steps/_empty_step.html.erb index f23f48a9b..240c3c99d 100644 --- a/app/views/steps/_empty_step.html.erb +++ b/app/views/steps/_empty_step.html.erb @@ -27,6 +27,7 @@
<%= f.text_field :name, label: t("protocols.steps.new.name"), placeholder: t("protocols.steps.new.name_placeholder") %>
+ <%= quill_editor nil, { id: 'step_description', name: 'step[description]', value: @step.description } %>