@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | $form->addElements($applet->settings()); |
58 | 58 | |
59 | 59 | // form on submit |
60 | - $form->onSubmit(function ($f) { |
|
60 | + $form->onSubmit(function($f) { |
|
61 | 61 | dd('test'); |
62 | 62 | return $f->success( |
63 | 63 | 'Record Added', |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | $bar->add(['Button', 'icon' => 'copy']); |
164 | 164 | $bar->add(['Button', 'icon' => 'eye']); |
165 | 165 | |
166 | - $f = $epesi->add(['Form'/* , 'buttonSave' => false */]);//->setAttr(['method' => 'POST', 'action' => '/test']); |
|
166 | + $f = $epesi->add(['Form'/* , 'buttonSave' => false */]); //->setAttr(['method' => 'POST', 'action' => '/test']); |
|
167 | 167 | |
168 | 168 | $sub_layout = $f->layout->addSubLayout('Generic', false); |
169 | 169 | $cols_layout = $sub_layout->addSubLayout('Columns'); |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | |
186 | 186 | $tabs_layout = $f->layout->addSubLayout('Tabs'); |
187 | 187 | |
188 | - $t1 = $tabs_layout->addTab([ 'Tab 1', 'icon' => 'time', 'label' => ['20', 'floating red']]);//new Label('20', 'floating red')]); |
|
188 | + $t1 = $tabs_layout->addTab(['Tab 1', 'icon' => 'time', 'label' => ['20', 'floating red']]); //new Label('20', 'floating red')]); |
|
189 | 189 | |
190 | 190 | $cols_layout = $t1->addSubLayout('Columns'); |
191 | 191 | $c1 = $cols_layout->addColumn(); |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | $t3->add(['Message', 'Content of this tab will refresh only if you reload entire page']); |
212 | 212 | $t3->add('LoremIpsum'); |
213 | 213 | |
214 | - $f->onSubmit(function ($form) { |
|
214 | + $f->onSubmit(function($form) { |
|
215 | 215 | return [ |
216 | 216 | new \atk4\ui\jsNotify([ |
217 | 217 | 'duration' => 2000, |
@@ -22,11 +22,11 @@ |
||
22 | 22 | } |
23 | 23 | |
24 | 24 | return [ |
25 | - __('DASHBOARD') => count($ret) > 1? [ |
|
25 | + __('DASHBOARD') => count($ret) > 1 ? [ |
|
26 | 26 | 'access' => true, |
27 | 27 | 'group' => $ret, |
28 | 28 | 'weight' => -10000 |
29 | - ]: array_merge(reset($ret), ['weight' => -10000]), |
|
29 | + ] : array_merge(reset($ret), ['weight' => -10000]), |
|
30 | 30 | ]; |
31 | 31 | } |
32 | 32 | } |
33 | 33 | \ No newline at end of file |