Commit 543b6b076941955bd144fc47f93ef4f9777423c6
1 parent
b8d15024
Importers CRUD
Showing
3 changed files
with
19 additions
and
20 deletions
Show diff stats
backend/assets/MyAsset.php
backend/views/accounts/_form.php
... | ... | @@ -8,26 +8,7 @@ use yii\helpers\ArrayHelper; |
8 | 8 | /* @var $model common\models\Accounts */ |
9 | 9 | /* @var $form yii\widgets\ActiveForm */ |
10 | 10 | ?> |
11 | -<script> | |
12 | - var app = angular.module("BackendApp", []); | |
13 | - | |
14 | - app.controller("SampleAppCtrl", function ($scope) { | |
15 | - $scope.hideElem1 = true; | |
16 | - $scope.hideElem2 = false; | |
17 | - $scope.buttons = [ | |
18 | - {status: true, data:'Основные данные'}, | |
19 | - {status: false, data:'Юридическое лицо'} | |
20 | - | |
21 | - ]; | |
22 | - $scope.ShowMe =function(item){ | |
23 | - $scope.buttons.forEach(function(element){ | |
24 | - element.status = false; | |
25 | - }); | |
26 | - item.status = true; | |
27 | - } | |
28 | - }); | |
29 | - | |
30 | -</script> | |
11 | + | |
31 | 12 | <div ng-controller="SampleAppCtrl" class="Accounts-form"> |
32 | 13 | |
33 | 14 | <?php $form = ActiveForm::begin(); ?> | ... | ... |
1 | +var app = angular.module("BackendApp", []); | |
2 | + | |
3 | +app.controller("SampleAppCtrl", function ($scope) { | |
4 | + $scope.hideElem1 = true; | |
5 | + $scope.hideElem2 = false; | |
6 | + $scope.buttons = [ | |
7 | + {status: true, data:'Основные данные'}, | |
8 | + {status: false, data:'Юридическое лицо'} | |
9 | + | |
10 | + ]; | |
11 | + $scope.ShowMe =function(item){ | |
12 | + $scope.buttons.forEach(function(element){ | |
13 | + element.status = false; | |
14 | + }); | |
15 | + item.status = true; | |
16 | + } | |
17 | +}); | |
0 | 18 | \ No newline at end of file | ... | ... |