Commit a86a7ba8 authored by LianaHus's avatar LianaHus Committed by Liana Husikyan

fixed checkboxes of sections

parent fe9fadd3
...@@ -162,7 +162,7 @@ staticAnalysisView.prototype.renderModules = function () { ...@@ -162,7 +162,7 @@ staticAnalysisView.prototype.renderModules = function () {
var category = groupedModules[categoryId] var category = groupedModules[categoryId]
var entriesDom = category.map((item, i) => { var entriesDom = category.map((item, i) => {
return yo` return yo`
<label class="${css.label} form-check-label"> <div class="${css.label}">
<input id="staticanalysismodule_${categoryId}_${i}" <input id="staticanalysismodule_${categoryId}_${i}"
type="checkbox" type="checkbox"
class="staticAnalysisItem" class="staticAnalysisItem"
...@@ -171,16 +171,19 @@ staticAnalysisView.prototype.renderModules = function () { ...@@ -171,16 +171,19 @@ staticAnalysisView.prototype.renderModules = function () {
checked="true" checked="true"
style="vertical-align:bottom" style="vertical-align:bottom"
onclick="${function (event) { self.checkModule(event) }}" onclick="${function (event) { self.checkModule(event) }}"
> >
${item.name} <label for="staticanalysismodule_${categoryId}_${i}" class="pl-2 mb-1">
${item.description} ${item.name}
</label> ${item.description}
</label>
</div>
` `
}) })
return yo`<div class="${css.analysisModulesContainer} list-group-item py-1"> return yo`
<label class="${css.label}"><b>${category[0].categoryDisplayName}</b></label> <div class="${css.analysisModulesContainer} list-group-item py-1">
${entriesDom} <label class="${css.label}"><b>${category[0].categoryDisplayName}</b></label>
</div>` ${entriesDom}
</div>`
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment