From 8290e7cc70db5f62ae02c4e19c0e6193dafd35f0 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Mon, 29 Jul 2013 21:06:59 +0300 Subject: Autofocus to project name at projects#new. Added description field to projects#new. Increased timeout for flash message --- app/views/projects/new.html.haml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'app/views/projects/new.html.haml') diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml index 31343f5eb72..e45b2b5757e 100644 --- a/app/views/projects/new.html.haml +++ b/app/views/projects/new.html.haml @@ -7,8 +7,8 @@ = f.label :name do Project name is .input - = f.text_field :name, placeholder: "Example Project", class: "xxlarge", tabindex: 1 - = f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 3 + = f.text_field :name, placeholder: "Example Project", class: "xxlarge", tabindex: 1, autofocus: true + = f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4 - if current_user.can_select_namespace? .clearfix @@ -29,6 +29,12 @@ = f.text_field :import_url, class: 'xlarge', placeholder: 'https://github.com/randx/six.git' .light URL must be cloneable + .clearfix + = f.label :description do + Description + %span.light (optional) + .input + = f.text_area :description, placeholder: "awesome project", class: "span5", rows: 3, maxlength: 250, tabindex: 3 %p.padded New projects are private by default. You choose who can see the project and commit to repository. -- cgit v1.2.3