Newer
Older
dmpopidor / app / views / annotations / _add_annotation.html.erb
<!--add annotation. question is passed as an argument-->
<%= form_for :annotation, url: admin_create_annotation_path do |f| %>
  <%= f.hidden_field :org_id, value: current_user.org_id %>
  <%= f.hidden_field :question_id, value: question.id %>
  <%= f.hidden_field :type, value: Annotation.types[:example_answer] %>

  <table class="dmp_details_table phase">
    <tr>
      <td class="first_template"><%= _('Example Answer')%></td>
      <td>
        <ul>
          <li><%= f.text_area :text, rows: 5 %>
          </li>
        </ul>
      </td>
    </tr>
  </table>
  <br/>

  <!-- submit buttons -->
  <div class="move_2_right">
    <%= f.submit _('Save'), class: "btn btn-primary" %>
    <%= link_to _('Cancel'), "#", id: "cancel_suugested_answer", class: "btn cancel" %>
  </div>
<%end%>