diff --git a/app/views/phases/_answer_form.html.erb b/app/views/phases/_answer_form.html.erb index e5408af..abee475 100644 --- a/app/views/phases/_answer_form.html.erb +++ b/app/views/phases/_answer_form.html.erb @@ -61,41 +61,62 @@
<%= raw(answer.text) %>
+ <% else %> + <%= text_area_tag("answer-text-#{question.id}".to_sym, answer.text, class: "tinymce") %> + <% end %> <%end%> <% end %> <% if q_format.textfield? %> - <%= text_field_tag("answer-text-#{question_id}".to_sym, strip_tags(answer.text), class: "question_text_field") %> + <% if readonly %> +<%= strip_tags(answer.text) %>
+ <% else %> + <%= text_field_tag("answer-text-#{question_id}".to_sym, strip_tags(answer.text), { class: "question_text_field" }) %> + <% end %> <% elsif q_format.textarea? %> - <%= text_area_tag("answer-text-#{question_id}".to_sym, answer.text, class: "tinymce") %> + <% if readonly %> +<%= raw(answer.text) %>
+ <% else %> + <%= text_area_tag("answer-text-#{question_id}".to_sym, answer.text, class: "tinymce") %> + <% end %> <% end %> - + <% if !readonly %> + + <% end %> @@ -202,12 +223,10 @@ -- <%= raw annotation.text %> -
-<%= comments_label_with_count %>
- <%else%> -<%= _('Share note') %>
- <%end%> -