Ignore:
Timestamp:
24 Sep 2013, 12:38:26 (11 years ago)
Author:
Henrik Bettermann
Message:

Rename buttons.

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

Legend:

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

    r10644 r10645  
    8383    form_fields['description'].custom_widget = HTMLDisplayWidget
    8484    label = _('Application Section')
    85     search_button = _('Search')
    8685    pnav = 3
    8786
     
    111110    grok.require('waeup.viewApplication')
    112111    label = _('Find applicants')
    113     search_button = _('Search')
     112    search_button = _('Find applicant')
    114113    pnav = 3
    115114
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantssearchpage.pt

    r8404 r10645  
    33  <input class="btn primary" type="submit" name="search"
    44    tal:attributes="value view/search_button" />
    5   <span i18n:translate="">for applicant</span>
    65
    76  <select name="searchtype">
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py

    r10644 r10645  
    254254        self.browser.getControl(name="searchtype").value = ['fullname']
    255255        self.browser.getControl(name="searchterm").value = 'John'
    256         self.browser.getControl("Search").click()
     256        self.browser.getControl("Find applicant").click()
    257257        self.assertTrue('John Anthony Tester' in self.browser.contents)
    258258        self.browser.getControl(name="searchtype").value = ['fullname']
    259259        self.browser.getControl(name="searchterm").value = 'Tester'
    260         self.browser.getControl("Search").click()
     260        self.browser.getControl("Find applicant").click()
    261261        self.assertTrue('John Anthony Tester' in self.browser.contents)
    262262        self.browser.open(self.search_path)
     
    264264        self.browser.getControl(name="searchtype").value = ['reg_number']
    265265        self.browser.getControl(name="searchterm").value = '2345'
    266         self.browser.getControl("Search").click()
     266        self.browser.getControl("Find applicant").click()
    267267        self.assertFalse('John Anthony Tester' in self.browser.contents)
    268268        self.browser.getControl(name="searchtype").value = ['reg_number']
    269269        self.browser.getControl(name="searchterm").value = '1234'
    270         self.browser.getControl("Search").click()
     270        self.browser.getControl("Find applicant").click()
    271271        self.assertTrue('John Anthony Tester' in self.browser.contents)
    272272        # ... and not via his application_number ...
     
    274274        self.browser.getControl(
    275275            name="searchterm").value = self.applicant.application_number
    276         self.browser.getControl("Search").click()
     276        self.browser.getControl("Find applicant").click()
    277277        self.assertFalse('John Anthony Tester' in self.browser.contents)
    278278        # ... but ia his applicant_id ...
     
    280280        self.browser.getControl(
    281281            name="searchterm").value = self.applicant.applicant_id
    282         self.browser.getControl("Search").click()
     282        self.browser.getControl("Find applicant").click()
    283283        self.assertTrue('John Anthony Tester' in self.browser.contents)
    284284        # ... and via his email
    285285        self.browser.getControl(name="searchtype").value = ['email']
    286286        self.browser.getControl(name="searchterm").value = 'xx@yy.zz'
    287         self.browser.getControl("Search").click()
     287        self.browser.getControl("Find applicant").click()
    288288        self.assertTrue('John Anthony Tester' in self.browser.contents)
    289289        return
Note: See TracChangeset for help on using the changeset viewer.