add: search-panel
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Vicent Llopis 2022-05-17 09:54:49 +02:00
parent 3335cb8a01
commit 76515bdd3f
5 changed files with 30 additions and 1 deletions

View File

@ -4,7 +4,6 @@ import Section from 'salix/components/section';
export default class Controller extends Section {
preview(role) {
this.selectedRole = role;
console.log(this.selectedRole);
this.$.summary.show();
}
}

View File

@ -5,3 +5,4 @@ import './card';
import './descriptor';
import './create';
import './basic-data';
import './search-panel';

View File

@ -0,0 +1 @@
Search itemType by id, name or code: Buscar familia por id, nombre o código

View File

@ -0,0 +1,21 @@
<div class="search-panel">
<form ng-submit="$ctrl.onSearch()">
<vn-horizontal>
<vn-textfield
vn-one
label="Name"
ng-model="filter.name">
</vn-textfield>
</vn-horizontal>
<vn-horizontal>
<vn-textfield
vn-one
label="Code"
ng-model="filter.code">
</vn-textfield>
</vn-horizontal>
<vn-horizontal class="vn-mt-lg">
<vn-submit label="Search"></vn-submit>
</vn-horizontal>
</form>
</div>

View File

@ -0,0 +1,7 @@
import ngModule from '../../module';
import SearchPanel from 'core/components/searchbar/search-panel';
ngModule.component('vnItemTypeSearchPanel', {
template: require('./index.html'),
controller: SearchPanel
});