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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:py="http://genshi.edgewall.org/">
  <head>
    <title>Edit - ${worksheet.name} - ${subject.name}</title>
    <!-- These let the javascript know which worksheet is open -->
    <script type="text/javascript">
        subject = "${subject.short_name}";
        worksheet = "${worksheetname}";
        year = "${year}";
        semester = "${semester}";
    </script>
  </head>
  <body>
    <h1>Edit ${worksheet.name} in ${subject.name}</h1>
    <p class="system_warning">This page is currently being trialled. It is
      missing features and contains known bugs. It is expected to change soon.
    </p>
    <div id="ivle_padding">
      <div id='worksheet_input'>
        <label for='worksheet_name'>Name:</label>
        <input type='text' id='worksheet_name' class='worksheet_area' value='${worksheet.name}' />
        <br />
        <label for='worksheet_asses'>Assessable:</label>
        <input type='checkbox' name='asses' id='worksheet_asses'
               py:attrs="{'checked': 'checked' if worksheet.assessable else None}" />
        <br />
        <label for='worksheet_format'>Worksheet Format:</label>
        <select name='format' id='worksheet_format'>
          <py:for each="format in formats">
            <py:if test="unicode(format) == worksheet.format">
              <option selected="selected" value='${format}'>${format}</option>
            </py:if>
            <py:if test="format != worksheet.format">
              <option value='${format}'>${format}</option>
            </py:if>
          </py:for>
        </select>
        <br />
        <textarea id='worksheet_data' class='worksheet_area' cols='80'
        rows='30'>${worksheet.data}</textarea>
        <p>
          <span id="savepanel">
            <input onclick='editworksheet()' type="submit" value="Save" />
            <input onclick='undo_changes()' type="submit" value='Undo' />
          </span>
        </p>
      </div>
    </div>
  </body>
</html>