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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-07-20 12:16:51 UTC
  • mto: This revision was merged to the branch mainline in revision 1818.
  • Revision ID: matt.giuca@gmail.com-20100720121651-rgeeztj6jn1tsrou
Submit page: No longer disables the radio button for closed projects.
Displays them in red rather than grey (grey implies disabled, red implies caution).
Added notice that the deadline has passed, but submission can still be done with a penalty.

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>${project.name} for ${project.project_set.offering.subject.name}</title>
 
5
  </head>
 
6
  <body>
 
7
    <h1>${project.name} for ${project.project_set.offering.subject.name}</h1>
 
8
    <div id="ivle_padding">
 
9
      <div class="contextactions">
 
10
        <a py:if="'edit' in permissions"
 
11
           class="editaction"
 
12
           href="${req.publisher.generate(project, ProjectEdit)}">
 
13
           Change details
 
14
        </a>
 
15
        <a py:if="'edit' in permissions"
 
16
           class="deleteaction"
 
17
           href="${req.publisher.generate(project, ProjectDelete)}">
 
18
           Delete project
 
19
        </a>
 
20
      </div>
 
21
      <a py:if="project.url not in (None, '')" href="${project.url}">${project.url}</a>
 
22
      <p>Deadline: ${format_datetime(project.deadline)}</p>
 
23
      <p>${project.synopsis}</p>
 
24
      <p>Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}</p>
 
25
 
 
26
      <h2>Latest submissions</h2>
 
27
      <div py:if="project.latest_submissions.count() == 0">
 
28
        There are no submissions.
 
29
      </div>
 
30
      <table id="project_submissions" class="pretty_table" summary="Latest Submissions"
 
31
             py:if="project.latest_submissions.count() > 0">
 
32
        <thead>
 
33
          <tr>
 
34
            <th>Group</th>
 
35
            <th>Submitter</th>
 
36
            <th>Date</th>
 
37
            <th>Download</th>
 
38
          </tr>
 
39
        </thead>
 
40
        <tbody>
 
41
        <py:for each="submission in project.latest_submissions">
 
42
          <tr>
 
43
          <py:choose test="submission.assessed.principal is submission.submitter">
 
44
            <td py:when="True">-</td>
 
45
            <td py:otherwise=""><span title="${submission.assessed.principal.display_name}">${submission.assessed.principal.short_name}</span></td>
 
46
          </py:choose>
 
47
            <td><span title="${submission.submitter.display_name}">${submission.submitter.short_name}</span></td>
 
48
            <td>${submission.date_submitted.strftime("%Y-%m-%d %H:%M:%S")}</td>
 
49
            <td>${submission.get_svn_export_command(req)}</td>
 
50
          </tr>
 
51
        </py:for>
 
52
        </tbody>
 
53
      </table>
 
54
      <p>Check these out with your IVLE username and Subversion password, as
 
55
      documented under <a class="helpaction"
 
56
      href="/+help/Files/Subversion#external">External Subversion
 
57
      access</a>.<br />
 
58
      <a class="marksaction"
 
59
           href="${req.publisher.generate(project, ProjectExport)}">
 
60
           Bash script for exporting submitted projects
 
61
        </a>
 
62
      </p>
 
63
 
 
64
      <h2>Assigned submitters</h2>
 
65
      <div py:if="project.project_set.assigned.count() == 0"
 
66
           py:choose="project.project_set.is_group">
 
67
        <py:when test="True">There are no groups assigned to submit this project. Do you want to <a href="${req.publisher.generate(project.project_set, GroupsView)}">create some</a>?</py:when>
 
68
        <py:otherwise>There are no students assigned to submit this project. Do you want to <a href="${req.publisher.generate(project.project_set.offering, EnrolView)}">enrol some</a>?</py:otherwise>
 
69
      </div>
 
70
      <table id="project_assigneds" class="pretty_table"
 
71
             py:if="project.project_set.assigned.count() > 0">
 
72
        <thead><tr><th>Assigned</th></tr></thead>
 
73
        <tbody>
 
74
        <py:for each="assignee in project.project_set.assigned">
 
75
          <tr>
 
76
            <td><span title="${assignee.display_name}">${assignee.short_name}</span></td>
 
77
            <!-- <td><a>Grant an extension</a></td> -->
 
78
          </tr>
 
79
        </py:for>
 
80
        </tbody>
 
81
      </table>
 
82
    </div>
 
83
  </body>
 
84
</html>