<?php if(!$no_wrapper){?>
<div class="input-group h-100">
    <?php }
if($icon){?>
    <div class="input-group-text" title="<?php echo_html2view($display_name);?>"><?php echo $icon; ?></div>
<?php }?>
    <div class="d-flex flex-wrap" >
        <?php
        foreach ( $options as $v => $text ) {
            $check_id = preg_replace('/[^a-zA-Z0-9.-_]/', '', $id . $v); ?>
            <div class="m-2">
                <div class="form-check form-check-inline w-100">
                    <input id="<?php echo $check_id ?>"
                           class="form-check-input "
                           type="checkbox"
                           value="<?php echo $v ?>"
                           name="<?php echo $name ?>"
                        <?php echo (in_array($v, $value) ? ' checked="checked" ':'');
                        echo $attr;
                        echo (in_array($v, (array)$disabled_options) ? ' disabled="disabled" ':''); ?>>
                    <label class="form-check-label"
                           for="<?php echo $check_id ?>">
                        <?php echo $text ?>
                    </label>
                </div>
            </div>
        <?php }
        if ( $required) { ?>
            <span class="input-group-text border-0 text-danger">*</span>
        <?php } ?>
    </div>
        <?php
        if(!$no_wrapper){?>
    </div>
<?php } ?>
