Bug #82
closed
Re-organize "Classes" on Create Host page
Added by Josh Baird about 15 years ago.
Updated about 15 years ago.
Description
The "Classes" section of the "Create Host" page could use a face lift. It is hard to read, especially with a large number of classes. It would also be nice if you could somehow limit what modules are listed, perhaps modules specific to the OS? I have lots of modules such as "ntp::linux::config," "ntp::linux::service," etc but I'm really only interested in seeing/including "ntp," since everything else (ntp::linux::bleh) is included from the "ntp" class.
I think a good layout would be two boxes (Available and Selected) where you could drag (or move over with an arrow) classes from the available box to the selected box.
Files
I have uploaded an example screenshot of one way to organize this.
- Category set to Web Interface
- Status changed from New to Feedback
- Assignee set to Josh Baird
diff --git a/app/controllers/hosts_controller.rb b/app/controllers/hosts_control
index b7ad2a2..25fbcc6 100644
--- a/app/controllers/hosts_controller.rb
+++ b/app/controllers/hosts_controller.rb
@@ -15,6 +15,7 @@ class HostsController < ApplicationController
config.columns[:domain].form_ui = :select
config.columns[:environment].form_ui = :select
config.columns[:puppetclasses].form_ui = :select
+ config.columns[:puppetclasses].options = { :draggable_lists => {}}
config.columns[:fact_values].association.reverse = :host
config.nested.add_link("Inventory", [:fact_values])
config.columns[:puppetmaster].description = "leave empty if
Excellent! The only thing I would add is a highlight to the currently selected item. I will see if I can manage this via CSS.
Also, this feature should be implemented on the Foreman Groups page.
- Status changed from Feedback to Ready For Testing
- Target version set to 0.1-3
- % Done changed from 0 to 90
- % Done changed from 90 to 100
- Status changed from Ready For Testing to Closed
- Assignee changed from Josh Baird to Ohad Levy
Also available in: Atom
PDF