Exemplo n.º 1
0
<h3>Select from an Existing Asset</h3>
<form id="assets" class="searchForm" action="./admin/assets/element/<?php 
echo $PARAMS['id'];
?>
" method="post">

    <div class="row">
        <div class="col-xs-12 col-sm-5 col-md-5 col-lg-8">
        
            <ul class="list-filters list-unstyled list-inline">
                <li>
                    <select name="filter[type]" class="form-control" onchange="this.form.submit();">
                        <option value="">All Types</option>
                        <?php 
foreach (\Dsc\Mongo\Collections\Assets::distinctTypes() as $type) {
    ?>
                        	<option value="<?php 
    echo $type;
    ?>
" <?php 
    if ($state->get('filter.type') == $type) {
        echo "selected='selected'";
    }
    ?>
><?php 
    echo $type;
    ?>
</option>
                        <?php 
}
Exemplo n.º 2
0
                            <div class="form-group">
                                <label>Tags: Enter multiple tags, separated by a comma</label>
                                <input name="tags" data-tags='<?php 
echo json_encode(\Dsc\Mongo\Collections\Assets::distinctTags());
?>
' value="<?php 
echo implode(",", (array) $flash->old('tags'));
?>
" type="text" name="tags" class="form-control ui-select2-tags" />
                            </div>
                            <!-- /.form-group -->
                            
                            <div class="form-group">
                                <label>Type</label>
                                <input name="type" class="form-control ui-select2" data-tags='<?php 
echo json_encode(\Dsc\Mongo\Collections\Assets::distinctTypes());
?>
' data-maximum="1" value="<?php 
echo $flash->old('type');
?>
" />
                            </div>
                            <!-- /.form-group -->
                            
                        </div>
                        <!-- /.col-md-10 -->
                    </div>
                    <!-- /.row -->
                    
                    <hr/>