| .. | .. |
|---|
| 14 | 14 | </md-card-title> |
|---|
| 15 | 15 | <md-divider></md-divider> |
|---|
| 16 | 16 | <md-card-content> |
|---|
| 17 | | - <form #packForm="ngForm" class="inset"> |
|---|
| 17 | + <form #form="ngForm" class="inset"> |
|---|
| 18 | 18 | <div layout="column" layout-align="start center"> |
|---|
| 19 | 19 | <div layout="row" layout-fill layout-padding> |
|---|
| 20 | 20 | <field-readonly [value]="data.id" label="field.id" flex="15" *ngIf="!isNew"></field-readonly> |
|---|
| .. | .. |
|---|
| 25 | 25 | <span i18n="field.code"></span> |
|---|
| 26 | 26 | </md-placeholder> |
|---|
| 27 | 27 | </md-input-container> |
|---|
| 28 | | - <error-checker [fieldName]="getFieldName('code')" [formField]="packForm.controls.code"></error-checker> |
|---|
| 28 | + <error-checker [fieldName]="getFieldName('code')" [formField]="form.controls.code"></error-checker> |
|---|
| 29 | 29 | </div> |
|---|
| 30 | 30 | <div layout="column" layout-fill flex> |
|---|
| 31 | 31 | <md-input-container> |
|---|
| .. | .. |
|---|
| 34 | 34 | <span i18n="field.num_licenses"></span> |
|---|
| 35 | 35 | </md-placeholder> |
|---|
| 36 | 36 | </md-input-container> |
|---|
| 37 | | - <error-checker [fieldName]="getFieldName('num_licenses')" [formField]="packForm.controls.num_licenses"></error-checker> |
|---|
| 37 | + <error-checker [fieldName]="getFieldName('num_licenses')" [formField]="form.controls.num_licenses"></error-checker> |
|---|
| 38 | 38 | </div> |
|---|
| 39 | 39 | </div> |
|---|
| 40 | 40 | <div layout="row" layout-fill layout-padding> |
|---|
| .. | .. |
|---|
| 53 | 53 | <span i18n="field.end_valid_date"></span> |
|---|
| 54 | 54 | </md-placeholder> |
|---|
| 55 | 55 | </md-input-container> |
|---|
| 56 | | - <error-checker [fieldName]="getFieldName('init_valid_date')" [formField]="packForm.controls.init_valid_date"></error-checker> |
|---|
| 56 | + <error-checker [fieldName]="getFieldName('init_valid_date')" [formField]="form.controls.init_valid_date"></error-checker> |
|---|
| 57 | 57 | </div> |
|---|
| 58 | 58 | <div layout="column" layout-fill flex> |
|---|
| 59 | 59 | <md-input-container flex> |
|---|
| .. | .. |
|---|
| 62 | 62 | <span i18n="field.end_valid_date"></span> |
|---|
| 63 | 63 | </md-placeholder> |
|---|
| 64 | 64 | </md-input-container> |
|---|
| 65 | | - <error-checker [fieldName]="getFieldName('end_valid_date')" [formField]="packForm.controls.end_valid_date"></error-checker> |
|---|
| 65 | + <error-checker [fieldName]="getFieldName('end_valid_date')" [formField]="form.controls.end_valid_date"></error-checker> |
|---|
| 66 | 66 | </div> |
|---|
| 67 | 67 | </div> |
|---|
| 68 | 68 | <div layout="row" layout-fill layout-padding *ngIf="isNew"> |
|---|
| .. | .. |
|---|
| 73 | 73 | {{org.label}} |
|---|
| 74 | 74 | </md-option> |
|---|
| 75 | 75 | </md-select> |
|---|
| 76 | | - <error-checker [fieldName]="getFieldName('organization_id')" [formField]="packForm.controls.organization_id"></error-checker> |
|---|
| 76 | + <error-checker [fieldName]="getFieldName('organization_id')" [formField]="form.controls.organization_id"></error-checker> |
|---|
| 77 | 77 | </div> |
|---|
| 78 | 78 | <div layout="column" layout-fill flex> |
|---|
| 79 | 79 | <md-select flex [placeholder]="getFieldName('license_type_id')" [(ngModel)]="data.license_type_id" name="license_type_id" |
|---|
| .. | .. |
|---|
| 82 | 82 | {{lt.label}} |
|---|
| 83 | 83 | </md-option> |
|---|
| 84 | 84 | </md-select> |
|---|
| 85 | | - <error-checker [fieldName]="getFieldName('license_type_id')" [formField]="packForm.controls.license_type_id"></error-checker> |
|---|
| 85 | + <error-checker [fieldName]="getFieldName('license_type_id')" [formField]="form.controls.license_type_id"></error-checker> |
|---|
| 86 | 86 | </div> |
|---|
| 87 | 87 | </div> |
|---|
| 88 | 88 | <div layout="row" layout-fill layout-padding *ngIf="!isNew"> |
|---|
| .. | .. |
|---|
| 98 | 98 | </md-placeholder> |
|---|
| 99 | 99 | <md-hint align="end">days</md-hint> |
|---|
| 100 | 100 | </md-input-container> |
|---|
| 101 | | - <error-checker [fieldName]="getFieldName('preactivation_valid_period')" [formField]="packForm.controls.preactivation_valid_period"></error-checker> |
|---|
| 101 | + <error-checker [fieldName]="getFieldName('preactivation_valid_period')" [formField]="form.controls.preactivation_valid_period"></error-checker> |
|---|
| 102 | 102 | </div> |
|---|
| 103 | 103 | <div layout="column" layout-fill flex> |
|---|
| 104 | 104 | <md-input-container flex> |
|---|
| .. | .. |
|---|
| 108 | 108 | </md-placeholder> |
|---|
| 109 | 109 | <md-hint align="end">days</md-hint> |
|---|
| 110 | 110 | </md-input-container> |
|---|
| 111 | | - <error-checker [fieldName]="getFieldName('renew_valid_period')" [formField]="packForm.controls.renew_valid_period"></error-checker> |
|---|
| 111 | + <error-checker [fieldName]="getFieldName('renew_valid_period')" [formField]="form.controls.renew_valid_period"></error-checker> |
|---|
| 112 | 112 | </div> |
|---|
| 113 | 113 | </div> |
|---|
| 114 | 114 | <div layout="row" layout-fill layout-padding> |
|---|
| .. | .. |
|---|
| 134 | 134 | <md-card-actions> |
|---|
| 135 | 135 | <div layout="row" layout-align="start center" class="margin"> |
|---|
| 136 | 136 | <span flex></span> |
|---|
| 137 | | - <button [disabled]="!packForm.form.valid" md-raised-button color="primary" (click)="save()">Save</button> |
|---|
| 137 | + <button [disabled]="!form.form.valid" md-raised-button color="primary" (click)="save()">Save</button> |
|---|
| 138 | 138 | <button md-button (click)="goBack()">Cancel</button> |
|---|
| 139 | 139 | </div> |
|---|
| 140 | 140 | </md-card-actions> |
|---|