Newer
Older
dmpopidor / app / views / notes / _layout.html.erb
<%# locals: { plan, question, answer } %>
<% notes = answer.non_archived_notes %>
<div class="row">
  <div class="col-md-12">
    <%= render partial: "/notes/list", locals: { question_id: question.id, notes: notes, plan: plan }, formats: [:html] %>  
  </div>
</div>
<div class="row">
  <div class="col-md-12">
    <div class="note_new" id="<%= "note_new#{question.id}" %>" data-question-id="<%= question.id %>">
        <%= render partial: "/notes/new", locals: { question: question, answer: answer, plan: plan }, formats: [:html] %>
    </div>
  </div>
</div>
<div class="row">
  <div class="col-md-12">
    <div class="pull-right">
      <%= link_to(_('Add Comment'), "#note_new#{question.id}", class: "btn btn-default note_new_link", role: "button", style: "visibility: hidden") %>
    </div>
  </div>
</div>