django-bootstrap-form
django-bootstrap-form copied to clipboard
Required fields
How required are being rendered? Is there any difference between requiered and not required?
As I've seen it doesn't make any difference during rendering.
Would be nice to add support for this feature.
I think it's a bit problematic, because there is no any default approach to required field highlighting in bootstrap.
As I can see in 3.1 required_css_class was added.
Now you can add your own css for required fields and define it's name on your form like this:
class Form:
required_css_class = 'requiredField'
So, I think this issue can be closed.
@meteozond Does it works for you?
I should update the document for this feature
@tzangms Yes, It does.
More than that, may be it would be useful, to use default class name (something like "bootstrap_form_required"). And give ability to redefine it in form.
Is there a reason why not to add "required" attribute for mandatory form fields?