created template selecting
This commit is contained in:
16
web/app/controllers/configuration_files_controller.rb
Normal file
16
web/app/controllers/configuration_files_controller.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
class ConfigurationFilesController < ApplicationController
|
||||
before_filter :selected_server, only: [:new, :edit]
|
||||
|
||||
active_scaffold :"configuration_file" do |conf|
|
||||
conf.columns[:file_type].form_ui = :select
|
||||
end
|
||||
|
||||
def selected_server
|
||||
@server = Server.find(params[:server_id])
|
||||
@templates = ConfigurationTemplate.order(:name).all
|
||||
end
|
||||
|
||||
def create_from_template
|
||||
template = ConfigurationTemplate.find(params[:template_id])
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user