diff --git a/rudder-web/src/main/scala/com/normation/rudder/web/components/DirectiveEditForm.scala b/rudder-web/src/main/scala/com/normation/rudder/web/components/DirectiveEditForm.scala index b7d804b22c5..1078951bb83 100644 --- a/rudder-web/src/main/scala/com/normation/rudder/web/components/DirectiveEditForm.scala +++ b/rudder-web/src/main/scala/com/normation/rudder/web/components/DirectiveEditForm.scala @@ -276,6 +276,7 @@ class DirectiveEditForm( & "#techniqueDescription *" #> technique.description & "#nameField" #> {piName.toForm_!} & + "#tagField *" #> tagsEditForm.cfTagsDirectiveConfiguration & "#rudderID *" #> {directive.id.value} & "#shortDescriptionField" #> piShortDescription.toForm_! & "#longDescriptionField" #> piLongDescription.toForm_! & @@ -423,6 +424,8 @@ class DirectiveEditForm( override def subContainerClassName = "col-xs-12" } + def tagsEditForm = new TagsEditForm() + def showDeprecatedVersion (version : TechniqueVersion) = { val deprecationInfo = fullActiveTechnique.techniques(version).deprecrationInfo match { case Some(_) => "(deprecated)" diff --git a/rudder-web/src/main/scala/com/normation/rudder/web/components/RuleCompliance.scala b/rudder-web/src/main/scala/com/normation/rudder/web/components/RuleCompliance.scala index 5a29cacfede..a3226c5549b 100644 --- a/rudder-web/src/main/scala/com/normation/rudder/web/components/RuleCompliance.scala +++ b/rudder-web/src/main/scala/com/normation/rudder/web/components/RuleCompliance.scala @@ -97,12 +97,13 @@ class RuleCompliance ( private[this] val getAllNodeInfos = RudderConfig.nodeInfoService.getAll _ import RuleCompliance._ - + def tagsEditForm = new TagsEditForm() def display : NodeSeq = { ( "#ruleName" #> rule.name & "#ruleCategory" #> categoryService.shortFqdn(rootRuleCategory, rule.categoryId) & + "#tagField *" #> tagsEditForm.cfTagsRuleConfiguration & "#rudderID" #> rule.id.value & "#ruleShortDescription" #> rule.shortDescription & "#ruleLongDescription" #> rule.longDescription & diff --git a/rudder-web/src/main/scala/com/normation/rudder/web/components/RuleDisplayer.scala b/rudder-web/src/main/scala/com/normation/rudder/web/components/RuleDisplayer.scala index 18b0b77b53b..8384e7e41f6 100644 --- a/rudder-web/src/main/scala/com/normation/rudder/web/components/RuleDisplayer.scala +++ b/rudder-web/src/main/scala/com/normation/rudder/web/components/RuleDisplayer.scala @@ -124,6 +124,17 @@ class RuleDisplayer ( , () => refreshGrid ) ) } + + def includeSubCategory = { + SHtml.ajaxCheckbox( + true + , value => OnLoad(JsRaw(s""" + include=${value}; + filterTableInclude('#grid_rules_grid_zone',filter,include); """)) & check() + , ("id","includeCheckbox") + ) + } + def viewCategories(ruleCategoryTree : RuleCategoryTree) : NodeSeq = { val actionButton = @@ -139,6 +150,7 @@ class RuleDisplayer ( {actionButton} +