<!--edit note to answer. note passed as argument-->
<% if !note.nil? %>
<%= form_for(note, url: note_path(note), method: :put) do |f| %>
<div class="form-group">
<%= f.label(:text, _('Edit comment to share with collaborators')) %>
<%= f.text_area(:text, class: 'form-control note', id: "note-#{note.id}") %>
</div>
<%= f.button(_('Update'), class: "btn btn-default", type: "submit") %>
<% end %>
<% end %>