vegantech/sims

View on GitHub
app/views/checklist_builder/questions/_rjs_new_form.html.erb

Summary

Maintainability
Test Coverage
<a name="<%= dom_id(checklist_definition,"new_question_definition_errors_anchor") %>">
  <div id="<%= dom_id(checklist_definition,"new_question_definition_errors") %>" style="display:none"></div>
</a>
<%= form_for question_definition, :url => checklist_builder_questions_url, :id => 'new_question_definition_form', :remote => true do |f| -%>
  <%= render :partial => 'form', :locals => { :f => f, :question_definition => question_definition } %>
  <p>
    <%= submit_tag "Create" %> |
    <%= spell_check_button %> |
    <%= link_to_remote "Cancel",new_checklist_builder_question_path(checklist_definition), :method => :get %>
  </p>
<%- end -%>