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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/templates/enrolment-delete.html

  • Committer: stevenbird
  • Date: 2008-02-18 09:11:10 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:495
Fixes to permit content authors to produce nicer diagnostic responses as a result
of automatic tests on a submitted exercise: the XML "problem" format is extended
to permit two new attributes on the function element: succeed and fail, each providing
the text string to be used depending on the result of the test. 

/www/apps/tutorialservice/test/TestFramework.py:TestCasePart
* made ident et al into classmethods (fixing a commented complaint that
  these receive self as first argument)
* replaced redundant lambda functions with references to these class methods
* running a test case now puts the succeed vs fail string in the description
  depending on the result

/www/apps/tutorialservice/test/parse_tute.py:getCasePartData()
* added support for two new attributes on function elements: succeed, fail
* default value comes from existing attribute desc for backwards compatibility

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html xmlns="http://www.w3.org/1999/xhtml"
2
 
      xmlns:py="http://genshi.edgewall.org/">
3
 
  <head>
4
 
    <title>Delete ${enrolment.user.fullname}'s enrolment in ${enrolment.offering.subject.name}</title>
5
 
  </head>
6
 
  <body>
7
 
    <h1>Delete ${enrolment.user.fullname}'s enrolment in ${enrolment.offering.subject.name}</h1>
8
 
    <div id="ivle_padding">
9
 
      <form action="" method="post" class="verticalform thin">
10
 
        <div><label for="field_fullname">Full name:</label> <span id="field_fullname">${enrolment.user.fullname}</span></div>
11
 
        <div><label for="field_login">Login:</label> <span id="field_login">${enrolment.user.login}</span></div>
12
 
        <div class="submit">Are you sure you want to delete this enrolment? The user will no longer have access to this offering.</div>
13
 
        <div class="submit"><input type="submit" value="Delete"/></div>
14
 
      </form>
15
 
    </div>
16
 
  </body>
17
 
</html>