anchor.diff:                        </a>
                       </li>
                     <% else %>
  -                    <%= form_for @quiz, :url => context_url(@context, :context_quiz_url, @quiz.id), :html => { :id => 'quiz_lock_form' } do |f| %>
  +                    <%= form_for @quiz, as: :quiz, method: :put, :url => context_url(@context, :context_quiz_url, @quiz.id), :html => { :id => 'quiz_lock_form' } do |f| %>
                         <%= hidden_field_tag 'quiz[locked]', true %>
                       <% end %>
                       <% qos_lock_quiz_title = @quiz.survey? ? t('buttons.lock_survey', "Lock this Survey Now") : t('buttons.lock_quiz', "Lock this Quiz Now") %>
  
positive.code:               </li>
                <a href="<%= context_url(@context, :context_rubrics_url) %>" class="icon-rubric" id="add_rubric_url" style="display:none">&nbsp;</a>
              <% end %>
    
              <% if can_do(@quiz, @current_user, :update) && !needs_unpublished_warning? %>
                <li role="presentation">
                  <a href="<%= course_quiz_take_path(@context, @quiz, preview: 1) %>" class="preview_link" data-method="post" tabindex="-1" role="menuitem">
  
negative.code: 
                  <% if can_do(@quiz, @current_user, :update) %>
                    <% if @quiz.locked? %>
                      <%= form_for @quiz, as: :quiz, method: :put, :url => context_url(@context, :context_quiz_url, @quiz.id), :html => { :id => 'quiz_unlock_form' } do |f| %>
                        <%= hidden_field_tag 'quiz[locked]', false %>
                        <div id="unlock_for_how_long_dialog" title="<%= t('titles.unlock_for_how_long', "How long would you like to unlock the quiz for?") %>" style="display:none;">
                          <label style="float: left;" for="no_time_limit">
  