@@ -26,7 +26,7 @@ |
||
26 | 26 | <i class="fa fa-pencil-square-o"></i> {{cbTrans("text_form")}}</div> |
27 | 27 | <div class="panel-body child-form-area"> |
28 | 28 | @foreach($formInput['columns'] as $col) |
29 | - <?php $name_column = $name.$col['name'];?> |
|
29 | + <?php $name_column = $name.$col['name']; ?> |
|
30 | 30 | <div class='form-group'> |
31 | 31 | @if($col['type']!='hidden') |
32 | 32 | <label class="control-label col-sm-2">{{$col['label']}} |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | $options = []; |
3 | -if (! $formInput['options']['parent_select'] && @$formInput['options']['query']): |
|
3 | +if (!$formInput['options']['parent_select'] && @$formInput['options']['query']): |
|
4 | 4 | foreach (DB::select(DB::raw($formInput['options']['query'])) as $index => $d) { |
5 | 5 | $options[$i]['select'] = ($value == $d->{$formInput['options']['field_value']}) ? "selected" : ""; |
6 | 6 | if ($formInput['options']['format']) { |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -$default = ! empty($formInput['placeholder']) ? $formInput['placeholder'] : cbTrans('text_prefix_option')." ".$label; |
|
2 | +$default = !empty($formInput['placeholder']) ? $formInput['placeholder'] : cbTrans('text_prefix_option')." ".$label; |
|
3 | 3 | $query = str_random(5); |
4 | 4 | \Cache::forget($query); |
5 | 5 | \Cache::forever($query, $formInput['options']['query']); |
@@ -15,7 +15,7 @@ |
||
15 | 15 | sendAndTerminate($redir); |
16 | 16 | } |
17 | 17 | |
18 | - if ($ro['options']['allowed_filetype'] && ! in_array($ext, $ro['options']['allowed_filetype'])) { |
|
18 | + if ($ro['options']['allowed_filetype'] && !in_array($ext, $ro['options']['allowed_filetype'])) { |
|
19 | 19 | $redir = redirect()->back()->with([ |
20 | 20 | 'message_type' => 'warning', |
21 | 21 | 'message' => 'The filetype for '.$name.' is not allowed', |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | -if (! $formInput['options']['parent_select']) { |
|
2 | +if (!$formInput['options']['parent_select']) { |
|
3 | 3 | |
4 | 4 | if (@$formInput['options']['table']): |
5 | 5 |
@@ -1,4 +1,4 @@ |
||
1 | -<?php $default = ! empty($formInput['placeholder']) ? $formInput['placeholder'] : cbTrans('text_prefix_option')." ".$label;?> |
|
1 | +<?php $default = !empty($formInput['placeholder']) ? $formInput['placeholder'] : cbTrans('text_prefix_option')." ".$label; ?> |
|
2 | 2 | @if($formInput['options']['parent_select']) |
3 | 3 | <script type="text/javascript"> |
4 | 4 | $(function () { |
@@ -43,16 +43,16 @@ |
||
43 | 43 | @if($row->{$formInput['options']['latitude']} && $row->{$formInput['options']['longitude']}) |
44 | 44 | var map = new google.maps.Map(document.getElementById('map-{{$name}}'), { |
45 | 45 | center: { |
46 | - lat: <?php echo $row->{$formInput['options']['latitude']} ?: 0;?>, |
|
47 | - lng: <?php echo $row->{$formInput['options']['longitude']} ?: 0;?> }, |
|
46 | + lat: <?php echo $row->{$formInput['options']['latitude']} ?: 0; ?>, |
|
47 | + lng: <?php echo $row->{$formInput['options']['longitude']} ?: 0; ?> }, |
|
48 | 48 | zoom: 12 |
49 | 49 | }); |
50 | 50 | var infoWindow = new google.maps.InfoWindow(); |
51 | 51 | |
52 | 52 | var marker = new google.maps.Marker({ |
53 | 53 | position: { |
54 | - lat: <?php echo $row->{$formInput['options']['latitude']} ?: 0;?>, |
|
55 | - lng: <?php echo $row->{$formInput['options']['longitude']} ?: 0;?> }, |
|
54 | + lat: <?php echo $row->{$formInput['options']['latitude']} ?: 0; ?>, |
|
55 | + lng: <?php echo $row->{$formInput['options']['longitude']} ?: 0; ?> }, |
|
56 | 56 | map: map, |
57 | 57 | title: '{{$value}}' |
58 | 58 | }); |
@@ -104,8 +104,8 @@ |
||
104 | 104 | var map = new google.maps.Map(document.getElementById('map-{{$name}}'), { |
105 | 105 | @if($row->{$formInput['options']['latitude']} && $row->{$formInput['options']['longitude']}) |
106 | 106 | center: { |
107 | - lat: <?php echo $row->{$formInput['options']['latitude']} ?: 0;?>, |
|
108 | - lng: <?php echo $row->{$formInput['options']['longitude']} ?: 0;?> }, |
|
107 | + lat: <?php echo $row->{$formInput['options']['latitude']} ?: 0; ?>, |
|
108 | + lng: <?php echo $row->{$formInput['options']['longitude']} ?: 0; ?> }, |
|
109 | 109 | @endif |
110 | 110 | zoom: 12 |
111 | 111 | }); |
@@ -1,4 +1,4 @@ discard block |
||
1 | -<?php $default = ! empty($formInput['default']) ? $formInput['default'] : trans('crudbooster.text_prefix_option')." ".$label;?> |
|
1 | +<?php $default = !empty($formInput['default']) ? $formInput['default'] : trans('crudbooster.text_prefix_option')." ".$label; ?> |
|
2 | 2 | @if($formInput['parent_select']) |
3 | 3 | |
4 | 4 | @push('bottom') |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | <select class='form-control' id="{{$name}}" data-value='{{$value}}' {{$required}} {!!$placeholder!!} {{$readonly}} {{$disabled}} name="{{$name}}"> |
47 | 47 | <option value=''>{{$default}}</option> |
48 | 48 | <?php |
49 | - if (! $formInput['parent_select']) { |
|
49 | + if (!$formInput['parent_select']) { |
|
50 | 50 | if (@$formInput['dataquery']): |
51 | 51 | |
52 | 52 | $query = DB::select(DB::raw($formInput['dataquery'])); |