GUI -- Added Settings view
Change-Id: Icdabb361bff3ccc3e4d12cb889dd77e62c1519e0
diff --git a/web/gui/src/main/webapp/app/view/settings/settings.css b/web/gui/src/main/webapp/app/view/settings/settings.css
new file mode 100644
index 0000000..e748c5a
--- /dev/null
+++ b/web/gui/src/main/webapp/app/view/settings/settings.css
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2015 Open Networking Laboratory
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ ONOS GUI -- Settings View -- CSS file
+ */
+
+#ov-settings h2 {
+ display: inline-block;
+}
+
+#ov-settings div.ctrl-btns {
+ width: 45px;
+}
diff --git a/web/gui/src/main/webapp/app/view/settings/settings.html b/web/gui/src/main/webapp/app/view/settings/settings.html
new file mode 100644
index 0000000..a7fcdce
--- /dev/null
+++ b/web/gui/src/main/webapp/app/view/settings/settings.html
@@ -0,0 +1,50 @@
+<!-- settings partial HTML -->
+<div id="ov-settings">
+ <div class="tabular-header">
+ <h2>Component Settings ({{tableData.length}} total)</h2>
+ <div class="ctrl-btns">
+ <div class="refresh active"
+ icon icon-size="36" icon-id="refresh"
+ ng-click="refresh()"></div>
+ </div>
+ </div>
+
+ <div class="summary-list" onos-fixed-header>
+
+ <div class="table-header"
+ onos-sortable-header sort-callback="sortCallback(requestParams)">
+ <table>
+ <tr>
+ <td colId="component" sortable col-width="400px">Component </td>
+ <td colId="id" sortable>Property </td>
+ <td colId="type" sortable col-width="70px">Type </td>
+ <td colId="value" sortable>Value </td>
+ <td colId="defValue" sortable>Default </td>
+ <td colId="desc" col-width="520px">Description </td>
+ </tr>
+ </table>
+ </div>
+
+ <div class="table-body">
+ <table>
+ <tr ng-hide="tableData.length" class="no-data ignore-width">
+ <td colspan="6">
+ No Settings found
+ </td>
+ </tr>
+
+ <tr ng-repeat="prop in tableData"
+ ng-repeat-done>
+ <td>{{prop.component}}</td>
+ <td>{{prop.id}}</td>
+ <td>{{prop.type}}</td>
+ <td>{{prop.value}}</td>
+ <td>{{prop.defValue}}</td>
+ <td>{{prop.desc}}</td>
+ </tr>
+ </table>
+ </div>
+
+ </div>
+
+</div>
diff --git a/web/gui/src/main/webapp/app/view/settings/settings.js b/web/gui/src/main/webapp/app/view/settings/settings.js
new file mode 100644
index 0000000..cec0e70
--- /dev/null
+++ b/web/gui/src/main/webapp/app/view/settings/settings.js
@@ -0,0 +1,36 @@
+/*
+ * Copyright 2015 Open Networking Laboratory
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/*
+ ONOS GUI -- Component Settings View Module
+ */
+
+(function () {
+ 'use strict';
+
+ angular.module('ovSettings', [])
+ .controller('OvSettingsCtrl',
+ ['$log', '$scope', 'TableBuilderService',
+
+ function ($log, $scope, tbs) {
+ tbs.buildTable({
+ scope: $scope,
+ tag: 'setting'
+ });
+
+ $log.log('OvSettingsCtrl has been created');
+ }]);
+}());