<script>
    function showAllValidations() {
    $(".hide-succeeded-validation-target-child").parent().fadeIn();
    $(".hide-succeeded-validation-target").fadeIn();
  }

    function hideSucceededValidations() {
    $(".hide-succeeded-validation-target-child").parent().fadeOut();
    $(".hide-succeeded-validation-target").fadeOut();
  }
</script>

<div class="card bg-light mb-3">
  <div class="card-header p-2">
    <strong>Actions</strong>
  </div>
  <div class="card-body p-3">
{#    <button type="button" class="btn btn-danger btn-sm" onClick="toggleHideSucceededValidations()">#}
{#      Failed Only#}
{#    </button>#}
    <p class="card-text col-12 p-0 mb-1">
      Validation Filter:
    </p>
    <div class="d-flex justify-content-center">
      <div class="btn-group btn-group-toggle" data-toggle="buttons">
        <label class="btn btn-info btn-sm active" onclick="showAllValidations()">
          <input type="radio" name="options" id="option1" autocomplete="off" checked> Show All
        </label>
        <label class="btn btn-info btn-sm" onclick="hideSucceededValidations()">
          <input type="radio" name="options" id="option2" autocomplete="off"> Failed Only
        </label>
      </div>
    </div>
  </div>
</div>