From afb0ea66724736f2cb43c63ce9700568b3d444b9 Mon Sep 17 00:00:00 2001 From: shu-mutou Date: Thu, 22 Oct 2015 20:54:12 +0900 Subject: [PATCH] Add Magic Search into Bay table Add Magic Search function into search box on Bay table. Partially Imprements: blueprint add-magic-search Change-Id: Idc09417aebabde016766ad967d1c72ec9460f6e9 --- .../containers/bay/table/table.controller.js | 33 ++++++++++++++ .../dashboard/containers/bay/table/table.html | 43 +++++++++++-------- 2 files changed, 57 insertions(+), 19 deletions(-) diff --git a/magnum_ui/static/dashboard/containers/bay/table/table.controller.js b/magnum_ui/static/dashboard/containers/bay/table/table.controller.js index 22f9323e..02551dd7 100644 --- a/magnum_ui/static/dashboard/containers/bay/table/table.controller.js +++ b/magnum_ui/static/dashboard/containers/bay/table/table.controller.js @@ -42,6 +42,39 @@ ctrl.singleDelete = singleDelete; ctrl.batchDelete = batchDelete; + /** + * Filtering - client-side MagicSearch + * all facets for bay table + */ + ctrl.bayFacets = [ + { + 'label': gettext('Name'), + 'name': 'name', + 'singleton': true + }, + { + 'label': gettext('ID'), + 'name': 'id', + 'singleton': true + }, + { + 'label': gettext('Status'), + 'name': 'status', + 'singleton': true + }, + { + 'label': gettext('Master Count'), + 'name': 'master_count', + 'singleton': true + }, + { + 'label': gettext('Node Count'), + 'name': 'node_count', + 'singleton': true + } + ]; + + init(); function init() { diff --git a/magnum_ui/static/dashboard/containers/bay/table/table.html b/magnum_ui/static/dashboard/containers/bay/table/table.html index bf97fc82..abfc1fae 100644 --- a/magnum_ui/static/dashboard/containers/bay/table/table.html +++ b/magnum_ui/static/dashboard/containers/bay/table/table.html @@ -13,25 +13,30 @@ --> - - - - Create Bay - - - - - - Delete Bays - - - + + + + + + + + + Create Bay + + + + + + Delete Bays + +