1- @(runningExtractors: List[ExtractorInfo], selectedExtractors: List[String], groups: Map[String, ExtractionGroup],
2- showOptional: Map[String,Boolean] = Map("additionalInfo"-> false, "processTriggers"-> false, "labelSection"-> false, "filterSection"-> false , "ratings"-> false))(implicit user: Option[models.User])
1+ @(runningExtractors: List[ExtractorInfo], selectedExtractors: List[String], groups: Map[String, ExtractionGroup], labels: List[ExtractorsLabel],
2+ showOptional: Map[String,Boolean] = Map("additionalInfo"-> false, "processTriggers"-> false, "labelSection"-> false, "filterSection"-> true , "ratings"-> false))(implicit user: Option[models.User])
33@import _root_.util.Formatters._
44@import helper._
55@import api.Permission
@@ -42,15 +42,11 @@ <h1>Extractor Catalog</h1>
4242 < div class ="btn-group " data-toggle ="buttons ">
4343
4444 <!-- Disguised checkboxes as buttons -->
45- < label class ="btn btn-primary active ">
46- < input type ="checkbox " autocomplete ="off " checked > Image
47- </ label >
48- < label class ="btn btn-primary active ">
49- < input type ="checkbox " autocomplete ="off " checked > Video
50- </ label >
51- < label class ="btn btn-primary active ">
52- < input type ="checkbox " autocomplete ="off " checked > Audio
53- </ label >
45+ @for(label < - labels) {
46+ < label class ="btn btn-primary active ">
47+ < input type ="checkbox " autocomplete ="off " checked > @label.name
48+ </ label >
49+ }
5450 </ div >
5551 </ div >
5652 </ fieldset >
@@ -355,4 +351,4 @@ <h1>Extractor Catalog</h1>
355351 } ) ;
356352 </ script >
357353 }
358- }
354+ }
0 commit comments