Improvements to field views and minor updates

This commit is contained in:
Deon George
2016-08-25 23:24:44 +10:00
parent 2b48dde8f7
commit 68d96ca85f
14 changed files with 86 additions and 47 deletions

View File

@@ -1,9 +1,10 @@
<!-- field = field_name -->
<!-- text = field_text -->
<!-- field = field name -->
<!-- text = field text -->
<!-- value = value -->
<div class="form-group">
<label for="cert" class="col-md-2 control-label"><?php echo $data['text']; ?></label>
<div class="<?php echo $data['class']; ?>" style="padding-left: 0px">
<input type="text" class="form-control" id="cert" name="<?php echo $data['field']; ?>" placeholder="<?php echo $data['text']; ?>" value="<?php echo $data['value']; ?>" >
<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="<?php echo Arr::get($data,'class','col-md-6'); ?>" style="padding-left: 0px">
<input type="text" id="<?php echo Arr::get($data,'field'); ?>_label" name="<?php echo Arr::get($data,'field'); ?>" value="<?php echo Arr::get($data,'value'); ?>" class="form-control" placeholder="<?php echo Arr::get($data,'text'); ?>" autocomplete="off" <?php echo Arr::convert(Arr::get($data,'attr',[])); ?>>
</div>
<span class="col-md-offset-<?php echo Arr::get($data,'classlabelnum',2); ?> help-block with-errors"></span>
</div>