diff --git a/app/views/annotations/_show.html.erb b/app/views/annotations/_show.html.erb index 969c323..e5f122b 100644 --- a/app/views/annotations/_show.html.erb +++ b/app/views/annotations/_show.html.erb @@ -1,12 +1,27 @@ - -
<%= _('Saving ...') %>
<%= _('Removing ...') %>
-
- <%= section.title %>
-
-
- <%= render :partial => "/sections/progress", locals: { section: section, plan: @plan } %>
+
+
+
+
+
+
+
+
+ <%= raw section.description %>
+
+
+
-
-
+
+
-
-
- <%= raw section.description %>
+
+
+ <% section.questions.each do |question| %>
+ <% if question.id == session[:question_id_comments].to_i then id_css = "current_question" end %>
+
-
-
-
-
-
-
-
- <% section.questions.each do |question| %>
- <% if question.id == session[:question_id_comments].to_i then id_css = "current_question" end %>
-
-
- <%
- # Load the answer or create a new one
- answers = question.plan_answers(@plan.id)
- if answers.present?
- answer = answers.first
- else
- answer = Answer.new({plan_id: @plan.id,
- question_id: question.id,
- user_id: current_user.id })
- if question.default_value.present?
- answer.text = question.default_value
+ <%
+ # Load the answer or create a new one
+ answers = question.plan_answers(@plan.id)
+ if answers.present?
+ answer = answers.first
+ else
+ answer = Answer.new({plan_id: @plan.id,
+ question_id: question.id,
+ user_id: current_user.id })
+ if question.default_value.present?
+ answer.text = question.default_value
+ end
end
- end
- %>
+ %>
-
-
-
- " class="answer-locking">
- ">
- <%= render(partial: 'answers/new_edit',
- locals: { question: question, answer: answer, readonly: @readonly }) %>
-
-
-
+
+
+
+ " class="answer-locking">
+ ">
+ <%= render(partial: 'answers/new_edit',
+ locals: { question: question, answer: answer, readonly: @readonly }) %>
+
+
+
-
-
- <%= render partial: 'guidance_section',
- locals: {plan: @plan, question: question, answer: answer,
- question_guidances: @question_guidances} %>
-
-
- <% end %>
+
+
+ <%= render partial: 'guidance_section',
+ locals: {plan: @plan, question: question, answer: answer,
+ question_guidances: @question_guidances} %>
+
+
+ <% end %>
-
+
-
+
+
<% end %>
-
+
+ + + <%= section.title %> + + +
+ <%= render :partial => "/sections/progress", locals: { section: section, plan: @plan } %>
+
+
+<%= _('Saving ...') %>
<%= _('Removing ...') %>
+<%= _('Saving ...') %>
-<%= _('Removing ...') %>
-