From 543b6b076941955bd144fc47f93ef4f9777423c6 Mon Sep 17 00:00:00 2001 From: Vitaliy Date: Mon, 5 Oct 2015 19:31:06 +0300 Subject: [PATCH] Importers CRUD --- backend/assets/MyAsset.php | 1 + backend/views/accounts/_form.php | 21 +-------------------- backend/web/js/angukar_js.js | 17 +++++++++++++++++ 3 files changed, 19 insertions(+), 20 deletions(-) create mode 100644 backend/web/js/angukar_js.js diff --git a/backend/assets/MyAsset.php b/backend/assets/MyAsset.php index 896300e..f1b728b 100644 --- a/backend/assets/MyAsset.php +++ b/backend/assets/MyAsset.php @@ -39,6 +39,7 @@ class MyAsset extends AssetBundle 'js/pages/dashboard.js', 'js/main.js', 'js/angular.js', + 'js/angular_js.js', ]; public $depends = [ diff --git a/backend/views/accounts/_form.php b/backend/views/accounts/_form.php index 55d6dfe..692dd0f 100644 --- a/backend/views/accounts/_form.php +++ b/backend/views/accounts/_form.php @@ -8,26 +8,7 @@ use yii\helpers\ArrayHelper; /* @var $model common\models\Accounts */ /* @var $form yii\widgets\ActiveForm */ ?> - +
diff --git a/backend/web/js/angukar_js.js b/backend/web/js/angukar_js.js new file mode 100644 index 0000000..c5bdd70 --- /dev/null +++ b/backend/web/js/angukar_js.js @@ -0,0 +1,17 @@ +var app = angular.module("BackendApp", []); + +app.controller("SampleAppCtrl", function ($scope) { + $scope.hideElem1 = true; + $scope.hideElem2 = false; + $scope.buttons = [ + {status: true, data:'Основные данные'}, + {status: false, data:'Юридическое лицо'} + + ]; + $scope.ShowMe =function(item){ + $scope.buttons.forEach(function(element){ + element.status = false; + }); + item.status = true; + } +}); \ No newline at end of file -- libgit2 0.21.4