Added IMSI detail page
diff --git a/mCordPortal/src/app/view/imsi-details/imsi-details.js b/mCordPortal/src/app/view/imsi-details/imsi-details.js
new file mode 100644
index 0000000..0628601
--- /dev/null
+++ b/mCordPortal/src/app/view/imsi-details/imsi-details.js
@@ -0,0 +1,43 @@
+(function () {
+ 'use strict';
+
+ angular.module('mCord')
+ .directive('imsiDetails', function () {
+ return {
+ restrict: 'E',
+ scope: {},
+ controllerAs: 'vm',
+ templateUrl: 'app/view/imsi-details/imsi-details.tpl.html',
+ controller: function($stateParams, _, Imsi){
+
+ Imsi.get({id: $stateParams.id}).$promise
+ .then((imsi) => {
+ this.imsi = imsi;
+ return imsi.getProfiles()
+ })
+ .then(profiles => {
+ this.data = _.reduce(profiles, (list, p) => {
+ list.push([p.DlAllocRBRate, p.UlAllocRBRate]);
+ return list;
+ }, [])
+ });
+
+ this.config = {
+ exclude: ['UeStatus'],
+ formName: 'updateEnode',
+ actions: [
+ {
+ label: 'Update',
+ icon: 'ok',
+ cb: (enode) => {
+ enode.$save();
+ },
+ class: 'primary-border'
+ }
+ ]
+ };
+
+ }
+ }
+ });
+}());
\ No newline at end of file
diff --git a/mCordPortal/src/app/view/imsi-details/imsi-details.tpl.html b/mCordPortal/src/app/view/imsi-details/imsi-details.tpl.html
new file mode 100644
index 0000000..7238856
--- /dev/null
+++ b/mCordPortal/src/app/view/imsi-details/imsi-details.tpl.html
@@ -0,0 +1,26 @@
+<div class="container-fluid">
+ <div class="row">
+ <div class="col-xs-12">
+ <h1 class="primary">IMSI {{vm.imsi.IMSI}}</h1>
+ </div>
+ <div class="col-sm-12">
+ <xos-form ng-model="vm.imsi" config="vm.config"></xos-form>
+ </div>
+ </div>
+ <div class="row">
+ <div class="col-xs-12">
+ <h1 class="primary">Profiles:</h1>
+ </div>
+ <div class="col-xs-12">
+ <related-profiles model="vm.imsi" config="{showHeader: false, delete: true}"></related-profiles>
+ </div>
+ <div class="col-xs-12 text-right">
+ <a href="" class="btn btn-primary-border">
+ Add Profile
+ </a>
+ <a href="" class="btn btn-primary-border">
+ Create Profile
+ </a>
+ </div>
+ </div>
+</div>
\ No newline at end of file