diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-12-02 14:36:44 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-12-02 14:41:55 +0100 |
commit | a70c507882289a42a9d9b359a730e6f166fedd74 (patch) | |
tree | 64554c77a068e1c2a4c80d44a3cdbaaa5783b8d1 /app/views/shared/snippets/_form.html.haml | |
parent | da48fdc2a51af0f02ebb22cc13fabf7d1a636690 (diff) | |
download | gitlab-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.haml | 3 |
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 |