456
456
% (exerciseid, exerciseid, filename, exerciseid, filename,
457
457
rows, cgi.escape(exercisepartial)))
458
458
req.write("""\n<div class="exercisebuttons">\n""")
459
req.write(""" <input type="button" value="Reset"
460
id="resetbutton_exercise%d"
461
onclick="resetexercise("exercise%d")"
462
title="Reload the original partial solution for this exercise" />\n"""
463
% (exerciseid, exerciseid))
464
459
req.write(""" <input type="button" value="Saved" disabled="disabled"
465
460
id="savebutton_exercise%d"
466
461
onclick="saveexercise("exercise%d", %s)"
467
462
title="Save your solution to this exercise" />\n"""
468
463
% (exerciseid, exerciseid, filename))
464
req.write(""" <input type="button" value="Reset"
465
id="resetbutton_exercise%d"
466
onclick="resetexercise("exercise%d", %s)"
467
title="Reload the original partial solution for this exercise" />\n"""
468
% (exerciseid, exerciseid, filename))
469
469
req.write(""" <input type="button" value="Run"
470
470
onclick="runexercise("exercise%d", %s)"
471
471
title="Run this program in the console" />\n"""