~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-03-31 00:54:25 UTC
  • mto: (1165.3.1 submissions)
  • mto: This revision was merged to the branch mainline in revision 1174.
  • Revision ID: grantw@unimelb.edu.au-20090331005425-z875m95vkov53e83
Detect the permitted offering for the given submission URL and restrict to that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    <h1>Submit project</h1>
8
8
    <div id="ivle_padding">
9
9
      <p>You are submitting '${path}' from the repository for ${principal}.</p>
10
 
      <p>Which project do you wish to submit this for?</p>
 
10
      <p>You may submit to any open project in ${offering}. Which project do you wish to submit this for?</p>
11
11
      <form action="" method="post">
12
12
        <ul style="list-style: none">
13
 
          <li py:for="project in principal.get_projects()"
 
13
          <li py:for="project in principal.get_projects(offering=offering)"
14
14
              py:with="attrs = {'disabled': 'disabled'} if project.deadline &lt; now else {}">
15
15
            <input type="radio" name="project" id="project_${project.id}" value="${project.id}" py:attrs="attrs" />
16
16
            <label for="project_${project.id}">${project.name} - <em>${project.synopsis}</em> - (due ${format_datetime(project.deadline)})</label>