% if is_staff:
<div id="proctor_${element_id}_disable">
    <p>
    <input id="proctor_disable" type="button" value="This is a proctored module, released on staff override. Disable access"/></p>
</div>
<hr/>
% endif

<script type="text/javascript">
do_disable = function(){
    $.get( "${ajax_url}/disable", function( data ) {
      $( "#proctor_disable" ).html( data );
      alert( "disable successful" );
      location.reload();
    });
}
$('#proctor_disable').click(do_disable);
</script>
