Fixed admin area. Create project only from one place
This commit is contained in:
parent
2b683b0d0b
commit
552b3105fb
9 changed files with 42 additions and 101 deletions
|
@ -11,16 +11,13 @@
|
|||
.input
|
||||
= f.text_field :name, placeholder: "Example Project", class: "xxlarge"
|
||||
|
||||
%hr
|
||||
.adv_settings
|
||||
%h6 Advanced settings:
|
||||
%fieldset.adv_settings
|
||||
%legend Advanced settings:
|
||||
.clearfix
|
||||
= f.label :path do
|
||||
Path
|
||||
.input
|
||||
.input-prepend
|
||||
%strong
|
||||
= text_field_tag :ppath, @admin_project.path_to_repo, class: "xlarge", disabled: true
|
||||
= text_field_tag :ppath, @project.path_to_repo, class: "xlarge", disabled: true
|
||||
.clearfix
|
||||
= f.label :code do
|
||||
URL
|
||||
|
@ -30,6 +27,10 @@
|
|||
= f.text_field :code, placeholder: "example"
|
||||
|
||||
- unless project.new_record?
|
||||
.clearfix
|
||||
= f.label :namespace_id
|
||||
.input= f.select :namespace_id, namespaces_options, {}, {class: 'chosen'}
|
||||
|
||||
.clearfix
|
||||
= f.label :owner_id
|
||||
.input= f.select :owner_id, User.all.map { |user| [user.name, user.id] }, {}, {class: 'chosen'}
|
||||
|
@ -40,9 +41,8 @@
|
|||
.input= f.select(:default_branch, project.heads.map(&:name), {}, style: "width:210px;")
|
||||
|
||||
- unless project.new_record?
|
||||
%hr
|
||||
.adv_settings
|
||||
%h6 Features:
|
||||
%fieldset.adv_settings
|
||||
%legend Features:
|
||||
|
||||
.clearfix
|
||||
= f.label :issues_enabled, "Issues"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue