Ignore:
Timestamp:
12 Sep 2011, 09:23:38 (13 years ago)
Author:
Henrik Bettermann
Message:

Show 'Edit clearence' button only if clearance form isn't locked.

Location:
main/waeup.sirp/trunk/src/waeup/sirp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/actionbutton.pt

    r6635 r6717  
    1 <span class="yui-button">
     1<span class="yui-button" tal:condition="viewlet/target_url">
    22  <span class="first-child">
    33    <a href=""
  • main/waeup.sirp/trunk/src/waeup/sirp/browser/templates/loginpage.pt

    r6715 r6717  
    2929  <p>You don't have an account because you are a fresh student or your student record has just been created?
    3030  Acquire a Password Access Code (PWD) and inititialize your student account
    31   <strong><a href  ="setpassword"> here </a></strong>.
     31  <strong><a href  ="setpassword"> here</a></strong>.
    3232  </p>
    3333
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r6715 r6717  
    586586    target = 'cedit'
    587587
     588    @property
     589    def target_url(self):
     590        if self.context.clearance_locked:
     591            return ''
     592        return self.view.url(self.view.context, self.target)
     593
    588594class StudentClearanceEditFormPage(StudentClearanceManageFormPage):
    589595    """ View to edit student clearance data by student
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser_templates/setpassword.pt

    r6715 r6717  
    3232    </li>
    3333    <li> After pressing the button, your Student Id will be displayed and your password set.
    34         The new password is the 10-digit part of the access code just used.
     34        The 10-digit part of the access code just used is your new password.
    3535    </li>
    3636    <li> Go to the <strong><a href="login">general login page</a></strong> and enter your new credentials.
Note: See TracChangeset for help on using the changeset viewer.