Commit 8290e7cc70db5f62ae02c4e19c0e6193dafd35f0
1 parent
f4205abb
Exists in
master
and in
4 other branches
Autofocus to project name at projects#new. Added description field to projects#n…
…ew. Increased timeout for flash message
Showing
2 changed files
with
9 additions
and
3 deletions
Show diff stats
app/assets/javascripts/main.js.coffee
... | ... | @@ -89,7 +89,7 @@ $ -> |
89 | 89 | if (flash = $(".flash-container")).length > 0 |
90 | 90 | flash.click -> $(@).fadeOut() |
91 | 91 | flash.show() |
92 | - setTimeout (-> flash.fadeOut()), 3000 | |
92 | + setTimeout (-> flash.fadeOut()), 9000 | |
93 | 93 | |
94 | 94 | # Disable form buttons while a form is submitting |
95 | 95 | $('body').on 'ajax:complete, ajax:beforeSend, submit', 'form', (e) -> | ... | ... |
app/views/projects/new.html.haml
... | ... | @@ -7,8 +7,8 @@ |
7 | 7 | = f.label :name do |
8 | 8 | Project name is |
9 | 9 | .input |
10 | - = f.text_field :name, placeholder: "Example Project", class: "xxlarge", tabindex: 1 | |
11 | - = f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 3 | |
10 | + = f.text_field :name, placeholder: "Example Project", class: "xxlarge", tabindex: 1, autofocus: true | |
11 | + = f.submit 'Create project', class: "btn btn-create project-submit", tabindex: 4 | |
12 | 12 | |
13 | 13 | - if current_user.can_select_namespace? |
14 | 14 | .clearfix |
... | ... | @@ -29,6 +29,12 @@ |
29 | 29 | = f.text_field :import_url, class: 'xlarge', placeholder: 'https://github.com/randx/six.git' |
30 | 30 | .light |
31 | 31 | URL must be cloneable |
32 | + .clearfix | |
33 | + = f.label :description do | |
34 | + Description | |
35 | + %span.light (optional) | |
36 | + .input | |
37 | + = f.text_area :description, placeholder: "awesome project", class: "span5", rows: 3, maxlength: 250, tabindex: 3 | |
32 | 38 | |
33 | 39 | %p.padded |
34 | 40 | New projects are private by default. You choose who can see the project and commit to repository. | ... | ... |