Alexis Hernandez
7 years ago
5 changed files with 56 additions and 12 deletions
@ -1,17 +1,17 @@ |
|||
<form [formGroup]="form" (ngSubmit)="onSubmit()" novalidate role="form" class="form-horizontal"> |
|||
|
|||
<div [ngClass]="{ 'has-success': errorService.hasCorrectValue(form, 'transactionId'), 'has-error': errorService.hasWrongValue(form, |
|||
'transactionId') }" class="form-group" > |
|||
<div [ngClass]="{ 'has-success': errorService.hasCorrectValue(form, 'searchField'), 'has-error': errorService.hasWrongValue(form, |
|||
'searchField') }" class="form-group" > |
|||
|
|||
<div class="col-xs-10 col-sm-10 col-md-offset-3 col-md-6 col-lg-offset-3 col-lg-6"> |
|||
<input maxlength="64" formControlName="transactionId" type="text" id="transactionId" class="form-control" placeholder="{{ 'label.transactionId' | translate }}"> |
|||
<input maxlength="64" formControlName="searchField" type="text" id="searchField" class="form-control" placeholder="{{ 'label.searchField' | translate }}"> |
|||
</div> |
|||
|
|||
<div class="text-left col-sm-offset-2"> |
|||
<input type="submit" [disabled]="!form.valid" value="{{ 'action.find' | translate }}" class="btn btn-primary"> |
|||
</div> |
|||
<div [hidden]="!errorService.hasWrongValue(form, 'transactionId')" class="col-xs-10 col-sm-10 col-md-offset-3 col-md-6 col-lg-offset-3 col-lg-6"> |
|||
<span class="help-block">{{ errorService.getFieldError(form, 'transactionId') | translate }}</span> |
|||
<div [hidden]="!errorService.hasWrongValue(form, 'searchField')" class="col-xs-10 col-sm-10 col-md-offset-3 col-md-6 col-lg-offset-3 col-lg-6"> |
|||
<span class="help-block">{{ errorService.getFieldError(form, 'searchField') | translate }}</span> |
|||
</div> |
|||
</div> |
|||
</form> |
|||
|
Loading…
Reference in new issue