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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-12-09 00:02:49 UTC
  • mto: This revision was merged to the branch mainline in revision 1384.
  • Revision ID: grantw@unimelb.edu.au-20091209000249-y1teiw7yxkyhuhvd
Indicate when there is nobody assigned to a project, and link to the page to fix that.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
      <p>Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}</p>
11
11
 
12
12
      <h2>Latest submissions</h2>
 
13
      <div py:if="project.latest_submissions.count() == 0">
 
14
        There are no submissions.
 
15
      </div>
13
16
      <table id="project_submissions" class="pretty_table" summary="Latest Submissions"
14
17
             py:if="project.latest_submissions.count() > 0">
15
18
        <thead>
36
39
      </table>
37
40
 
38
41
      <h2>Assigned submitters</h2>
39
 
      <table id="project_assigneds" class="pretty_table">
 
42
      <div py:if="project.project_set.assigned.count() == 0"
 
43
           py:choose="project.project_set.is_group">
 
44
        <py:when test="True">There are no groups assigned to submit this project. Do you want to <a href="${req.publisher.generate(project.project_set, GroupsView)}">create some</a>?</py:when>
 
45
        <py:otherwise>There are no students assigned to submit this project. Do you want to <a href="${req.publisher.generate(project.project_set.offering, EnrolView)}">enrol some</a>?</py:otherwise>
 
46
      </div>
 
47
      <table id="project_assigneds" class="pretty_table"
 
48
             py:if="project.project_set.assigned.count() > 0">
40
49
        <thead><tr><th>Assigned</th></tr></thead>
41
50
        <tbody>
42
51
        <py:for each="assignee in project.project_set.assigned">