Skip to content

Commit

Permalink
#1 additional field: show various type
Browse files Browse the repository at this point in the history
  • Loading branch information
syjer committed Apr 5, 2019
1 parent 9798b4d commit 87f2c6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/app/additional-field/additional-field.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
<div class="form-group row" [formArrayName]="field.name">
<label class="col-sm-3 col-form-label">{{field.labelDescription}}</label>
<div class="col-sm-9">
<input type="text" class="form-control" formControlName="0">
<input *ngIf="field.inputField" [attr.type]="field.inputType" [attr.placeholder]="field.placeholderDescription" class="form-control" formControlName="0">
<input *ngIf="field.euVat" [attr.type]="field.inputType" [attr.placeholder]="field.placeholderDescription" class="form-control" formControlName="0">
<textarea *ngIf="field.textareaField" class="form-control" [attr.placeholder]="field.placeholderDescription" formControlName="0"></textarea>
<select *ngIf="field.countryField" class="form-control" formControlName="0"></select>
<select *ngIf="field.selectField" class="form-control" formControlName="0"></select>
</div>
</div>
</div>

0 comments on commit 87f2c6f

Please sign in to comment.