diff --git a/e2e/helpers/selectors.js b/e2e/helpers/selectors.js
index 0df20f191..7ce57ed7c 100644
--- a/e2e/helpers/selectors.js
+++ b/e2e/helpers/selectors.js
@@ -23,7 +23,7 @@ export default {
clientsIndex: {
searchClientInput: `${components.vnTextfield}`,
searchButton: `vn-searchbar vn-icon[icon="search"]`,
- searchResult: `vn-item-client a`,
+ searchResult: `vn-client-index .vn-list-item`,
createClientButton: `${components.vnFloatButton}`,
othersButton: `vn-left-menu li[name="Others"] > a`
},
diff --git a/front/salix/styles/misc.scss b/front/salix/styles/misc.scss
index 14a64cc2c..dcabb77c6 100644
--- a/front/salix/styles/misc.scss
+++ b/front/salix/styles/misc.scss
@@ -152,43 +152,45 @@ vn-tool-bar {
.vn-list {
max-width: 36em;
margin: 0 auto;
-}
-a.vn-list-item {
- @extend %clickable;
-}
-.vn-list-item {
- padding: $pad-medium;
- border-bottom: $border-thin solid $color-spacer;
- display: block;
- text-decoration: none;
- color: inherit;
-
- & > vn-horizontal {
- & > vn-one {
- overflow: hidden;
- }
- & > .buttons {
- align-items: center;
-
- vn-icon {
- opacity: .4;
- color: $color-main;
- margin-left: .5em;
- transition: opacity 250ms ease-out;
- font-size: 2em;
-
- &:hover {
- opacity: 1;
+ a.vn-list-item {
+ @extend %clickable;
+ }
+ .vn-list-item {
+ border-bottom: $border-thin solid $color-spacer;
+ display: block;
+ text-decoration: none;
+ color: inherit;
+
+ & > vn-horizontal {
+ padding: $pad-medium;
+
+ & > vn-one {
+ overflow: hidden;
+ }
+ & > .buttons {
+ align-items: center;
+
+ vn-icon {
+ opacity: .4;
+ color: $color-main;
+ margin-left: .5em;
+ transition: opacity 250ms ease-out;
+ font-size: 2em;
+
+ &:hover {
+ opacity: 1;
+ }
}
}
}
}
-}
-vn-empty-rows.vn-list-item {
- text-align: center;
- padding: 1.5em;
- box-sizing: border-box;
+ vn-empty-rows {
+ display: block;
+ text-align: center;
+ padding: 1.5em;
+ box-sizing: border-box;
+ }
}
/** START - FORM ELEMENTS DISABLED **/
diff --git a/modules/client/front/index/index.html b/modules/client/front/index/index.html
index 5a964cfe5..90074aa13 100644
--- a/modules/client/front/index/index.html
+++ b/modules/client/front/index/index.html
@@ -17,11 +17,42 @@
-
-
+ ui-sref="client.card.summary({ id: {{::client.id}} })"
+ translate-attr="{title: 'View client'}"
+ class="vn-list-item searchResult">
+
+
+ {{::client.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ No results
+
+
+ Enter a new search
+
diff --git a/modules/client/front/index/index.js b/modules/client/front/index/index.js
index 482aef7e9..f7e75274c 100644
--- a/modules/client/front/index/index.js
+++ b/modules/client/front/index/index.js
@@ -1,5 +1,4 @@
import ngModule from '../module';
-import './item-client';
export default class Controller {
constructor($scope, $stateParams) {
@@ -33,7 +32,13 @@ export default class Controller {
}
}
- openSummary(client) {
+ onClick(event) {
+ if (event.defaultPrevented)
+ event.stopImmediatePropagation();
+ }
+
+ openSummary(client, event) {
+ event.preventDefault();
this.clientSelected = client;
this.$.dialogSummaryClient.show();
}
diff --git a/modules/client/front/index/item-client.html b/modules/client/front/index/item-client.html
deleted file mode 100644
index 4be3e42a4..000000000
--- a/modules/client/front/index/item-client.html
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
-
- {{::$ctrl.client.name}}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/modules/client/front/index/item-client.js b/modules/client/front/index/item-client.js
deleted file mode 100644
index 5bacee25d..000000000
--- a/modules/client/front/index/item-client.js
+++ /dev/null
@@ -1,24 +0,0 @@
-import ngModule from '../module';
-
-class Controller {
- onClick(event) {
- if (event.defaultPrevented)
- event.stopImmediatePropagation();
- }
-
- preview(event) {
- event.preventDefault();
- this.list.openSummary(this.client);
- }
-}
-
-ngModule.component('vnItemClient', {
- template: require('./item-client.html'),
- controller: Controller,
- bindings: {
- client: '<'
- },
- require: {
- list: '^vnClientIndex'
- }
-});
diff --git a/modules/client/front/index/style.scss b/modules/client/front/index/style.scss
deleted file mode 100644
index 0f2ee429f..000000000
--- a/modules/client/front/index/style.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-vn-item-client {
- display: block;
-}
\ No newline at end of file
diff --git a/modules/worker/front/index/index.html b/modules/worker/front/index/index.html
index 53d16ccea..99a5f6912 100644
--- a/modules/worker/front/index/index.html
+++ b/modules/worker/front/index/index.html
@@ -48,6 +48,12 @@
+
+ No results
+
+
+ Enter a new search
+