12 lines
660 B
PHP
12 lines
660 B
PHP
<!-- field = field name -->
|
|
<!-- text = field text -->
|
|
<!-- value = array of values -->
|
|
<!-- default = value -->
|
|
<div class="form-group">
|
|
<label for="<?php echo Arr::get($data,'field'); ?>_label" class="col-md-<?php echo Arr::get($data,'classlabelnum',2); ?> control-label"><?php echo Arr::get($data,'text'); ?></label>
|
|
<div class="input-group <?php echo Arr::get($data,'class','col-md-2'); ?>">
|
|
<?php echo Form::select($data['field'],$data['value'],$data['default'],array('class'=>'form-control','placeholder'=>$data['text'])); ?>
|
|
</div>
|
|
<span class="col-md-offset-<?php echo Arr::get($data,'classlabelnum',2); ?> help-block with-errors"></span>
|
|
</div>
|