Merge branch 'master' of ssh://git.verdnatura.es:/var/lib/git/salix
This commit is contained in:
commit
2c429de0a7
|
@ -1,5 +1,5 @@
|
||||||
<div pad-large style="min-width: 30em;">
|
<div pad-large style="min-width: 30em;" ng-show="$ctrl.formVisibility">
|
||||||
<form name="form" ng-submit="form.$valid && $ctrl.onSubmit()">
|
<form name="form" ng-submit="form.$valid && $ctrl.onSubmit()" ng-keyup="$ctrl.getKeyPressed($event)">
|
||||||
<vn-horizontal>
|
<vn-horizontal>
|
||||||
<vn-textfield vn-one label="Id Cliente" model="$ctrl.filter.id"></vn-textfield>
|
<vn-textfield vn-one label="Id Cliente" model="$ctrl.filter.id"></vn-textfield>
|
||||||
<vn-textfield vn-one label="NIF/CIF" model="$ctrl.filter.fi"></vn-textfield>
|
<vn-textfield vn-one label="NIF/CIF" model="$ctrl.filter.fi"></vn-textfield>
|
||||||
|
|
|
@ -4,7 +4,12 @@ export const NAME = 'vnClientSearchPanel';
|
||||||
export const COMPONENT = {
|
export const COMPONENT = {
|
||||||
template: require('./search-panel.html'),
|
template: require('./search-panel.html'),
|
||||||
controller: function($scope) {
|
controller: function($scope) {
|
||||||
this.onSubmit = function() {}
|
this.formVisibility = true;
|
||||||
|
this.onSubmit = function() {};
|
||||||
|
this.getKeyPressed = function(event){
|
||||||
|
if (event.which === 27)
|
||||||
|
this.formVisibility = false;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
module.component(NAME, COMPONENT);
|
module.component(NAME, COMPONENT);
|
||||||
|
|
Loading…
Reference in New Issue