def payment_formname(self): """ Return a payment form name, add the form to the page popups as well """ admin_expense_js.need() form_name = "payment_form" form = get_payment_form(self.request) form.set_appstruct({'come_from': self.request.current_route_path()}) popup = PopUp(form_name, u"Saisir un paiement", form.render()) self.request.popups[popup.name] = popup return form_name
def payment_formname(self): """ Return a payment form name, add the form to the page popups as well """ admin_expense_js.need() form_name = "payment_form" form = get_payment_form(self.request) form.set_appstruct({'come_from': self.request.current_route_path()}) popup = PopUp(form_name, u"Saisir un paiement", form.render()) self.request.popups[popup.name] = popup return form_name