vegantech/sims

View on GitHub
app/views/checklist_builder/elements/_rjs_edit_form.html.erb

Summary

Maintainability
Test Coverage
<a name="<%= dom_id(element_definition, "edit_errors_anchor") %>">
  <div id="<%= dom_id(element_definition, "edit_errors") %>" style="display:none"></div>
</a>
<%= form_for element_definition, :url => checklist_builder_element_path(element_definition.checklist_definition, element_definition.question_definition, element_definition),  :method => :put , :id => dom_id(element_definition,"form"), :remote => true do |f| -%>
  <%= render :partial => 'form', :locals => { :f => f, :element_definition => element_definition } %>
  <p>
    <%= submit_tag "Update" %> | 
    <%= spell_check_button %> |

    <%= link_to_remote "Cancel", edit_checklist_builder_element_path(element_definition.checklist_definition, element_definition.question_definition, element_definition) %>
  </p>
<%- end -%>