diff --git a/app/views/plans/_answer_form_ro.html.erb b/app/views/plans/_answer_form_ro.html.erb new file mode 100644 index 0000000..c2837a9 --- /dev/null +++ b/app/views/plans/_answer_form_ro.html.erb @@ -0,0 +1,51 @@ + +<% answer = @plan.answer(question.id) %> + +
+ + <% q_format = question.question_format%> + +
+

<%= question.text %>

+ +
+ <% if q_format.title == "Check box" || q_format.title == "Multi select box" || + q_format.title == "Radio buttons" || q_format.title == "Dropdown" %> +
    + <% if answer.question_options.is_a? Array then %> +
  • <%= answer.question_options.text %>
  • + <% else %> + <% answer.question_options.each do |o| %> +
  • <%= o.text %>
  • + <% end %> + <% end %> +
+ <% end %> + +
+ <%= raw answer.text %> +
+
+
+ + <% if answer.created_at.nil? then %> + <%= _('Not answered yet') %> + <% else %> + <%= _('Answered')%><%= answer.created_at %><%= _(' by')%><%= answer.user.name %> + <% end %> + + + +
+ + +<% if last_question_id == question.id then %> +
+<% else %> +
+<% end %>