I have a field in form like this:
= f.check_box :feedback_required, label: "Feedback required?"
Now instead of a checkbox, I want a switch with the label "Feedback required?"
How do I implement this switch in my form:
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" id="switch1" name="example">
<label class="custom-control-label" for="switch1">Toggle me</label>
</div>
This code works with Bootstrap 4.5
in haml: