Ignore:
Timestamp:
9 May 2015, 17:15:03 (10 years ago)
Author:
Henrik Bettermann
Message:

Use the term 'officer' instead of 'user'.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/browser
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/browser.txt

    r12912 r12919  
    179179We can add officers:
    180180
    181   >>> browser.getLink("Add user").click()
     181  >>> browser.getLink("Add officer").click()
    182182  >>> browser.getControl(name="form.name").value = 'bob'
    183183  >>> browser.getControl(name="form.title").value = 'Bob The User'
     
    188188  >>> browser.getControl(name="form.phone.area").value = '123'
    189189  >>> browser.getControl(name="form.phone.ext").value = '45678'
    190   >>> browser.getControl("Add user").click()
     190  >>> browser.getControl("Add officer").click()
    191191  >>> print browser.contents
    192192  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"...
     
    226226  >>> browser.getControl(name="form.phone.area").value = '123'
    227227  >>> browser.getControl(name="form.phone.ext").value = '45678'
    228   >>> browser.getControl("Add user").click()
     228  >>> browser.getControl("Add officer").click()
    229229  >>> 'The userid chosen already exists' in browser.contents
    230230  True
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r12912 r12919  
    535535    manage_button = _(u'Manage')
    536536    delete_button = _(u'Remove')
     537    doclink = DOCLINK + '/users.html#officers'
    537538
    538539    def update(self, userid=None, adduser=None, manage=None, delete=None):
     
    578579    grok.template('usereditformpage')
    579580    form_fields = grok.AutoFields(IUserAccount)
    580     label = _('Add user')
    581 
    582     @action(_('Add user'), style='primary')
     581    label = _('Add officer')
     582
     583    @action(_('Add officer'), style='primary')
    583584    def addUser(self, **data):
    584585        name = data['name']
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/viewlets.py

    r12912 r12919  
    592592    grok.context(IUsersContainer)
    593593    grok.view(UsersContainerPage)
    594     text = _('Add user')
     594    text = _('Add officer')
    595595
    596596class BrowseDatacenterLogs(ActionButton):
Note: See TracChangeset for help on using the changeset viewer.