Improvements to field views and minor updates
This commit is contained in:
@@ -4,12 +4,13 @@
|
||||
<!-- name = account name -->
|
||||
<!-- ajaxurl = ajax URL -->
|
||||
<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 col-md-4">
|
||||
<input type="text" id="<?php echo $data['field']; ?>_label" value="<?php echo $data['name']; ?>" class="form-control" autocomplete="off" placeholder="<?php echo $data['text']; ?>">
|
||||
<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-5'); ?>">
|
||||
<input type="text" id="<?php echo Arr::get($data,'field'); ?>_label" value="<?php echo Arr::get($data,'name'); ?>" class="form-control" placeholder="<?php echo Arr::get($data,'text'); ?>" autocomplete="off" <?php echo Arr::convert(Arr::get($data,'attr',[])); ?>>
|
||||
<span class="input-group-addon"><i class="fa fa-refresh" name="account_lookup"></i></span>
|
||||
</div>
|
||||
<input type="hidden" name="<?php echo $data['field']; ?>" value="<?php echo $data['value']; ?>">
|
||||
<span class="col-md-offset-<?php echo Arr::get($data,'classlabelnum',2); ?> help-block with-errors"></span>
|
||||
<input type="hidden" name="<?php echo Arr::get($data,'field'); ?>" value="<?php echo Arr::get($data,'value'); ?>">
|
||||
</div>
|
||||
|
||||
<?php
|
||||
@@ -20,7 +21,7 @@ $(document).ready(function() {
|
||||
$("input[id=account_id_label]").typeahead({
|
||||
minLength: 2,
|
||||
source: function (query,process) {
|
||||
search("'.$data['ajaxurl'].'",query,process,"account_lookup");
|
||||
search("'.Arr::get($data,'ajaxurl').'",query,process,"account_lookup");
|
||||
},
|
||||
|
||||
matcher: function () { return true; },
|
||||
|
Reference in New Issue
Block a user