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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-12-16 04:13:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1450.
  • Revision ID: me@williamgrant.id.au-20091216041319-hhh5p8yrb1m0dqx8
Improve worksheet management experience from the offering index.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    <h1>${context.subject.name}</h1>
8
8
    <div id="ivle_padding">
9
9
      <div class="contextactions">
10
 
        <a py:if="'enrol' in context.get_permissions(req.user)"
 
10
        <a py:if="'enrol' in permissions"
11
11
           class="editaction"
12
12
           href="${req.publisher.generate(context, None, ('+enrolments', '+new'))}">
13
13
          Enrol users
14
14
        </a>
15
 
        <a py:if="'edit' in context.get_permissions(req.user)"
 
15
        <a py:if="'edit' in permissions"
16
16
           class="editaction"
17
17
           href="${req.publisher.generate(context, None, '+projects')}">
18
18
          Manage projects
19
19
        </a>
20
 
        <a py:if="'edit' in context.get_permissions(req.user)"
21
 
           class="editaction"
22
 
           href="${req.publisher.generate(context, None, ('+worksheets', '+edit'))}">
23
 
          Manage worksheets
24
 
        </a>
 
20
      </div>
 
21
      <div py:if="'edit' in permissions or context.worksheets.count() > 0">
 
22
        <h2>Worksheets</h2>
 
23
        <py:choose test="context.worksheets.count()">
 
24
          <p py:when="0">
 
25
            There are no worksheets for this offering.
 
26
            <a class="addaction" href="${req.publisher.generate(context, None, ('+worksheets', '+new'))}">Create one now</a>
 
27
          </p>
 
28
          <div py:otherwise="">
 
29
            <a py:if="'edit' in permissions"
 
30
               class="manageaction"
 
31
               href="${req.publisher.generate(context, None, ('+worksheets', '+edit'))}">
 
32
              Manage worksheets
 
33
            </a>
 
34
          </div>
 
35
        </py:choose>
25
36
      </div>
26
37
    </div>
27
38
  </body>