Add an input widget with a copy text link
Review Request #8980 — Created May 31, 2017 and submitted — Latest diff uploaded
Sometimes it makes sense to have a text widget that the user will want
to easily copy data from, such as with generated authentication tokens,
etc. TheCopyableTextInput
is a specializedTextInput
widget that
renders a link to copy the text from the associated field.
Using this with an upcoming change for OAuth forms.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
orig
1
2
3
djblets/staticbundles.py |
---|
djblets/forms/widgets.py |
---|
djblets/forms/templates/djblets_forms/copyable_text_input.html |
---|
djblets/static/djblets/css/forms/copyable_text_input.less |
---|