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"
...@@ -172,12 +172,15 @@ staticAnalysisView.prototype.renderModules = function () { ...@@ -172,12 +172,15 @@ staticAnalysisView.prototype.renderModules = function () {
style="vertical-align:bottom" style="vertical-align:bottom"
onclick="${function (event) { self.checkModule(event) }}" onclick="${function (event) { self.checkModule(event) }}"
> >
<label for="staticanalysismodule_${categoryId}_${i}" class="pl-2 mb-1">
${item.name} ${item.name}
${item.description} ${item.description}
</label> </label>
</div>
` `
}) })
return yo`<div class="${css.analysisModulesContainer} list-group-item py-1"> return yo`
<div class="${css.analysisModulesContainer} list-group-item py-1">
<label class="${css.label}"><b>${category[0].categoryDisplayName}</b></label> <label class="${css.label}"><b>${category[0].categoryDisplayName}</b></label>
${entriesDom} ${entriesDom}
</div>` </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