Project

General

Profile

Bug #82

Re-organize "Classes" on Create Host page

Added by Josh Baird almost 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Team Backlog:
Fixed in Releases:
Found in Releases:

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.

dragndrop.jpg View dragndrop.jpg 10.3 KB Josh Baird, 11/18/2009 04:11 PM
Dragndrop

Associated revisions

History

#1 Updated by Josh Baird almost 10 years ago

I have uploaded an example screenshot of one way to organize this.

#2 Updated by Ohad Levy over 9 years ago

  • 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

#3 Updated by Josh Baird over 9 years ago

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.

#4 Updated by Josh Baird over 9 years ago

Also, this feature should be implemented on the Foreman Groups page.

#5 Updated by Ohad Levy over 9 years ago

  • Status changed from Feedback to Ready For Testing
  • Target version set to 0.1-3
  • % Done changed from 0 to 90

#6 Updated by Ohad Levy over 9 years ago

  • % Done changed from 90 to 100

#7 Updated by Ohad Levy over 9 years ago

  • Status changed from Ready For Testing to Closed
  • Assignee changed from Josh Baird to Ohad Levy

Also available in: Atom PDF