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

« back to all changes in this revision

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

Created a new view for IVLE, allowing lecturers and tutors to 
administrate projects.

At the moment, this new view can add projectsets, and add projects.
It can also view the details of a project.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<li xmlns="http://www.w3.org/1999/xhtml"
 
2
    xmlns:py="http://genshi.edgewall.org/"
 
3
    id='projectset_${ projectset_id }'
 
4
    style="display: none;">
 
5
  <h3>ProjectSet</h3>
 
6
  <p>Max Students Per Group: ${group_size}</p>
 
7
  <ul id="projectslist_${projectset_id}">
 
8
    <py:for each="project in projects">
 
9
      ${project}
 
10
    </py:for>
 
11
  </ul>
 
12
  <a href="#" id="add_new_project_${ projectset_id }"><h3>Add a New Project</h3></a>
 
13
  <div id="new_project_${ projectset_id }">
 
14
    <form class="new_project" method="POST" action="${ new_project_url }">
 
15
      <label for="new_project_name_${ projectset_id }">Name:</label>
 
16
      <input id="new_project_name_${ projectset_id }" type="text" name="name" value="" />
 
17
      <br />
 
18
      <label for="new_project_short_name_${ projectset_id }">Short Name:</label>
 
19
      <input id="new_project_short_name_${ projectset_id }" type="text" name="short_name" value="" />
 
20
      <br />
 
21
      <label for="new_project_syn_${ projectset_id }">Synopsis:</label>
 
22
      <textarea id="new_project_syn_${ projectset_id }" name="synopsis"></textarea>
 
23
      <br />
 
24
      <input type="hidden" name="ivle.op" value="add_project" />
 
25
      <input type="submit" value="Create" id="submit_project_${ projectset_id}" />
 
26
    </form>
 
27
  </div>
 
28
</li>