|
|
@ -63,7 +63,7 @@ def input_field(context, type, name='', value='', multiple='', **kwargs): |
|
|
""" |
|
|
""" |
|
|
Usage: when specifying data attributes in templates, use "data_" instead of "data-". |
|
|
Usage: when specifying data attributes in templates, use "data_" instead of "data-". |
|
|
""" |
|
|
""" |
|
|
error = context.get(f'{name}_error', False) |
|
|
|
|
|
|
|
|
error = context.get(name + '_error', False) |
|
|
if error: |
|
|
if error: |
|
|
if 'class' in kwargs: |
|
|
if 'class' in kwargs: |
|
|
kwargs['class'] += ' error' |
|
|
kwargs['class'] += ' error' |
|
|
|