Deprecate code for Project. Use title and path
This commit is contained in:
parent
ab9d023651
commit
c50ec72b52
22 changed files with 79 additions and 83 deletions
|
@ -27,7 +27,7 @@
|
|||
= link_to admin_projects_path do
|
||||
%h1= Project.count
|
||||
%hr
|
||||
= link_to 'New Project', new_admin_project_path, class: "btn small"
|
||||
= link_to 'New Project', new_project_path, class: "btn small"
|
||||
.span4
|
||||
.ui-box
|
||||
%h5 Users
|
||||
|
|
|
@ -8,12 +8,12 @@
|
|||
.input
|
||||
= f.text_field :name, placeholder: "Example Group", class: "xxlarge"
|
||||
.clearfix
|
||||
= f.label :code do
|
||||
= f.label :path do
|
||||
URL
|
||||
.input
|
||||
.input-prepend
|
||||
%span.add-on= web_app_url + 'groups/'
|
||||
= f.text_field :code, placeholder: "example"
|
||||
= f.text_field :path, placeholder: "example"
|
||||
|
||||
.form-actions
|
||||
= f.submit 'Save group', class: "btn save-btn"
|
||||
|
|
|
@ -18,13 +18,6 @@
|
|||
Path
|
||||
.input
|
||||
= text_field_tag :ppath, @project.path_to_repo, class: "xlarge", disabled: true
|
||||
.clearfix
|
||||
= f.label :code do
|
||||
URL
|
||||
.input
|
||||
.input-prepend
|
||||
%span.add-on= web_app_url
|
||||
= f.text_field :code, placeholder: "example"
|
||||
|
||||
- unless project.new_record?
|
||||
.clearfix
|
||||
|
|
|
@ -19,13 +19,6 @@
|
|||
.input-prepend
|
||||
%strong
|
||||
= text_field_tag :ppath, @project.path_to_repo, class: "xlarge", disabled: true
|
||||
.clearfix
|
||||
= f.label :code do
|
||||
URL
|
||||
.input
|
||||
.input-prepend
|
||||
%span.add-on= web_app_url
|
||||
= f.text_field :code, placeholder: "example"
|
||||
|
||||
- unless @project.new_record? || @project.heads.empty?
|
||||
.clearfix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue