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

« back to all changes in this revision

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

  • Committer: David Coles
  • Date: 2010-07-27 04:52:14 UTC
  • Revision ID: coles.david@gmail.com-20100727045214-p32h1kc0gcv48dpr
Worksheets: Strip off whitespace from the end of exercise attempts.

This solves an issue where accidental whitespace in an attempt will cause 
"IndentationError" syntax error (which don't occur when run in console).

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:with="attrs = {'disabled': 'disabled'} if project.has_deadline_passed(req.user) else {}"
31
30
                  py:attrs="{'class': 'project closed'} if project.has_deadline_passed(req.user) else {'class': 'project'}">
32
31
                <td style="vertical-align: top">
33
 
                  <input type="radio" name="project" id="project_${project.id}" value="${project.id}" py:attrs="attrs" />
 
32
                  <input type="radio" name="project" id="project_${project.id}" value="${project.id}" />
34
33
                </td>
35
34
                <td>
36
35
                  <label for="project_${project.id}">
60
59
                    </py:if>
61
60
                    <br />
62
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>
63
65
                  </label>
64
66
                </td>
65
67
              </tr>
66
68
            </table>
67
69
            <p>Ensure that you have committed all changes - only changes in the repository will be submitted.</p>
68
 
            <p>You may resubmit a project again at any time until its deadline, but a new submission will overwrite any made earlier.</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>
69
71
            <p><input type="submit" value="Submit Project" />
70
72
              <a class="helpaction" href="/+help/Submitting%20a%20project">Help submitting a project</a>
71
73
            </p>