Project

General

Profile

Actions

Bug #82

closed

Re-organize "Classes" on Create Host page

Added by Josh Baird over 14 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Interface
Target version:
Difficulty:
Triaged:
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.


Files

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

Updated by Josh Baird over 14 years ago

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

Actions #2

Updated by Ohad Levy over 14 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
Actions #3

Updated by Josh Baird over 14 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.

Actions #4

Updated by Josh Baird over 14 years ago

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

Actions #5

Updated by Ohad Levy over 14 years ago

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

Updated by Ohad Levy over 14 years ago

  • % Done changed from 90 to 100
Actions #7

Updated by Ohad Levy over 14 years ago

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

Also available in: Atom PDF