This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
lnapp/views/field/select.php

12 lines
496 B
PHP

<!-- field = field name -->
<!-- text = field text -->
<!-- value = array of values -->
<!-- default = value -->
<!-- class = col-md class -->
<div class="form-group">
<label for="<?php echo $data['field']; ?>_label" class="col-md-2 control-label"><?php echo $data['text']; ?></label>
<div class="input-group <?php echo $data['class']; ?>">
<?php echo Form::select($data['field'],$data['value'],$data['default'],array('class'=>'form-control','placeholder'=>$data['text'])); ?>
</div>
</div>