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/projects/tags | |
parent | da48fdc2a51af0f02ebb22cc13fabf7d1a636690 (diff) | |
download | gitlab-ce-a70c507882289a42a9d9b359a730e6f166fedd74.tar.gz |
Only use input placeholders when they add value
Diffstat (limited to 'app/views/projects/tags')
-rw-r--r-- | app/views/projects/tags/new.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/projects/tags/new.html.haml b/app/views/projects/tags/new.html.haml index 450d3309e26..e65ce308d65 100644 --- a/app/views/projects/tags/new.html.haml +++ b/app/views/projects/tags/new.html.haml @@ -14,16 +14,16 @@ .form-group = label_tag :tag_name, nil, class: 'control-label' .col-sm-10 - = text_field_tag :tag_name, params[:tag_name], placeholder: 'v3.0.1', required: true, tabindex: 1, class: 'form-control' + = text_field_tag :tag_name, params[:tag_name], required: true, tabindex: 1, autofocus: true, class: 'form-control' .form-group = label_tag :ref, 'Create from', class: 'control-label' .col-sm-10 - = text_field_tag :ref, params[:ref], placeholder: 'master', required: true, tabindex: 2, class: 'form-control' + = text_field_tag :ref, params[:ref] || @project.default_branch, required: true, tabindex: 2, class: 'form-control' .help-block Branch name or commit SHA .form-group = label_tag :message, nil, class: 'control-label' .col-sm-10 - = text_field_tag :message, nil, placeholder: 'Enter message.', required: false, tabindex: 3, class: 'form-control' + = text_field_tag :message, nil, required: false, tabindex: 3, class: 'form-control' .help-block Optionally, enter a message to create an annotated tag. %hr .form-group |