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

« back to all changes in this revision

Viewing changes to ivle/webapp/submit/submit.html

  • Committer: William Grant
  • Date: 2009-04-23 03:36:48 UTC
  • Revision ID: grantw@unimelb.edu.au-20090423033648-da4wxhvvtd50qzkq
Remove ivle.conf.python_site_packages_override.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
          <form action="" method="post">
28
28
            <table>
29
29
              <tr py:for="project in principal.get_projects(offering=offering)"
30
 
                  py:attrs="{'class': 'project closed'} if project.has_deadline_passed(req.user) else {'class': 'project'}">
 
30
                  py:with="attrs = {'disabled': 'disabled'} if project.deadline &lt; now else {}">
31
31
                <td style="vertical-align: top">
32
 
                  <input type="radio" name="project" id="project_${project.id}" value="${project.id}" />
 
32
                  <input type="radio" name="project" id="project_${project.id}" value="${project.id}" py:attrs="attrs" />
33
33
                </td>
34
34
                <td>
35
 
                  <label for="project_${project.id}">
36
 
                    <py:choose test="project.url not in (None, '')">
37
 
                      <a py:when="True" href="${project.url}">${project.name}</a>
38
 
                      <span py:otherwise="">${project.name}</span> 
39
 
                    </py:choose>
40
 
                    &ndash;
41
 
                    <span py:content="format_submission_principal(req.user, principal)" /> &ndash;
42
 
                    <!-- XXX This deadline does not take the student's extensions into account. -->
43
 
                    <span title="${format_datetime(project.deadline)}">
44
 
                      ${'closed' if project.has_deadline_passed(req.user) else 'due'} ${format_datetime_short(project.deadline)}
45
 
                    </span>
46
 
                    <py:if test="principal is not None"
47
 
                           py:with="submissions = project.get_submissions_for_principal(principal)">
48
 
                      &ndash;
49
 
                      <py:choose test="submissions.count()">
50
 
                        <span py:when="0">
51
 
                          not yet submitted
52
 
                        </span>
53
 
                        <span py:otherwise=""
54
 
                              py:with="latest = submissions.last()"
55
 
                              title="${format_datetime(latest.date_submitted)}">
56
 
                          last submitted ${format_datetime_short(latest.date_submitted)}
57
 
                        </span>
58
 
                      </py:choose>
59
 
                    </py:if>
60
 
                    <br />
61
 
                    ${project.synopsis}
62
 
                    <py:if test="project.has_deadline_passed(req.user)"><br />
63
 
                      <em>Note: The deadline has passed. You may still submit late, but a penalty may be incurred.</em>
64
 
                    </py:if>
65
 
                  </label>
 
35
                  <label for="project_${project.id}"><a href="${project.url}">${project.name}</a> (<span title="Due ${format_datetime(project.deadline)}">due ${format_datetime_short(project.deadline)}</span>)<br />${project.synopsis}</label>
66
36
                </td>
67
37
              </tr>
68
38
            </table>
69
39
            <p>Ensure that you have committed all changes - only changes in the repository will be submitted.</p>
70
 
            <p>You may resubmit a project again at any time, but a new submission will overwrite any made earlier, and submissions after the deadline may incur a penalty.</p>
71
 
            <p><input type="submit" value="Submit Project" />
72
 
              <a class="helpaction" href="/+help/Submitting%20a%20project">Help submitting a project</a>
73
 
            </p>
 
40
            <p>You may resubmit a project again at any time until its deadline.</p>
 
41
            <p><input type="submit" value="Submit Project" /></p>
74
42
          </form>
75
43
        </div>
76
44
      </py:choose>