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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-02-12 03:33:38 UTC
  • Revision ID: matt.giuca@gmail.com-20100212033338-z5sc1gh7ea3y30vx
Tutors can now (once again) edit worksheets.
database: Created a new capability, 'edit_worksheets', which is set for tutors
    and above.
    The 'edit' capability for worksheets is now derived from the
    'edit_worksheets' capability in the offering, rather than 'edit'.
All checks to do with creating or editing worksheets (in general, not specific
ones) check 'edit_worksheets'. Checks specific to a worksheet still check the
'edit' capability, on the worksheet itself.

Show diffs side-by-side

added added

removed removed

Lines of Context:
96
96
        </a>
97
97
      </div>
98
98
 
99
 
      <div py:if="'edit' in permissions or context.worksheets.count() > 0"
 
99
      <div py:if="'edit_worksheets' in permissions or context.worksheets.count() > 0"
100
100
           class="majorsection">
101
101
        <h2>Worksheets</h2>
102
102
        <py:choose test="context.worksheets.count()">
130
130
                <span style="font-weight: bold;">Mark:</span> ${worksheet_mark}/${worksheet_max_mark}
131
131
              </p>
132
132
            </py:if>
133
 
            <span py:if="'edit' in permissions">
 
133
            <span py:if="'edit_worksheets' in permissions">
134
134
              <a class="manageaction" href="${req.publisher.generate(context, None, ('+worksheets', '+edit'))}"> Manage worksheets</a>
135
135
              <br />
136
136
              <a class="manageaction" href="/+exercises">Manage exercises</a>