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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/subject_projects.html

Merged my changes with those of Will's up-to-date branch.

I will now branch these changes to allow for a merge proposal to go
ahead without me poisoning it with new code.

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>Projects - ${offering.subject.name}</title>
 
5
  </head>
 
6
  <body>
 
7
    <py:def function="project_url(offering, project)">/subjects/${offering.subject.short_name}/${offering.semester.year}/${offering.semester.semester}/+project/${project.short_name}</py:def>
 
8
    <h1>${offering.subject.name} - Projects</h1>
 
9
    <div id="ivle_padding">
 
10
      <ul id="projectset_list">
 
11
        <py:for each="projectset in offering.project_sets">
 
12
          <li id="projectset_${projectset.id}">
 
13
            <h3>ProjectSet</h3>
 
14
            <p>Max Size Per Group: ${projectset.max_students_per_group}</p>
 
15
            <ul id="projects_${projectset.id}">
 
16
              <py:for each="project in projectset.projects">
 
17
                <li id="project_${project.id}">
 
18
                  <a href="${project_url(offering, project)}"><h4>${project.short_name} - ${project.name}</h4></a>
 
19
                  <p>${project.synopsis}</p>
 
20
                </li>
 
21
              </py:for>
 
22
              <li>
 
23
                <a>Add new project</a>
 
24
                <div id="new_project_${projectset.id}">
 
25
                  <p>TODO: Write the add project code</p>
 
26
                </div>
 
27
              </li>
 
28
            </ul>
 
29
          </li>
 
30
        </py:for>
 
31
        <li id="add_projectset">
 
32
          <a>Add a new projectset</a>
 
33
          <div id="new_projectset_div">
 
34
            <form>
 
35
            </form>
 
36
          </div>
 
37
        </li>
 
38
      </ul>
 
39
    </div>
 
40
  </body>
 
41
</html>