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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/subjects.html

  • Committer: Matt Giuca
  • Date: 2010-02-12 10:27:55 UTC
  • Revision ID: matt.giuca@gmail.com-20100212102755-ifsyo4qaqa2myvl5
docs: Added a new help page, Running and Serving.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html xmlns="http://www.w3.org/1999/xhtml"
 
2
      xmlns:py="http://genshi.edgewall.org/">
 
3
  <head>
 
4
    <title>Subjects</title>
 
5
  </head>
 
6
  <body>
 
7
    <h1>Subjects</h1>
 
8
    <div id="ivle_padding">
 
9
      <p py:if="len(semesters) == 0">You are not currently enrolled in any subjects.</p>
 
10
      <py:for each="(semester, offerings) in semesters">
 
11
        <h2 py:attrs="{'class': 'subject_current' if semester.state == u'current' else None}">
 
12
          ${semester.year}, semester ${semester.semester}
 
13
        </h2>
 
14
        <ul>
 
15
          <li py:for="offering in offerings">
 
16
            <a href="${req.publisher.generate(offering)}">${offering.subject.name}</a>
 
17
          </li>
 
18
        </ul>
 
19
      </py:for>
 
20
      <py:if test="defined('subjects')">
 
21
        <h1>All subjects</h1>
 
22
        <table class="pretty_table">
 
23
          <thead><tr><th>Subject</th><th>Code</th><th>Actions</th></tr></thead>
 
24
          <tbody>
 
25
            <tr py:for="subject in subjects">
 
26
              <td>${subject.name}</td>
 
27
              <td>${subject.code}</td>
 
28
              <td>
 
29
                <a href="${req.publisher.generate(subject, SubjectEdit)}" title="Edit"><img src="${mediapath + 'interface/pencil.png'}" alt="Edit" /></a>
 
30
              </td>
 
31
            </tr>
 
32
          </tbody>
 
33
        </table>
 
34
        <p>
 
35
          <a class="addaction" href="/subjects/+new">Create new subject</a>
 
36
          <a class="addaction" href="/subjects/+new-offering">Create new offering</a>
 
37
        </p>
 
38
      </py:if>
 
39
    </div>
 
40
  </body>
 
41
</html>