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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-02-11 06:54:39 UTC
  • Revision ID: matt.giuca@gmail.com-20100211065439-kv2pi94cmz8a8dvu
All checks if a project deadline has passed call Project.has_deadline_passed, rather than manually checking with the current time. Important if the abstracted function changes to respect extensions.

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.deadline &lt; now else {}">
 
30
                  py:with="attrs = {'disabled': 'disabled'} if project.has_deadline_passed(req.user) else {}">
31
31
                <td style="vertical-align: top">
32
32
                  <input type="radio" name="project" id="project_${project.id}" value="${project.id}" py:attrs="attrs" />
33
33
                </td>
34
34
                <td>
 
35
                  <!-- XXX This deadline does not take the student's extensions into account. -->
35
36
                  <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>
36
37
                </td>
37
38
              </tr>