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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/projectset_fragment.html

  • Committer: Matt Giuca
  • Date: 2010-02-25 08:26:04 UTC
  • mfrom: (1710.1.25 new-project-ui)
  • Revision ID: matt.giuca@gmail.com-20100225082604-0fku57vycn5cgonf
Replaced AJAX UI for project creation with a standard one. Can now edit project sets, and edit/delete projects. Also many more links to such things, due to the fact that they have their own URLs now. Fixes Launchpad bug #493942.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<li xmlns="http://www.w3.org/1999/xhtml"
2
2
    xmlns:py="http://genshi.edgewall.org/"
3
 
    id='projectset_${projectset.id}'
4
 
    style="display: none;">
 
3
    id='projectset_${projectset.id}'>
5
4
  <py:choose test="projectset.max_students_per_group">
6
5
    <h3 py:when="None">
7
6
      Solo projects
 
7
      <a class="editaction" href="${req.publisher.generate(projectset, ProjectSetEdit)}">Edit</a>
8
8
    </h3>
9
9
    <h3 py:otherwise="">
10
10
      Group projects
11
11
      <span py:if="projectset.max_students_per_group != 0"> - up to ${projectset.max_students_per_group} students per group</span>
12
12
      <a class="groupaction" href="${req.publisher.generate(projectset, GroupsView)}">Manage groups</a>
 
13
      <a class="editaction" href="${req.publisher.generate(projectset, ProjectSetEdit)}">Edit</a>
13
14
    </h3>
14
15
  </py:choose>
15
16
  <ul id="projectslist_${projectset.id}">
18
19
      ${project}
19
20
    </py:for>
20
21
    <li class="add-project">
21
 
      <a href="#" id="add_new_project_${projectset.id}"
22
 
         class="add-project-link addaction">Add a new project</a>
23
 
      <form id="new_project_${projectset.id}" class="new_project" method="post" action="${req.publisher.generate(projectset, ProjectSetRESTView)}">
24
 
        <div>
25
 
          <label for="new_project_name_${projectset.id}">Display 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}">URL name:</label>
29
 
          <input id="new_project_short_name_${projectset.id}" type="text" name="short_name" value="" />
30
 
          <br />
31
 
          <label for="new_project_deadline_${projectset.id}">Deadline:</label>
32
 
          <input id="new_project_deadline_${projectset.id}" type="text" name="deadline" value="YYYY-MM-DD HH:mm:ss" />
33
 
          <br />
34
 
          <label for="new_project_url_${projectset.id}">External URL:</label>
35
 
          <input id="new_project_url_${projectset.id}" type="text" name="url" value="" />
36
 
          <br />
37
 
          <label for="new_project_syn_${projectset.id}">Synopsis:</label>
38
 
          <textarea id="new_project_syn_${projectset.id}" name="synopsis" rows="6"></textarea>
39
 
          <br />
40
 
          <input type="hidden" name="ivle.op" value="add_project" />
41
 
          <input type="submit" value="Create" id="submit_project_${projectset.id}" class="submit-project" />
42
 
        </div>
43
 
      </form>
 
22
      <a href="${req.publisher.generate(projectset, ProjectNew)}"
 
23
         class="addaction">Add a new project</a>
44
24
    </li>
45
25
  </ul>
46
26
</li>