'Fill and submit the allowance'

def submit_allowance_form(self, allowed_minutes, username):

    self.q(css='input#allowance_value').fill(allowed_minutes)
    self.q(css='input#user_info').fill(username)
    self.q(css='input#addNewAllowance').click()
    self.wait_for_element_absence('div.modal    div.modal-header', 'Popup    should    be    hidden')
    self.wait_for_ajax()
