~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-07 03:48:23 UTC
  • mfrom: (1165.1.46 submissions)
  • Revision ID: grantw@unimelb.edu.au-20090407034823-snd6wa5p6otzq073
Allow students to submit projects from personal or group repositories.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
          </p>
26
26
          <p>You may submit to any open project in ${offering.subject.name}. Which project do you wish to submit this for?</p>
27
27
          <form action="" method="post">
28
 
            <table>
29
 
              <tr py:for="project in principal.get_projects(offering=offering)"
 
28
            <ul style="list-style: none">
 
29
              <li py:for="project in principal.get_projects(offering=offering)"
30
30
                  py:with="attrs = {'disabled': 'disabled'} if project.deadline &lt; now else {}">
31
 
                <td style="vertical-align: top">
32
 
                  <input type="radio" name="project" id="project_${project.id}" value="${project.id}" py:attrs="attrs" />
33
 
                </td>
34
 
                <td>
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>
36
 
                </td>
37
 
              </tr>
38
 
            </table>
 
31
                <input type="radio" name="project" id="project_${project.id}" value="${project.id}" py:attrs="attrs" />
 
32
                <label for="project_${project.id}">${project.name} - <em>${project.synopsis}</em> - (due ${format_datetime(project.deadline)})</label>
 
33
              </li>
 
34
            </ul>
39
35
            <p>Ensure that you have committed all changes - only changes in the repository will be submitted.</p>
40
36
            <p>You may resubmit a project again at any time until its deadline.</p>
41
37
            <p><input type="submit" value="Submit Project" /></p>