1165.3.2
by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to |
1 |
<li xmlns="http://www.w3.org/1999/xhtml" |
2 |
xmlns:py="http://genshi.edgewall.org/" |
|
1165.3.30
by William Grant
Clean out the projectset fragment context. |
3 |
id='projectset_${projectset.id}' |
1165.3.2
by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to |
4 |
style="display: none;"> |
1165.3.30
by William Grant
Clean out the projectset fragment context. |
5 |
<py:choose test="projectset.max_students_per_group"> |
1165.3.21
by William Grant
Indicate the solo/groupness of a project. |
6 |
<h3 py:when="None"> |
7 |
Solo projects |
|
8 |
</h3> |
|
1165.3.24
by William Grant
Omit the group size limit text when there isn't one. |
9 |
<h3 py:when="0"> |
10 |
Group projects |
|
11 |
<a href="+groups">(administer groups)</a> |
|
12 |
</h3> |
|
1165.3.21
by William Grant
Indicate the solo/groupness of a project. |
13 |
<h3 py:otherwise=""> |
1165.3.30
by William Grant
Clean out the projectset fragment context. |
14 |
Group projects - up to ${projectset.max_students_per_group} students per group |
1165.3.21
by William Grant
Indicate the solo/groupness of a project. |
15 |
<a href="+groups">(administer groups)</a> |
16 |
</h3> |
|
17 |
</py:choose> |
|
1165.3.33
by William Grant
Merge the empty/non-empty project lists. |
18 |
<ul id="projectslist_${projectset.id}"> |
1165.3.36
by William Grant
Swap around some elements to make the OfferingProjectsView XHTML more valid. |
19 |
<li py:if="len(projects) == 0" class="list_empty_indicator">No projects.</li> |
1165.3.33
by William Grant
Merge the empty/non-empty project lists. |
20 |
<py:for each="project in projects"> |
21 |
${project} |
|
22 |
</py:for> |
|
1165.3.34
by William Grant
Put the 'Add a new project' link and form inside an <li>. |
23 |
<li class="add-project"> |
24 |
<a href="#" id="add_new_project_${projectset.id}" |
|
25 |
class="add-project-link">Add a new project</a> |
|
1165.3.36
by William Grant
Swap around some elements to make the OfferingProjectsView XHTML more valid. |
26 |
<form id="new_project_${projectset.id}" class="new_project" method="post" action="${new_project_url}"> |
27 |
<div>
|
|
1165.3.34
by William Grant
Put the 'Add a new project' link and form inside an <li>. |
28 |
<label for="new_project_name_${projectset.id}">Name:</label> |
29 |
<input id="new_project_name_${projectset.id}" type="text" name="name" value="" /> |
|
30 |
<br /> |
|
31 |
<label for="new_project_short_name_${projectset.id}">Short Name:</label> |
|
32 |
<input id="new_project_short_name_${projectset.id}" type="text" name="short_name" value="" /> |
|
33 |
<br /> |
|
34 |
<label for="new_project_syn_${projectset.id}">Synopsis:</label> |
|
35 |
<textarea id="new_project_syn_${projectset.id}" name="synopsis" rows="6"></textarea> |
|
36 |
<br /> |
|
37 |
<input type="hidden" name="ivle.op" value="add_project" /> |
|
38 |
<input type="submit" value="Create" id="submit_project_${projectset.id}" class="submit-project" /> |
|
1165.3.36
by William Grant
Swap around some elements to make the OfferingProjectsView XHTML more valid. |
39 |
</div> |
40 |
</form> |
|
1165.3.34
by William Grant
Put the 'Add a new project' link and form inside an <li>. |
41 |
</li> |
1165.3.33
by William Grant
Merge the empty/non-empty project lists. |
42 |
</ul> |
1165.3.2
by Nick Chadwick
Created a new view for IVLE, allowing lecturers and tutors to |
43 |
</li> |