11< app-form-header [backButton] ="backButton " [title] ="title "> </ app-form-header >
22< form (ngSubmit) ="onSubmit() " class ="os2-form p-3 mt-4 ">
3- < div *ngIf ="errorMessages " class ="error-messages p-3 ">
4- < ul class ="mb-0 ">
5- < li *ngFor ="let error of errorMessages ">
6- {{error}}
7- </ li >
8- </ ul >
9- </ div >
3+ < div *ngIf ="errorMessages " class ="error-messages p-3 ">
4+ < ul class ="mb-0 ">
5+ < li *ngFor ="let error of errorMessages ">
6+ {{error}}
7+ </ li >
8+ </ ul >
9+ </ div >
1010
11- < div class ="row mb-5 ">
12- < div class ="form-group mt-3 col-12 ">
13- < label class ="form-label " for ="name "> {{'QUESTION.GIVE-PAYLOADDECODER-NAME' | translate}}</ label > *
14- < input type ="text "
15- class ="form-control "
16- id ="name "
17- name ="name "
18- [placeholder] ="'QUESTION.GIVE-PAYLOADDECODER-NAME-PLACEHOLDER' | translate "
19- maxlength ="50 "
20- required
21- [(ngModel)] ="payloadDecoder.name "
22- [ngClass] ="{'is-invalid' : formFailedSubmit && errorFields.includes('name'), 'is-valid' : formFailedSubmit && !errorFields.includes('name')} ">
23- </ div >
11+ < div class ="row mb-5 ">
12+ < div class ="form-group mt-3 col-12 ">
13+ < label class ="form-label " for ="name "> {{'QUESTION.GIVE-PAYLOADDECODER-NAME' | translate}}</ label > *
14+ < input type ="text " class ="form-control " id ="name " name ="name "
15+ [placeholder] ="'QUESTION.GIVE-PAYLOADDECODER-NAME-PLACEHOLDER' | translate " maxlength ="50 " required
16+ [(ngModel)] ="payloadDecoder.name "
17+ [ngClass] ="{'is-invalid' : formFailedSubmit && errorFields.includes('name'), 'is-valid' : formFailedSubmit && !errorFields.includes('name')} ">
2418 </ div >
19+ </ div >
2520
26- < div class ="row mb-5 ">
27- < div class ="form-group mt-3 col-12 ">
28- < label class ="form-label " for ="decodingFunction "> {{'QUESTION.GIVE-PAYLOADDECODER-DECODINGFUNCTION' | translate}}</ label > *
29- < textarea
30- id ="decodingFunction "
31- name ="decodingFunction "
32- [rows] ="20 "
33- class ="form-control "
34- [(ngModel)] ="payloadDecoder.decodingFunction "
35- [ngClass] ="{'is-invalid' : formFailedSubmit && errorFields.includes('decodingFunction'), 'is-valid' : formFailedSubmit && !errorFields.includes('decodingFunction')} "> </ textarea >
36- </ div >
21+ < div class ="row mb-5 ">
22+ < div class ="form-group mt-3 col-12 ">
23+ < label class ="form-label "
24+ for ="decodingFunction "> {{'QUESTION.GIVE-PAYLOADDECODER-DECODINGFUNCTION' | translate}}</ label > *
25+ < textarea id ="decodingFunction " name ="decodingFunction " [rows] ="20 " class ="form-control "
26+ [(ngModel)] ="payloadDecoder.decodingFunction "
27+ [ngClass] ="{'is-invalid' : formFailedSubmit && errorFields.includes('decodingFunction'), 'is-valid' : formFailedSubmit && !errorFields.includes('decodingFunction')} "> </ textarea >
3728 </ div >
29+ </ div >
3830
39- < div class ="form-group mt-5 ">
40- < button (click) ="routeBack() " class ="btn btn-light " type ="button "> {{ 'GEN.CANCEL' | translate}}</ button >
41- < button class ="btn btn-dark ml-2 " type ="submit "> {{ 'PAYLOAD-DECODER.SAVE' | translate}}</ button >
42- </ div >
31+ < div class ="form-group mt-5 ">
32+ < button (click) ="routeBack() " class ="btn btn-secondary " type ="button "> {{ 'GEN.CANCEL' | translate}}</ button >
33+ < button class ="btn btn-primary ml-2 " type ="submit "> {{ 'PAYLOAD-DECODER.SAVE' | translate}}</ button >
34+ </ div >
4335</ form >
0 commit comments