summaryrefslogtreecommitdiff
path: root/app/views/admin/projects/_form.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-29 23:59:12 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-01-29 23:59:12 +0200
commitfca1ffb888e506f7ab0551d01321e462c09d5112 (patch)
tree216aa7b0fe4930ad31f9daad403e197a3798a0b3 /app/views/admin/projects/_form.html.haml
parent20721eff1c9a9a8f291d68538f209091b92961b4 (diff)
downloadgitlab-ce-fca1ffb888e506f7ab0551d01321e462c09d5112.tar.gz
Bootstrap: Issues, Merge Requests, SSH Key completed
Diffstat (limited to 'app/views/admin/projects/_form.html.haml')
-rw-r--r--app/views/admin/projects/_form.html.haml29
1 files changed, 13 insertions, 16 deletions
diff --git a/app/views/admin/projects/_form.html.haml b/app/views/admin/projects/_form.html.haml
index d75f2109050..d10fbf95767 100644
--- a/app/views/admin/projects/_form.html.haml
+++ b/app/views/admin/projects/_form.html.haml
@@ -6,28 +6,24 @@
- @admin_project.errors.full_messages.each do |msg|
%li= msg
- .form-row
+ .clearfix
= f.label :name
- %br
- = f.text_field :name
- .form-row
+ .input= f.text_field :name
+ .clearfix
= f.label :code
- %br
- = f.text_field :code
- .form-row
+ .input= f.text_field :code
+ .clearfix
= f.label :path
- %br
- = f.text_field :path
+ .input= f.text_field :path
- .form-row
- = f.label :tag_list
- %br
- = f.text_area :tag_list, :placeholder => "project tags", :style => "height:50px", :id => :tag_field
+ - unless @admin_project.new_record?
+ .clearfix
+ = f.label :owner_id
+ .input= f.select :owner_id, User.all.map { |user| [user.name, user.id] }
- .form-row
+ .clearfix
= f.label :description
- %br
- = f.text_area :description
+ .input= f.text_area :description
.clear
%br
.actions
@@ -36,4 +32,5 @@
:javascript
$(function(){
taggifyForm();
+ $('#project_owner_id').chosen();
})