@@ -28,7 +28,7 @@ |
||
28 | 28 | [['text' => __('Name')], ['text' => $widget->getLocaleName()]], |
29 | 29 | [['text' => __('System name')], ['text' => $widget->sys_name]], |
30 | 30 | [['text' => __('Last update')], ['text' => Date::convertToDatetime($widget->updated_at, Date::FORMAT_TO_SECONDS)]], |
31 | - [['text' => __('Status')], ['text' => !(bool)$widget->disabled ? 'On' : 'Off'], 'properties' => ['class' => !(bool)$widget->disabled ? 'alert-success' : 'alert-danger']] |
|
31 | + [['text' => __('Status')], ['text' => !(bool) $widget->disabled ? 'On' : 'Off'], 'properties' => ['class' => !(bool) $widget->disabled ? 'alert-success' : 'alert-danger']] |
|
32 | 32 | ])->display() ?> |
33 | 33 | </div> |
34 | 34 |
@@ -4,6 +4,6 @@ |
||
4 | 4 | |
5 | 5 | ?> |
6 | 6 | <?php if (isset($controller)): ?> |
7 | - <a href="<?= Url::to($controller . '/index') ?>"><i class="fa fa-cogs"></i></a> |
|
7 | + <a href="<?= Url::to($controller.'/index') ?>"><i class="fa fa-cogs"></i></a> |
|
8 | 8 | <a href="<?= Url::to('widget/turn', [$controller]) ?>"><i class="fa fa-power-off"></i></a> |
9 | 9 | <?php endif; ?> |
10 | 10 | \ No newline at end of file |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | ?> |
32 | 32 | |
33 | 33 | <?php |
34 | -foreach($records as $role) { |
|
34 | +foreach ($records as $role) { |
|
35 | 35 | $permissions = explode(';', $role->permissions); |
36 | 36 | $permissionsLabel = null; |
37 | 37 | foreach ($permissions as $perm) { |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | } else { |
44 | 44 | $labelMark = 'badge-secondary'; |
45 | 45 | } |
46 | - $permissionsLabel .= '<span class="badge ' . $labelMark . '">' . $perm . '</span> '; |
|
46 | + $permissionsLabel .= '<span class="badge '.$labelMark.'">'.$perm.'</span> '; |
|
47 | 47 | } |
48 | 48 | $table->row([ |
49 | 49 | ['text' => $role->name], |
@@ -28,7 +28,7 @@ |
||
28 | 28 | [['text' => __('Name')], ['text' => $app->getLocaleName()]], |
29 | 29 | [['text' => __('System name')], ['text' => $app->sys_name]], |
30 | 30 | [['text' => __('Last update')], ['text' => Date::convertToDatetime($app->updated_at, Date::FORMAT_TO_SECONDS)]], |
31 | - [['text' => __('Status')], ['text' => !(bool)$app->disabled ? 'On' : 'Off'], 'properties' => ['class' => !(bool)$app->disabled ? 'alert-success' : 'alert-danger']] |
|
31 | + [['text' => __('Status')], ['text' => !(bool) $app->disabled ? 'On' : 'Off'], 'properties' => ['class' => !(bool) $app->disabled ? 'alert-success' : 'alert-danger']] |
|
32 | 32 | ])->display() ?> |
33 | 33 | </div> |
34 | 34 |
@@ -13,11 +13,14 @@ |
||
13 | 13 | |
14 | 14 | <?php if (App::$Captcha->isFull()): ?> |
15 | 15 | <div class="col-md-9 offset-md-3"><?= $html ?></div> |
16 | -<?php else: ?> |
|
16 | +<?php else { |
|
17 | + : ?> |
|
17 | 18 | <div class="row"> |
18 | 19 | <div class="col-md-9 offset-md-3"> |
19 | 20 | <img src="<?= $html ?>" alt="captcha" onClick="this.src='<?=$html?>&rnd='+Math.random()" /> |
20 | 21 | </div> |
21 | 22 | </div> |
22 | 23 | <?= $form->fieldset()->text($name, null, __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')) ?> |
23 | -<?php endif; ?> |
|
24 | 24 | \ No newline at end of file |
25 | +<?php endif; |
|
26 | +} |
|
27 | +?> |
|
25 | 28 | \ No newline at end of file |
@@ -7,7 +7,7 @@ |
||
7 | 7 | /** @var array $url */ |
8 | 8 | /** @var array $properties */ |
9 | 9 | |
10 | -$rndId = 'btn_selectize_submit_' . mt_rand(999, 999999); |
|
10 | +$rndId = 'btn_selectize_submit_'.mt_rand(999, 999999); |
|
11 | 11 | $properties['id'] = $rndId; |
12 | 12 | |
13 | 13 | echo (new \Ffcms\Templex\Helper\Html\Dom())->button(function() use ($text) { |
@@ -42,10 +42,10 @@ |
||
42 | 42 | ['text' => $user->login], |
43 | 43 | ['text' => $user->role->name], |
44 | 44 | ['text' => Date::convertToDatetime($user->created_at, Date::FORMAT_TO_DAY)], |
45 | - ['text' => Url::a(['user/update', [$user->id]], '<i class="fa fa-pencil fa-lg"></i>', ['html' => true]) . |
|
45 | + ['text' => Url::a(['user/update', [$user->id]], '<i class="fa fa-pencil fa-lg"></i>', ['html' => true]). |
|
46 | 46 | Url::a(['user/delete', [$user->id]], ' <i class="fa fa-trash-o fa-lg"></i>', ['html' => true]), |
47 | 47 | 'properties' => ['class' => 'text-center'], 'html' => true], |
48 | - 'properties' => ['class' => 'checkbox-row' . ($user->approve_token !== null ? ' bg-warning' : null)] |
|
48 | + 'properties' => ['class' => 'checkbox-row'.($user->approve_token !== null ? ' bg-warning' : null)] |
|
49 | 49 | |
50 | 50 | ]); |
51 | 51 | } |
@@ -7,7 +7,7 @@ |
||
7 | 7 | <?php |
8 | 8 | $menu = $this->bootstrap()->nav('ul', ['class' => 'nav-tabs']) |
9 | 9 | ->menu(['text' => __('User list'), 'link' => ['user/index']]); |
10 | -if ((int)$configs['registrationType'] === 0) { |
|
10 | +if ((int) $configs['registrationType'] === 0) { |
|
11 | 11 | $menu->menu(['text' => __('Invitation list'), 'link' => ['user/invitelist']]); |
12 | 12 | } |
13 | 13 | $menu->menu(['text' => __('Role management'), 'link' => ['user/rolelist']]) |
@@ -13,11 +13,14 @@ |
||
13 | 13 | |
14 | 14 | <?php if (App::$Captcha->isFull()): ?> |
15 | 15 | <div class="col-md-9 offset-md-3"><?= $html ?></div> |
16 | -<?php else: ?> |
|
16 | +<?php else { |
|
17 | + : ?> |
|
17 | 18 | <div class="row"> |
18 | 19 | <div class="col-md-9 offset-md-3"> |
19 | 20 | <img src="<?= $html ?>" alt="captcha" onClick="this.src='<?=$html?>&rnd='+Math.random()" /> |
20 | 21 | </div> |
21 | 22 | </div> |
22 | 23 | <?= $form->fieldset()->text($name, null, __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')) ?> |
23 | -<?php endif; ?> |
|
24 | 24 | \ No newline at end of file |
25 | +<?php endif; |
|
26 | +} |
|
27 | +?> |
|
25 | 28 | \ No newline at end of file |