diff --git a/src/FIT/Bundle/ModuleDefaultBundle/Controller/ModuleController.php b/src/FIT/Bundle/ModuleDefaultBundle/Controller/ModuleController.php index 9aa2256a..9a1dd1a9 100644 --- a/src/FIT/Bundle/ModuleDefaultBundle/Controller/ModuleController.php +++ b/src/FIT/Bundle/ModuleDefaultBundle/Controller/ModuleController.php @@ -4,7 +4,6 @@ use FIT\NetopeerBundle\Controller\ModuleControllerInterface; use FIT\NetopeerBundle\Models\XMLoperations; -use FIT\NetopeerBundle\Services\Functionality\ConnectionFunctionality; use FIT\NetopeerBundle\Services\Functionality\NetconfFunctionality; use Symfony\Bundle\FrameworkBundle\Controller\Controller; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; @@ -100,7 +99,6 @@ public function moduleAction($key, $module = null, $subsection = null) $res = array( 'variables' => array( 'jsonEditable' => true, - 'datastore' => $conn->getCurrentDatastore(), ), 'configuration' => $data, 'snippets' => $content['snippets'], diff --git a/src/FIT/Bundle/ModuleDefaultBundle/Resources/public/netopeerangular/js/JSONedit.js b/src/FIT/Bundle/ModuleDefaultBundle/Resources/public/netopeerangular/js/JSONedit.js index e0c91747..4ab8a1e0 100644 --- a/src/FIT/Bundle/ModuleDefaultBundle/Resources/public/netopeerangular/js/JSONedit.js +++ b/src/FIT/Bundle/ModuleDefaultBundle/Resources/public/netopeerangular/js/JSONedit.js @@ -309,6 +309,14 @@ var app = angular.module('NetopeerGUIApp', ['JSONedit', 'ngRoute', 'ngTraverse', templateUrl: 'main/view.html', controller: 'ConfigurationController' }) + .when('/module/:moduleName/:sectionName', { + templateUrl: 'main/view.html', + controller: 'ConfigurationController' + }) + .when('/rpc/:moduleName/:rpcName', { + templateUrl: 'main/view.html', + controller: 'ConfigurationController' + }) .when('/action/:action', { templateUrl: 'main/view.html', controller: 'ConfigurationController' diff --git a/src/FIT/Bundle/ModuleDefaultBundle/Resources/public/netopeerangular/public/templates.js b/src/FIT/Bundle/ModuleDefaultBundle/Resources/public/netopeerangular/public/templates.js index 1398124f..f68b60ec 100644 --- a/src/FIT/Bundle/ModuleDefaultBundle/Resources/public/netopeerangular/public/templates.js +++ b/src/FIT/Bundle/ModuleDefaultBundle/Resources/public/netopeerangular/public/templates.js @@ -1,6 +1,6 @@ -angular.module("configurationTemplates", []).run(["$templateCache", function($templateCache) {$templateCache.put("directives/addItem.html","\n\n \n \n \n\n \n \n \n \n\n \n \n \n \n \n\n {{$parent.$parent.$parent.newkey}}\n \n \n\n \n \n \n \n \n
{{ type }}{{ child[\'$@\'+$parent.keyName][type] }}
\n
\n\n\n \n \n"); +angular.module("configurationTemplates", []).run(["$templateCache", function($templateCache) {$templateCache.put("main/view.html","

{{ rpcName || \'Config & State data\' }}

\n\n
\n
\n \n \n\n \n \n\n \n \n \n \n\n
\n
\n{{ yangSchema }}\n
\n
\n\n
\n \n
\n\n \n \n \n \n \n
"); +$templateCache.put("directives/addItem.html","\n\n \n \n \n\n \n \n \n \n\n \n \n \n \n \n\n {{$parent.$parent.$parent.newkey}}\n \n \n\n \n \n \n \n \n
{{ type }}{{ child[\'$@\'+$parent.keyName][type] }}
\n
\n\n\n \n \n"); $templateCache.put("directives/switchItem.html","\n \n \n \n\n \n \n {{ val }}\n \n \n \n {{ val }}\n \n \n \n {{ val }}\n \n \n \n {{ val }}\n \n\n \n"); $templateCache.put("types/Array.html","\n
\n \n
    \n
  1. \n \n
  2. \n
\n \n
"); $templateCache.put("types/List.html","\n
\n \n
    \n
  1. \n \n
  2. \n
\n \n
"); -$templateCache.put("types/Object.html","\n
\n \n \n \n {{ key }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n
"); -$templateCache.put("main/view.html","

{{ rpcName || \'Config & State data\' }}

\n\n
\n
\n \n \n\n \n \n\n \n \n \n \n\n
\n
\n{{ yangSchema }}\n
\n
\n\n
\n \n
\n\n \n \n \n \n \n
");}]); \ No newline at end of file +$templateCache.put("types/Object.html","\n
\n \n \n \n {{ key }}\n \n \n \n \n \n \n \n \n \n \n \n \n \n
");}]); \ No newline at end of file