Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sauerburger-keys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Frank Sauerburger
sauerburger-keys
Commits
0ec2560e
Verified
Commit
0ec2560e
authored
4 years ago
by
Frank Sauerburger
Browse files
Options
Downloads
Patches
Plain Diff
Add placeholder to keystring field
parent
310505e8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ssh/forms.py
+3
-1
3 additions, 1 deletion
ssh/forms.py
with
3 additions
and
1 deletion
ssh/forms.py
+
3
−
1
View file @
0ec2560e
...
...
@@ -5,7 +5,9 @@ from django.core.exceptions import ValidationError
class
KeyStringField
(
forms
.
CharField
):
def
__init__
(
self
,
*
args
,
**
kwds
):
kwds
[
"
widget
"
]
=
forms
.
Textarea
kwds
[
"
widget
"
]
=
forms
.
Textarea
(
attrs
=
{
'
placeholder
'
:
"
ssh-key-type BASE64ENCODEDKEY hostname
"
})
super
().
__init__
(
*
args
,
**
kwds
)
def
to_python
(
self
,
value
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment