~azzar1/unity/add-show-desktop-key

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>
1358 by William Grant
Use the publishing framework to generate URLs to projectsets.
9
    <h3 py:otherwise="">
1165.3.24 by William Grant
Omit the group size limit text when there isn't one.
10
      Group projects
1358 by William Grant
Use the publishing framework to generate URLs to projectsets.
11
      <span py:if="projectset.max_students_per_group != 0"> - up to ${projectset.max_students_per_group} students per group</span>
1451 by William Grant
Add icons to the project management view.
12
      <a class="groupaction" href="${req.publisher.generate(projectset, GroupsView)}">Manage groups</a>
1165.3.21 by William Grant
Indicate the solo/groupness of a project.
13
    </h3>
14
  </py:choose>
1165.3.33 by William Grant
Merge the empty/non-empty project lists.
15
  <ul id="projectslist_${projectset.id}">
1165.3.36 by William Grant
Swap around some elements to make the OfferingProjectsView XHTML more valid.
16
    <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.
17
    <py:for each="project in projects">
18
      ${project}
19
    </py:for>
1165.3.34 by William Grant
Put the 'Add a new project' link and form inside an <li>.
20
    <li class="add-project">
21
      <a href="#" id="add_new_project_${projectset.id}"
1451 by William Grant
Add icons to the project management view.
22
         class="add-project-link addaction">Add a new project</a>
1358 by William Grant
Use the publishing framework to generate URLs to projectsets.
23
      <form id="new_project_${projectset.id}" class="new_project" method="post" action="${req.publisher.generate(projectset, ProjectSetRESTView)}">
1165.3.36 by William Grant
Swap around some elements to make the OfferingProjectsView XHTML more valid.
24
        <div>
1165.3.34 by William Grant
Put the 'Add a new project' link and form inside an <li>.
25
          <label for="new_project_name_${projectset.id}">Name:</label>
26
          <input id="new_project_name_${projectset.id}" type="text" name="name" value="" />
27
          <br />
28
          <label for="new_project_short_name_${projectset.id}">Short Name:</label>
29
          <input id="new_project_short_name_${projectset.id}" type="text" name="short_name" value="" />
30
          <br />
1316.1.2 by David Coles
Allow specification of a deadline when creating new projects.
31
          <label for="new_project_deadline_${projectset.id}">Deadline:</label>
1316.1.3 by David Coles
Give a hint for the format. Otherwise things break badly.
32
          <input id="new_project_deadline_${projectset.id}" type="text" name="deadline" value="YYYY-MM-DD HH:mm:ss" />
1316.1.2 by David Coles
Allow specification of a deadline when creating new projects.
33
          <br />
1165.3.34 by William Grant
Put the 'Add a new project' link and form inside an <li>.
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>