diff --git a/app/assets/stylesheets/content/work_packages/inplace_editing/_edit_fields.sass b/app/assets/stylesheets/content/work_packages/inplace_editing/_edit_fields.sass index 6c945085a2..c3a1383174 100644 --- a/app/assets/stylesheets/content/work_packages/inplace_editing/_edit_fields.sass +++ b/app/assets/stylesheets/content/work_packages/inplace_editing/_edit_fields.sass @@ -82,6 +82,9 @@ .wp-table--cell-span vertical-align: middle + &.inplace-edit .custom-option + display: inline + // Editable fields cursor .-editable .wp-table--cell-span, .wp-table--cell-span.-editable @@ -101,6 +104,7 @@ .inplace-edit--read-value--value-span width: 100% + white-space: nowrap .error.macro-unavailable display: inline-block diff --git a/frontend/app/components/wp-display/field-types/wp-display-string-objects-field.directive.html b/frontend/app/components/wp-display/field-types/wp-display-string-objects-field.directive.html index f3bb1842fb..e7e0911678 100644 --- a/frontend/app/components/wp-display/field-types/wp-display-string-objects-field.directive.html +++ b/frontend/app/components/wp-display/field-types/wp-display-string-objects-field.directive.html @@ -1,7 +1,8 @@
- {{ value }} + {{ value }} and {{ vm.field.value.length - 1}} others + {{ value }}
- - +
diff --git a/frontend/app/components/wp-edit/field-types/wp-edit-multi-select-field.directive.html b/frontend/app/components/wp-edit/field-types/wp-edit-multi-select-field.directive.html index afd92db0a9..9d5d81e89f 100644 --- a/frontend/app/components/wp-edit/field-types/wp-edit-multi-select-field.directive.html +++ b/frontend/app/components/wp-edit/field-types/wp-edit-multi-select-field.directive.html @@ -1,5 +1,31 @@ -
+
+ + + + + + + + + + + MultiSelectEditField.$injector.get('I18n'); @@ -43,6 +44,8 @@ export class MultiSelectEditField extends EditField { constructor(workPackage:WorkPackageResourceInterface, fieldName:string, schema:op.FieldSchema) { super(workPackage, fieldName, schema); + this.isMultiselect = false; + const I18n:any = this.$injector.get('I18n'); this.text = { requiredPlaceholder: I18n.t('js.placeholders.selection'), @@ -67,6 +70,12 @@ export class MultiSelectEditField extends EditField { } } + public toggleMultiselect() { + console.log(this.isMultiselect); + this.isMultiselect = !this.isMultiselect; + console.log(this.isMultiselect); + }; + private setValues(availableValues:any[], sortValuesByName:boolean = false) { if (sortValuesByName) { availableValues.sort(function(a:any, b:any) {