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
|
||||
@@ -0,0 +1,4 @@
|
||||
class ConfigurationTemplatesController < ApplicationController
|
||||
active_scaffold :"configuration_template" do |conf|
|
||||
end
|
||||
end
|
||||
4
web/app/controllers/file_types_controller.rb
Normal file
4
web/app/controllers/file_types_controller.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
class FileTypesController < ApplicationController
|
||||
active_scaffold :"file_type" do |conf|
|
||||
end
|
||||
end
|
||||
4
web/app/controllers/file_versions_controller.rb
Normal file
4
web/app/controllers/file_versions_controller.rb
Normal file
@@ -0,0 +1,4 @@
|
||||
class FileVersionsController < ApplicationController
|
||||
active_scaffold :"file_version" do |conf|
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user