diff --git a/ng2-components/ng2-activiti-tasklist/README.md b/ng2-components/ng2-activiti-tasklist/README.md index 2ae1fc1d66..2185fa1506 100644 --- a/ng2-components/ng2-activiti-tasklist/README.md +++ b/ng2-components/ng2-activiti-tasklist/README.md @@ -199,6 +199,43 @@ You can use inside the filter one of the following property } ``` +## ADF Card View + +The component shows the [CardViewModel](#cardviewmodel)} object. + +```html + + + +``` + +### Properties + +| Name | Type | Description | +| --- | --- | --- | +| properties | {array[CardViewModel](#cardviewmodel)} | (**required**) The custom view to render | + +### CardViewModel + +```json +{ + "label": "string", + "value": "any", + "format": "string", + "default": "string" +} +``` + +| Name | Type | Description | +| --- | --- | --- | +| label | string | The label to render | +| value | string | The value to render | +| format | string | The format to use in case the value is a date | +| default | string | The default value to render in case the value is empty | + +![adf-custom-view](docs/assets/adf-custom-view.png) + ## Activiti Filter The component shows all the available filters. diff --git a/ng2-components/ng2-activiti-tasklist/docs/assets/adf-custom-view.png b/ng2-components/ng2-activiti-tasklist/docs/assets/adf-custom-view.png new file mode 100644 index 0000000000..41ed32afb9 Binary files /dev/null and b/ng2-components/ng2-activiti-tasklist/docs/assets/adf-custom-view.png differ diff --git a/ng2-components/ng2-activiti-tasklist/src/components/activiti-task-header.component.html b/ng2-components/ng2-activiti-tasklist/src/components/activiti-task-header.component.html index e0ee454c12..8922608c4e 100644 --- a/ng2-components/ng2-activiti-tasklist/src/components/activiti-task-header.component.html +++ b/ng2-components/ng2-activiti-tasklist/src/components/activiti-task-header.component.html @@ -1,20 +1,7 @@
-
-
- {{ 'TASK_DETAILS.LABELS.ASSIGNEE' | translate }}: - {{ taskDetails.assignee.firstName }} {{ taskDetails.assignee.lastName }} - {{ 'TASK_DETAILS.ASSIGNEE.NONE' | translate }} -
-
- {{ 'TASK_DETAILS.LABELS.DUE' | translate }}: - {{ taskDetails.dueDate }} - {{ 'TASK_DETAILS.DUE.NONE' |translate }} -
-
- {{ 'TASK_DETAILS.LABELS.FORM' | translate }}: - {{ formName }} - {{ 'TASK_DETAILS.FORM.NONE' | translate }} -
+
+ +