+
-
-
+
+
+
+
diff --git a/front/core/directives/uvc.js b/front/core/directives/uvc.js
index d880162ee..cce9e9ee5 100644
--- a/front/core/directives/uvc.js
+++ b/front/core/directives/uvc.js
@@ -1,5 +1,6 @@
import ngModule from '../module';
import template from './uvc.html';
+import './uvc.scss';
directive.$inject = ['$http', '$compile', 'vnApp', '$translate'];
export function directive($http, $compile, vnApp, $translate) {
@@ -7,12 +8,16 @@ export function directive($http, $compile, vnApp, $translate) {
let allHeaders = $element[0].querySelectorAll(`vn-th[field], vn-th[th-id]`);
let headerList = Array.from(allHeaders);
let ids = [];
+ let titles = {};
headerList.forEach(header => {
- ids.push(header.getAttribute('th-id') || header.getAttribute('field'));
+ let id = header.getAttribute('th-id') || header.getAttribute('field');
+ ids.push(id);
+ titles[id] = header.innerText || id;
});
$scope.fields = ids;
+ $scope.titles = titles;
return headerList;
}
diff --git a/front/core/directives/uvc.scss b/front/core/directives/uvc.scss
new file mode 100644
index 000000000..5221b8bdd
--- /dev/null
+++ b/front/core/directives/uvc.scss
@@ -0,0 +1,11 @@
+vn-table vn-dialog[vn-id="uvc"]{
+ & > div {
+ min-width: 18em;
+ align-items: center;
+
+ }
+
+ vn-button[label="Save"] {
+ margin: 0 auto;
+ }
+}
\ No newline at end of file
diff --git a/modules/item/front/index/index.html b/modules/item/front/index/index.html
index 8480dd842..48ca536ec 100644
--- a/modules/item/front/index/index.html
+++ b/modules/item/front/index/index.html
@@ -61,7 +61,7 @@
{{::item.intrastat}}
{{::item.origin}}
{{::item.userNickname}}
-
{{::item.density}}
+
{{::item.density}}
{{::item.taxClass}}