diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-24 10:45:38 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-24 10:45:38 +0400 |
commit | ddd8f707fc759c9b884df7ab4fd65dba439541b9 (patch) | |
tree | d9df5e22547232a1d27a9727f40ce3f33a057861 /app/views/groups/new.html.haml | |
parent | 5c23bb1171a22ccb63ba7ba56ecc87e0d6f72666 (diff) | |
parent | 4593a0bc22d628f96e87fbb8446078a9bad2c678 (diff) |
Merge branch 'patch-2' into 'master'
Add autofocus and tabindex to newGroup.
Hi,
I've increase accessibility with a autofocus and tabindex on the new group view (like new project).
Diffstat (limited to 'app/views/groups/new.html.haml')
-rw-r--r-- | app/views/groups/new.html.haml | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/views/groups/new.html.haml b/app/views/groups/new.html.haml index ebf5e8571aa..cdc087f949a 100644 --- a/app/views/groups/new.html.haml +++ b/app/views/groups/new.html.haml @@ -6,12 +6,12 @@ = f.label :name, class: 'control-label' do Group name .col-sm-10 - = f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control" + = f.text_field :name, placeholder: "Ex. OpenSource", class: "form-control", tabindex: 1, autofocus: true .form-group.group-description-holder = f.label :description, "Details", class: 'control-label' .col-sm-10 - = f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4 + = f.text_area :description, maxlength: 250, class: "form-control js-gfm-input", rows: 4, tabindex: 2 .form-group.group-description-holder = f.label :avatar, "Group avatar", class: 'control-label' @@ -35,6 +35,4 @@ %li Existing projects may be moved into a group .form-actions - = f.submit 'Create group', class: "btn btn-create" - - + = f.submit 'Create group', class: "btn btn-create", tabindex: 3 |