Beispiel #1
0
def get_form(request, class_form):
    schema = class_form(validator=form_validator)
    schema = schema.bind(daftar_status=STATUS,
                         daftar_wajibpajak=daftar_wajibpajak(),
                         daftar_unit=daftar_unit(),
                         daftar_objekpajak=daftar_objekpajak(),
                         )
    schema.request = request
    return Form(schema, buttons=('simpan','batal'))
Beispiel #2
0
def get_form(request, class_form):
    schema = class_form(validator=form_validator)
    schema = schema.bind(daftar_user=daftar_user(), daftar_unit=daftar_unit())
    schema.request = request
    return Form(schema, buttons=('save', 'cancel'))