2017-11-30 09:00:26 +00:00
|
|
|
class Admin::SitePanelController < OrbitAdminController
|
2017-11-30 10:49:21 +00:00
|
|
|
|
|
|
|
def initialize
|
|
|
|
super
|
|
|
|
@app_title = "client_management"
|
|
|
|
end
|
|
|
|
|
2017-11-30 09:00:26 +00:00
|
|
|
def index
|
|
|
|
@site_construct = SiteConstruct.new
|
|
|
|
end
|
|
|
|
|
|
|
|
def create
|
|
|
|
site_construct = SiteConstruct.new(site_construct_params)
|
2017-11-30 09:59:06 +00:00
|
|
|
site_construct.user_id = current_user.id.to_s
|
2017-11-30 09:00:26 +00:00
|
|
|
site_construct.save
|
|
|
|
redirect_to admin_site_panel_path("msg" => "success")
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def site_construct_params
|
|
|
|
params.require(:site_construct).permit!
|
|
|
|
end
|
|
|
|
end
|