Autofocus to project name at projects#new. Added description field to projects#new. Increased timeout for flash message
This commit is contained in:
parent
f4205abb77
commit
8290e7cc70
2 changed files with 9 additions and 3 deletions
|
@ -89,7 +89,7 @@ $ ->
|
|||
if (flash = $(".flash-container")).length > 0
|
||||
flash.click -> $(@).fadeOut()
|
||||
flash.show()
|
||||
setTimeout (-> flash.fadeOut()), 3000
|
||||
setTimeout (-> flash.fadeOut()), 9000
|
||||
|
||||
# Disable form buttons while a form is submitting
|
||||
$('body').on 'ajax:complete, ajax:beforeSend, submit', 'form', (e) ->
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue