|
|
|
@ -37,6 +37,19 @@ class OrganizationsController < ApplicationController
|
|
|
|
|
@organization = Organization.new
|
|
|
|
|
render :layout => 'new_base'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def edit
|
|
|
|
|
@organization = Organization.find(params[:id])
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def destroy
|
|
|
|
|
@organization = Organization.find(params[:id])
|
|
|
|
|
@organization.destroy
|
|
|
|
|
respond_to do |format|
|
|
|
|
|
format.html{ redirect_to admin_organization_path }
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def create
|
|
|
|
|
@organization = Organization.new
|
|
|
|
|
@organization.name = params[:organization][:name]
|
|
|
|
@ -142,6 +155,12 @@ class OrganizationsController < ApplicationController
|
|
|
|
|
# end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def cancel_homepage
|
|
|
|
|
@org = Organization.find(params[:id])
|
|
|
|
|
@org.home_id = nil
|
|
|
|
|
@org.save
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def autocomplete_search
|
|
|
|
|
@project = Project.find(params[:project_id])
|
|
|
|
|
#@flag = params[:flag] || false
|
|
|
|
|