~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-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:
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>