diff --git a/client/production/src/filter-panel/filter-panel.html b/client/production/src/filter-panel/filter-panel.html new file mode 100644 index 0000000000..2bb03ead06 --- /dev/null +++ b/client/production/src/filter-panel/filter-panel.html @@ -0,0 +1,23 @@ +
+
+ + + + + + + + + + + + + +
+
\ No newline at end of file diff --git a/client/production/src/filter-panel/filter-panel.js b/client/production/src/filter-panel/filter-panel.js new file mode 100644 index 0000000000..c432b3b08f --- /dev/null +++ b/client/production/src/filter-panel/filter-panel.js @@ -0,0 +1,25 @@ +import ngModule from '../module'; + +export default class Controller { + constructor($window) { + this.$window = $window; + } + onSearch() { + this.setStorageValue(); + this.onSubmit(this.filter); + } + $onChanges() { + var value = JSON.parse(this.$window.sessionStorage.getItem('production')); + if (value !== undefined) + this.filter = value; + } + setStorageValue() { + this.$window.sessionStorage.setItem('production', JSON.stringify(this.filter)); + } +} +Controller.$inject = ['$window']; + +ngModule.component('vnProductionFilterPanel', { + template: require('./filter-panel.html'), + controller: Controller +}); diff --git a/client/production/src/index/index.html b/client/production/src/index/index.html index 7141b2a3f3..4cf14099c8 100644 --- a/client/production/src/index/index.html +++ b/client/production/src/index/index.html @@ -1,27 +1,34 @@ + - - Localizador - - - - - - - - - - - - - - + Localizador + + + + + + + + + - + + + + diff --git a/client/production/src/production.js b/client/production/src/production.js index 80e65aacee..f36e961565 100644 --- a/client/production/src/production.js +++ b/client/production/src/production.js @@ -3,3 +3,4 @@ export * from './module'; // import components import './index/index'; +import './filter-panel/filter-panel';