Skip to content

Commit

Permalink
fix: add titles with original field names
Browse files Browse the repository at this point in the history
  • Loading branch information
felixroos committed Mar 29, 2019
1 parent 1bd5f18 commit 0dbce91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/ui/src/lib/form/form.component.html.ts
Expand Up @@ -7,7 +7,7 @@ export const formTemplate = `<form novalidate [formGroup]="group" (ngSubmit)="su
<div [attr.data-col]="field?.getColumns()" *ngFor="let field of form?.fields | visibleFields:form"
[ngClass]="'ec-form-group_' + field?.view + ' ' + field?.classes" [class.is-read-only]="formService.isReadOnly(field, form)"
[ngSwitch]="field?.view" class="form-group" [attr.data-type]="field?.type">
<label [for]="field.id">{{field.label || field.property}}</label>
<label [for]="field.id" [title]="field.property">{{field.label || field.property}}</label>
<ec-input [field]="field" [group]="group" [item]="form"
[formControl]="group.get(field.property)"></ec-input>
</div>
Expand Down
Expand Up @@ -14,7 +14,7 @@
<ec-input (ready)="inputReady($event)" (changed)="setFilter(filteredField, $event)" [lazy]="true"
class="has-width-full" [field]="filteredField" [group]="filterForm?.group" [debounce]="200"
*ngIf="filterPop.active&&filterForm?.group" #filterInput></ec-input>

<a class="btn btn_clear" (click)="resetFilter()" *ngIf="list?.isFiltered(filteredField.property)">
<!-- <a class="btn btn_clear" (click)="filterPop.hide()"> -->
<ec-icon name="close-x"></ec-icon>
Expand Down Expand Up @@ -59,7 +59,8 @@
<!-- <a (click)="toggleVisibility(field)" class="is-visibility-control">
<ec-icon name="eye-closed"></ec-icon>
</a> -->
<span class="ec-list-column-title" (click)="field.sortable&&list.toggleSort(field.property)">
<span class="ec-list-column-title" (click)="field.sortable&&list.toggleSort(field.property)"
[title]="field.property">
{{fieldLabel(field)}}
</span>
<span (click)="list.toggleSort(field.property)" class="is-sortable-indicator" *ngIf="field.sortable"></span>
Expand Down

0 comments on commit 0dbce91

Please sign in to comment.