Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
Checking mergeability… Don’t worry, you can still create the pull request.
  • 3 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/yafowil/common.py
View
5 src/yafowil/common.py
@@ -132,6 +132,7 @@ def input_generic_renderer(widget, data):
'class_': cssclasses(widget, data),
'size': widget.attrs.get('size'),
'disabled': bool(widget.attrs.get('disabled')) and 'disabled' or None,
+ 'placeholder': widget.attrs.get('placeholder'),
}
return tag('input', **input_attrs)
@@ -249,6 +250,7 @@ def textarea_renderer(widget, data):
'cols': widget.attrs['cols'],
'rows': widget.attrs['rows'],
'readonly': widget.attrs['readonly'] and 'readonly',
+ 'placeholder': widget.attrs.get('placeholder'),
}
value = fetch_value(widget, data)
if not value:
@@ -410,6 +412,7 @@ def pwd_value(widget, data):
'class_': cssclasses(widget, data),
'size': widget.attrs.get('size'),
'disabled': widget.attrs.get('disabled'),
+ 'placeholder': widget.attrs.get('placeholder'),
}
return tag('input', **input_attrs)
@@ -732,4 +735,4 @@ def error_renderer(widget, data):
factory.defaults['error.error_class'] = 'error'
factory.defaults['error.message_class'] = 'errormessage'
-factory.register('error', [], [error_renderer])
+factory.register('error', [], [error_renderer])

No commit comments for this range

Something went wrong with that request. Please try again.