summaryrefslogtreecommitdiff
path: root/app/views/shared/snippets/_form.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-12-02 14:36:44 +0100
committerDouwe Maan <douwe@gitlab.com>2015-12-02 14:41:55 +0100
commita70c507882289a42a9d9b359a730e6f166fedd74 (patch)
tree64554c77a068e1c2a4c80d44a3cdbaaa5783b8d1 /app/views/shared/snippets/_form.html.haml
parentda48fdc2a51af0f02ebb22cc13fabf7d1a636690 (diff)
downloadgitlab-ce-a70c507882289a42a9d9b359a730e6f166fedd74.tar.gz
Only use input placeholders when they add value
Diffstat (limited to 'app/views/shared/snippets/_form.html.haml')
-rw-r--r--app/views/shared/snippets/_form.html.haml3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/shared/snippets/_form.html.haml b/app/views/shared/snippets/_form.html.haml
index b46ed0dc0ad..99d93659678 100644
--- a/app/views/shared/snippets/_form.html.haml
+++ b/app/views/shared/snippets/_form.html.haml
@@ -8,7 +8,8 @@
.form-group
= f.label :title, class: 'control-label'
- .col-sm-10= f.text_field :title, placeholder: "Example Snippet", class: 'form-control', required: true
+ .col-sm-10
+ = f.text_field :title, class: 'form-control', required: true, autofocus: true
= render 'shared/visibility_level', f: f, visibility_level: visibility_level, can_change_visibility_level: true, form_model: @snippet