fix: tie label and buttons for switching tree

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2022-05-17 17:37:15 +02:00
parent f3da4bae3e
commit 948f47de3b
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -77,38 +77,46 @@
</form>
</div>
<h4 class="col-auto">Choose a tree:</h4>
<div class="btn-group col-auto" role="group">
<input
type="radio"
class="btn-check"
name="treeSelection"
id="avlTreeBtn"
autocomplete="off"
onclick="switchTree(AVLTree)"
/>
<label class="btn btn-outline-primary" for="avlTreeBtn">AVL</label>
<div class="col-auto">
<div class="row">
<h4 class="col-auto">Choose a tree:</h4>
<div class="btn-group col-auto" role="group">
<input
type="radio"
class="btn-check"
name="treeSelection"
id="avlTreeBtn"
autocomplete="off"
onclick="switchTree(AVLTree)"
/>
<label class="btn btn-outline-primary" for="avlTreeBtn">AVL</label>
<input
type="radio"
class="btn-check"
name="treeSelection"
id="wavlTreeBtn"
checked
autocomplete="off"
onclick="switchTree(WAVLTree)"
/>
<label class="btn btn-outline-primary" for="wavlTreeBtn">WAVL</label>
<input
type="radio"
class="btn-check"
name="treeSelection"
id="wavlTreeBtn"
checked
autocomplete="off"
onclick="switchTree(WAVLTree)"
/>
<label class="btn btn-outline-primary" for="wavlTreeBtn"
>WAVL</label
>
<input
type="radio"
class="btn-check"
name="treeSelection"
id="ravlTreeBtn"
autocomplete="off"
onclick="switchTree(RAVLTree)"
/>
<label class="btn btn-outline-primary" for="ravlTreeBtn">rAVL</label>
<input
type="radio"
class="btn-check"
name="treeSelection"
id="ravlTreeBtn"
autocomplete="off"
onclick="switchTree(RAVLTree)"
/>
<label class="btn btn-outline-primary" for="ravlTreeBtn"
>rAVL</label
>
</div>
</div>
</div>
</div>