Ignore:
Timestamp:
12 Jan 2012, 11:53:01 (13 years ago)
Author:
Henrik Bettermann
Message:

Show student id and state in breadcrumbs bar.

All tests pass. Ready to merge branch with trunk.

Location:
main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/browser/templates/staffsitelayout.pt

    r7451 r7454  
    4545            tal:condition="python: layout.isAuthenticated()"
    4646            tal:content="structure provider:breadcrumbs" />
     47      <span tal:condition="layout/getStudentName" class="wfstatus">
     48            Student Id:
     49          <span tal:replace="python:context.getStudent().student_id">Id
     50          </span>&nbsp;&nbsp;
     51          State:
     52          <span tal:replace="python:context.getStudent().state">State
     53          </span>
     54      </span>
    4755    </ul>
    4856
  • main/waeup.sirp/branches/henrik-bootstrap/src/waeup/sirp/students/tests/test_browser.py

    r7453 r7454  
    922922        self.assertEqual(self.browser.url, self.student_path +
    923923            '/contactstudent?subject=%s' % urlmessage)
    924         self.assertTrue('State: <span>school fee paid</span>'
    925             in self.browser.contents)
     924        self.assertTrue('school fee paid' in self.browser.contents)
    926925        IWorkflowInfo(self.student).fireTransition('register_courses')
    927926        self.browser.open(L110_student_path)
     
    929928        self.assertTrue('Course list request has been rejected'
    930929            in self.browser.contents)
    931         self.assertTrue('State: <span>school fee paid</span>'
    932             in self.browser.contents)
     930        self.assertTrue('school fee paid' in self.browser.contents)
    933931        # CA does now see the contact form and can send a message
    934932        self.browser.getControl(name="form.subject").value = 'Important subject'
Note: See TracChangeset for help on using the changeset viewer.