Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
django-sshkey
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
abae8ecd
authored
Jul 02, 2014
by
Scott Duckworth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
customize UserKeyForm widgets with placeholder text
parent
35336d9e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
django_sshkey/forms.py
+11
-0
No files found.
django_sshkey/forms.py
View file @
abae8ecd
...
...
@@ -33,3 +33,14 @@ class UserKeyForm(forms.ModelForm):
class
Meta
:
model
=
UserKey
fields
=
[
'name'
,
'key'
]
widgets
=
{
'name'
:
forms
.
TextInput
(
attrs
=
{
'size'
:
50
,
'placeholder'
:
"username@hostname, or leave blank to use key comment"
,
}),
'key'
:
forms
.
Textarea
(
attrs
=
{
'cols'
:
72
,
'rows'
:
15
,
'placeholder'
:
"Paste in the contents of your public key file here"
,
}),
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment