textarea input and multiline output for Customer.remark (was missing)

This commit is contained in:
Michael Hoennig 2019-05-03 00:12:41 +02:00
parent 8c367ab566
commit 0b3f4d4a03
2 changed files with 3 additions and 3 deletions

View File

@ -63,7 +63,7 @@
</dd>
<dt><span jhiTranslate="hsadminNgApp.customer.remark">Remark</span></dt>
<dd>
<span>{{customer.remark}}</span>
<span [innerHTML]="customer.remark | linebreaks"></span>
</dd>
</dl>

View File

@ -198,8 +198,8 @@
</div>
<div class="form-group">
<label class="form-control-label" jhiTranslate="hsadminNgApp.customer.remark" for="field_remark">Remark</label>
<input type="text" class="form-control" name="remark" id="field_remark"
[(ngModel)]="customer.remark" maxlength="160"/>
<textarea class="form-control" name="remark" id="field_remark" rows="3"
[(ngModel)]="customer.remark" maxlength="160"></textarea>
<div [hidden]="!(editForm.controls.remark?.dirty && editForm.controls.remark?.invalid)">
<small class="form-text text-danger"
[hidden]="!editForm.controls.remark?.errors?.maxlength" jhiTranslate="entity.validation.maxlength" [translateValues]="{ max: 160 }">