Ignore:
Timestamp:
20 Jan 2012, 07:55:43 (13 years ago)
Author:
Henrik Bettermann
Message:

Some button adjustments.

Location:
main/waeup.sirp/trunk/src/waeup/sirp/applicants
Files:
2 edited

Legend:

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

    r7484 r7489  
    275275        return get_users_with_local_roles(self.context)
    276276
    277     @action('Save')
    278     def apply(self, **data):
     277    @action('Save', style='primary')
     278    def save(self, **data):
    279279        self.applyData(self.context, **data)
    280         self.flash('Data saved.')
     280        self.flash('Form has been saved.')
    281281        return
    282282
     
    650650            dict(name=x, title=y) for x, y in allowed_transitions]
    651651
    652     @action('Save')
     652    @action('Save', style='primary')
    653653    def save(self, **data):
    654654        form = self.request.form
  • main/waeup.sirp/trunk/src/waeup/sirp/applicants/tests/test_browser.py

    r7484 r7489  
    307307        self.assertEqual(self.browser.url, self.manage_container_path)
    308308        self.browser.getControl("Save").click()
    309         self.assertTrue('Data saved' in self.browser.contents)
     309        self.assertTrue('Form has been saved' in self.browser.contents)
    310310        self.browser.getControl("Remove selected", index=0).click()
    311311        self.assertTrue('No applicant selected' in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.