7
7
<h1>Submit project</h1>
8
8
<div id="ivle_padding">
10
<py:choose test="offering">
12
<p>You may not submit files from <span style="font-family: monospace">${path}</span> in
14
<span py:when="principal is req.user">your repository.</span>
15
<span py:otherwise="">the repository for ${principal.display_name}.</span>
17
You can only submit files from a subject directory.
21
<p>You are submitting <span style="font-family: monospace">${path}</span> from
23
<span py:when="principal is req.user">your repository.</span>
24
<span py:otherwise="">the repository for ${principal.display_name}.</span>
27
<p>You may submit to any open project in ${offering.subject.name}. Which project do you wish to submit this for?</p>
28
<form action="" method="post">
29
<ul style="list-style: none">
30
<li py:for="project in principal.get_projects(offering=offering)"
31
py:with="attrs = {'disabled': 'disabled'} if project.deadline < now else {}">
32
<input type="radio" name="project" id="project_${project.id}" value="${project.id}" py:attrs="attrs" />
33
<label for="project_${project.id}">${project.name} - <em>${project.synopsis}</em> - (due ${format_datetime(project.deadline)})</label>
36
<p>Ensure that you have committed all changes - only changes in the repository will be submitted.</p>
37
<p>You may resubmit a project again at any time until its deadline.</p>
38
<p><input type="submit" value="Submit Project" /></p>
9
<p>You are submitting '<span style="font-family: monospace">${path}</span>' from the repository for ${principal}.</p>
10
<p>You may submit to any open project in ${offering}. Which project do you wish to submit this for?</p>
11
<form action="" method="post">
12
<ul style="list-style: none">
13
<li py:for="project in principal.get_projects(offering=offering)"
14
py:with="attrs = {'disabled': 'disabled'} if project.deadline < now else {}">
15
<input type="radio" name="project" id="project_${project.id}" value="${project.id}" py:attrs="attrs" />
16
<label for="project_${project.id}">${project.name} - <em>${project.synopsis}</em> - (due ${format_datetime(project.deadline)})</label>
19
<p>You may resubmit this project again at any time until the deadline.</p>
20
<p><input type="submit" value="Submit Project" /></p>