~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/tutorial/templates/exercise_edit.html

  • Committer: Nick Chadwick
  • Date: 2009-03-17 01:42:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090317014219-e0dvzakaxw58b71p
Fixed a problem with exercise editor, which wasn't editing or adding
variables properly.

Fixed the final issues from the merge-proposal, which make deleting
exercises use appropriate functions, which now raise exceptions
if they fail.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
                      <input type="text" id="var_val_${variable.varid}" value="${variable.var_value}"/>
76
76
                      <label for="var_argno_${variable.varid}">Arg Num:</label>
77
77
                      <input size="5" type="text" id="var_argno_${variable.varid}" value="${variable.arg_no}" />
78
 
                      <input type="submit" value="Save" onclick="edit_var_${variable.varid}" />
 
78
                      <input type="submit" value="Save" onclick="edit_var('${variable.varid}', '${test_suite.suiteid}')" />
79
79
                    </span>
80
80
                    <br />          
81
81
                  </py:for>
144
144
                            <br />
145
145
                          </py:for>
146
146
                        </div>
147
 
                        <a>Add a New part</a>
148
 
                        <div class="new_test_part" id="new_test_part_${test_case.testid}">
 
147
                        <a onclick="tog('new_test_part_${test_case.testid}')">Add a New part</a>
 
148
                        <div class="add_new_part" id="new_test_part_${test_case.testid}">
149
149
                            <label for="new_test_part_part_type_${test_case.testid}">Part Type:</label>
150
150
                            <select name="Part Type" id="new_test_part_part_type_${test_case.testid}">
151
151
                              <py:for each="part_type in part_types">