Backend UX: Restructure payment settings

This commit is contained in:
Raphael Michel
2018-03-23 16:38:06 +01:00
parent 073860cd5b
commit 3a7e0da80b
13 changed files with 239 additions and 189 deletions

View File

@@ -32,9 +32,12 @@ class BankTransfer(BasePaymentProvider):
)
}}
)
return OrderedDict(
d = OrderedDict(
list(super().settings_form_fields.items()) + [('bank_details', form_field)]
)
d.move_to_end('bank_details', last=False)
d.move_to_end('_enabled', last=False)
return d
def payment_form_render(self, request) -> str:
template = get_template('pretixplugins/banktransfer/checkout_payment_form.html')