-
-
Notifications
You must be signed in to change notification settings - Fork 732
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rendering issue with Layout MultiWidgetField #804
Comments
This issue presents itself when using a few other packages (i.e. The template (at least in the case of For whatever reason, when accessing Any idea why Edit: Overriding the template at the crispy-forms level is a challenge as it doesn't all access to the .widgets property (for rendering the widgets individually as well as any properties). Based on #183 overriding the widget template might get ignored anyway. |
Any update on this? |
These fields are complex. #976 begins work on this, any comments would be much welcomed. Others have used js to fix it in the meantime. |
Description:
In my form, I use
django.forms.widgets.SplitDateTimeWidget
on adjango.forms.ModelForm.SplitDateTimeField
:Rendering the form as crispy-form using
results in this output:
(The Name field is rendered as expected)
The generated HTML:
The rendered MultiWidgetField is missing the bootstrap classes in the input elements.
Also, I would like to use PrependedText on both input elements. Is this possible?
Related to #668
The text was updated successfully, but these errors were encountered: