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