Пример #1
0
<div class="row">
    <div class="col-md-2">
    
        <h3>Admin Tags</h3>
        <p class="help-block">Tags applied to the user for administrative use only</p>
                
    </div>
    <!-- /.col-md-2 -->
                
    <div class="col-md-10">

        <div class="form-group">
            <label>Separate tags by hitting Enter or with a comma.</label>
            <input name="admin_tags" data-tags='<?php 
echo json_encode(\Users\Models\Users::distinctAdminTags());
?>
' value="<?php 
echo implode(",", (array) $flash->old('admin_tags'));
?>
" type="text" class="form-control ui-select2-tags" /> 
        </div>
        <!-- /.form-group -->
    
    </div>
    <!-- /.col-md-10 -->
</div>
<!-- /.row -->
Пример #2
0
                    
                    <div class="row">
                        <div class="col-md-2">
                            <h4>Admin Tags</h4>
                        </div>
                        <div class="col-md-10">
                            <div class="form-group">
                                <select name="filter[admin_tags]" class="form-control ui-select2" multiple>
                                    <option value="--" <?php 
if (in_array('--', (array) $state->get('filter.admin_tags'))) {
    echo 'selected';
}
?>
 >Untagged</option>
                                    <?php 
foreach (\Users\Models\Users::distinctAdminTags() as $tag) {
    ?>
                                        <option <?php 
    if (in_array($tag, (array) $state->get('filter.admin_tags'))) {
        echo 'selected';
    }
    ?>
 value="<?php 
    echo $tag;
    ?>
"><?php 
    echo $tag;
    ?>
</option>
                                    <?php 
}