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

« back to all changes in this revision

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

Improve the worksheet/exercise authoring experience a little.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
    <div id="ivle_padding">
38
38
      <div py:with="iw_prefix='exercise'; iw_label_linebreak=True"
39
39
           class="stackedform">
40
 
        <iw:text name="id" desc="Identifier">${exercise.id}</iw:text>
41
 
        <iw:text name="name" desc="Name">${exercise.name}</iw:text>
42
 
        <iw:text name="num_rows" desc="Number of Rows">${exercise.num_rows}</iw:text>
43
 
        <iw:textarea name="desc" desc="Description (RST)" cols="80" rows="10">${exercise.description}</iw:textarea>
44
 
        <iw:textarea name="solution" desc="Solution" cols="80" rows="5">${exercise.solution}</iw:textarea>
45
 
        <iw:textarea name="partial" desc="Partial Solution" cols="80" rows="5">${exercise.partial}</iw:textarea>
46
 
        <iw:textarea name="include" desc="Included Code" cols="80" rows="5">${exercise.include}</iw:textarea>
 
40
        <iw:text name="name" desc="Display name">${exercise.name}</iw:text>
 
41
        <iw:text name="id" desc="URL name">${exercise.id}</iw:text>
 
42
        <iw:text name="num_rows" desc="Predicted code line count">${exercise.num_rows}</iw:text>
 
43
        <iw:textarea name="desc" desc="Description (reStructuredText)" cols="80" rows="10">${exercise.description}</iw:textarea>
 
44
        <iw:textarea name="solution" desc="Full solution (Python)" cols="80" rows="5">${exercise.solution}</iw:textarea>
 
45
        <iw:textarea name="partial" desc="Partial solution (Python, provided to students)" cols="80" rows="5">${exercise.partial}</iw:textarea>
 
46
        <iw:textarea name="include" desc="Included code (Python)" cols="80" rows="5">${exercise.include}</iw:textarea>
47
47
        <input type="button" value="Save" onclick="edit_exercise()" />
48
48
      </div>
49
49
 
110
110
                        <option  value="${var_type}">${var_types[var_type]}</option>
111
111
                      </py:for>
112
112
                    </select>
113
 
                    <label for="new_var_name_${test_suite.suiteid}">Var Name:</label>
 
113
                    <label for="new_var_name_${test_suite.suiteid}">Name:</label>
114
114
                    <input type="text" id="new_var_name_${test_suite.suiteid}" />
115
 
                    <label for="new_var_val_${test_suite.suiteid}">Var Value:</label>
 
115
                    <label for="new_var_val_${test_suite.suiteid}">Value (Python, will be eval'd):</label>
116
116
                    <input type="text" id="new_var_val_${test_suite.suiteid}" />
117
 
                    <label for="new_var_argno_${test_suite.suiteid}">Arg Num:</label>
 
117
                    <label for="new_var_argno_${test_suite.suiteid}">Argument index:</label>
118
118
                    <input size="5" type="text" id="new_var_argno_${test_suite.suiteid}" />
119
119
                    <input type="button" value="Add Variable" onclick="add_var('${test_suite.suiteid}')" />
120
120
                  </div>