Closed lilliputten closed 6 months ago
Show a payment_method radio-group options inline (by option node id, will be work for all payment_method radio groups).
payment_method
Explanation for the used solution:
It's impossible to stylize it using class attribute in dds_registration/forms.py.
dds_registration/forms.py
This code:
RadioSelect(attrs={"class": "XXX"})
will produce class attribute for the hidden inner input, not to the wrapper, like that:
input
<input class="XXX" ... type="radio" value="INVOICE">
So, in this solution, we work only from the css side.
TODO: Didn't we want to use icons here? (I'm not sure, but probably it'll be a bit tricky here.)
Added another changes from the frozen PR #143,
Show a
payment_method
radio-group options inline (by option node id, will be work for allpayment_method
radio groups).Explanation for the used solution:
It's impossible to stylize it using class attribute in
dds_registration/forms.py
.This code:
will produce class attribute for the hidden inner
input
, not to the wrapper, like that:So, in this solution, we work only from the css side.
TODO: Didn't we want to use icons here? (I'm not sure, but probably it'll be a bit tricky here.)
Added another changes from the frozen PR #143,