1. Mikhail Korobov
  2. django-widget-tweaks
  3. Pull requests

Pull requests

#4 Merged
Repository
etienned
Branch
default
Repository
kmike
Branch
default

Added "add_error_attr" templatetag, it's the same as 'attr' but adds/changes attr only if validation failed for the field (field.errors is not empty).

Author
  1. Etienne Desautels
Reviewers
Description

Title say all. This templatetag can be useful when dealing with accessibility, having to add aria-invalid="true" to fields with errors for example.

Comments (1)