~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-02-24 14:32:55 UTC
  • mto: (1099.1.227 exercise-ui)
  • mto: This revision was merged to the branch mainline in revision 1162.
  • Revision ID: chadnickbok@gmail.com-20090224143255-eflrd17t4k8p5s85
Started adding in add and save options in the exercise edit view, to
start supporting full modification of exercises through the browser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    <title>Edit - ${exercise.name}</title>
5
5
    <!-- These let the javascript know which worksheet is open -->
6
6
    <script type="text/javascript">
 
7
      exercise = '${exercise.id}';
7
8
    </script>
8
9
  </head>
9
10
  <body>
29
30
      <label for="exercise_solution">Exercise Full Solution:</label><br />
30
31
      <textarea cols="80" rows="5" id="exercise_solution" title="Solution">${exercise.solution}</textarea>
31
32
      <br />
32
 
      
 
33
      <label for="exercise_include">Exercise Included Code:</label><br />
 
34
      <textarea cols="80" rows="5" id="exercise_included" title="Included Code">${exercise.include}</textarea>
 
35
      <br />
 
36
      <input type="submit" value="Save Changes" onclick="save_exercise()" />
 
37
      <br />
33
38
      <h1>Exercise Test Suites</h1>
34
39
      <ul>
35
40
        <py:for each="test_suite in exercise.test_suites">
124
129
          </li>
125
130
        </py:for>
126
131
      </ul>
127
 
      <a>Add A New Test Suite</a>
 
132
      <a onclick="tog('add_suite')">Add A New Test Suite</a>
 
133
      <br />
 
134
      <div id="add_suite" class="test_suite_vals">
 
135
        <div>
 
136
          <label for="new_test_suite_description">Description:</label> <textarea id="new_test_suite_description" cols="80" rows="1"></textarea>
 
137
        </div>
 
138
        <div>
 
139
          <label for="new_test_suite_function">Function:</label> <textarea id="new_test_suite_function" title="Suite Function" cols="80" rows="1"></textarea>
 
140
        </div>
 
141
        <div>
 
142
          <label for="new_test_suite_stdin">Stdin:</label> <textarea id="new_test_suite_stdin" title="Suite Stdin" cols="80" rows="4"></textarea>
 
143
        </div>
 
144
        <input type='submit' name='Submit' onclick='add_suite' value="Add Suite" />
 
145
      </div>
128
146
    </div>
129
147
    
130
148
  </body>