Make transfer action in project controller
This commit is contained in:
parent
ff35b37fd2
commit
e292d7c17b
6 changed files with 11 additions and 26 deletions
|
@ -107,8 +107,9 @@
|
|||
- if can?(current_user, :change_namespace, @project)
|
||||
.ui-box.ui-box-danger
|
||||
%h5.title Transfer project
|
||||
.errors-holder
|
||||
.form-holder
|
||||
= form_for(@project, remote: true, html: { class: 'transfer-project' }) do |f|
|
||||
= form_for(@project, url: transfer_project_path(@project), remote: true, html: { class: 'transfer-project' }) do |f|
|
||||
.control-group
|
||||
= f.label :namespace_id do
|
||||
%span Namespace
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
:plain
|
||||
$(".save-project-loader").replaceWith(errorMessage('#{escape_javascript(@error.message)}'));
|
Loading…
Add table
Add a link
Reference in a new issue