| .. | .. |
|---|
| 39 | 39 | <field-readonly [value]="data.activation_code" label="field.activation_code" flex></field-readonly> |
|---|
| 40 | 40 | </div> |
|---|
| 41 | 41 | <div layout="row" layout-fill layout-padding *ngIf="!isNew"> |
|---|
| 42 | | - <field-readonly [value]="data.expiration_date | date: 'dateMedium'" label="field.expiration_date" flex></field-readonly> |
|---|
| 42 | + <field-readonly [value]="data.expiration_date | date: 'mediumDate'" label="field.expiration_date" flex></field-readonly> |
|---|
| 43 | 43 | <field-readonly [value]="licenses.getStatusName(data.status)" label="field.status" flex></field-readonly> |
|---|
| 44 | 44 | </div> |
|---|
| 45 | 45 | <div layout="row" layout-fill layout-padding> |
|---|
| .. | .. |
|---|
| 59 | 59 | <span i18n="field.email"></span> |
|---|
| 60 | 60 | </md-placeholder> |
|---|
| 61 | 61 | </md-input-container> |
|---|
| 62 | | - <error-checker [fieldName]="$L.get('field.full_name')" [formField]="form.controls.email"></error-checker> |
|---|
| 62 | + <error-checker [fieldName]="$L.get('field.email')" [formField]="form.controls.email"></error-checker> |
|---|
| 63 | 63 | </div> |
|---|
| 64 | 64 | </div> |
|---|
| 65 | 65 | <div layout="row" layout-fill layout-padding> |
|---|
| .. | .. |
|---|
| 99 | 99 | <md-divider></md-divider> |
|---|
| 100 | 100 | <md-card-actions> |
|---|
| 101 | 101 | <div layout="row" layout-align="start center" class="margin"> |
|---|
| 102 | + <button *ngIf="canBeDeleted()" md-raised-button color="warn" (click)="delete(data.id)">Delete</button> |
|---|
| 102 | 103 | <span flex></span> |
|---|
| 104 | + <button md-icon-button [mdMenuTriggerFor]="licMenu" aria-label="License menu"> |
|---|
| 105 | + <md-icon>more_vert</md-icon> |
|---|
| 106 | + </button> |
|---|
| 107 | + <md-menu #licMenu="mdMenu"> |
|---|
| 108 | + <button md-menu-item *ngFor="let action of license_menu_options" (click)="licenseAction(action.command)" [disabled]="!licenses.isActionAvailable(action.command, data)"> |
|---|
| 109 | + <md-icon *ngIf="!!action.icon">{{ action.icon }}</md-icon> {{ action.name }} |
|---|
| 110 | + </button> |
|---|
| 111 | + </md-menu> |
|---|
| 103 | 112 | <button [disabled]="!form.form.valid" md-raised-button color="primary" (click)="save()">Save</button> |
|---|
| 104 | 113 | <button md-button (click)="goBack()">Cancel</button> |
|---|
| 105 | 114 | </div> |
|---|