mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-12 01:01:32 -04:00
replace the checkbox bootstrap styles with bootstap material v4. Not entirely sure what the issue was, but something in that checkbox decorator code caused reordering / cloning of c-recipe-li to fail
This commit is contained in:
parent
bf27cbb641
commit
9ea785fc63
5 changed files with 52 additions and 28 deletions
|
@ -131,20 +131,21 @@ class HTMLIngredient {
|
|||
</div>`;
|
||||
break;
|
||||
case "boolean":
|
||||
html += `<div class="form-group inline boolean-arg ing-flexible">
|
||||
<div class="checkbox">
|
||||
<label ${this.hint ? `data-toggle="tooltip" title="${this.hint}"` : ""}>
|
||||
<input type="checkbox"
|
||||
class="arg"
|
||||
id="${this.id}"
|
||||
tabindex="${this.tabIndex}"
|
||||
arg-name="${this.name}"
|
||||
${this.value ? " checked" : ""}
|
||||
${this.disabled ? " disabled" : ""}
|
||||
value="${this.name}"> ${this.name}
|
||||
html += `<div class="form-group boolean-arg ing-flexible custom-control custom-checkbox">
|
||||
<input type="checkbox"
|
||||
class="custom-control-input arg"
|
||||
id="${this.id}"
|
||||
tabindex="${this.tabIndex}"
|
||||
arg-name="${this.name}"
|
||||
${this.value ? " checked" : ""}
|
||||
${this.disabled ? " disabled" : ""}
|
||||
value="${this.name}"/>
|
||||
<label class="custom-control-label"
|
||||
${this.hint && `data-toggle="tooltip" title="${this.hint}"`}
|
||||
for="${this.id}">
|
||||
${this.name}
|
||||
</label>
|
||||
</div>
|
||||
</div>`;
|
||||
</div>`
|
||||
break;
|
||||
case "option":
|
||||
html += `<div class="form-group ing-medium">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue