1212 See the License for the specific language governing permissions and
1313 limitations under the License.
1414-->
15- < div style =" margin-left: 1.75%; margin-right: 1.75%; margin-top: 4.5px ">
15+ < div class =" m-2 ">
1616 < form [formGroup] ="tokenGenFrom ">
1717 < fieldset >
1818 < div class ="fields ">
@@ -26,38 +26,43 @@ <h3>Token Generation</h3>
2626 token as an authorization bearer token. Copy the JWT token from the resulting text area and protect
2727 it
2828 securely from others as this token represents your identity and is active until expired.</ label >
29- < label class ="icon-label "> < mat-icon class ="reduce-icon-size "> mode_comment</ mat-icon > Comment:</ label >
30- < input class ="mb-2 " formControlName ="comment " (keydown.enter) ="generateToken() " type ="text " tabindex ="1 "
31- autofocus size ="255 " maxlength ="255 ">
32- < label class ="icon-label " *ngIf ="comment.invalid " style ="color: red; "> < mat-icon
33- class ="reduce-icon-size "> warning</ mat-icon > Invalid comment!</ label >
34-
3529 < label class ="icon-label "> < mat-icon class ="reduce-icon-size "> info</ mat-icon > Configured maximum
3630 lifetime: {{tssStatus.maximumLifetimeText}} < mat-icon class ="reduce-icon-size "
3731 *ngIf ="'Unlimited lifetime' === tssStatus.maximumLifetimeText "> priority_high</ mat-icon > </ label >
3832 < div *ngIf ="tssStatus.lifespanInputEnabled ">
39- < label class ="icon-label "> < mat-icon class ="reduce-icon-size "> access_time_filled</ mat-icon > Lifetime
40- (days, hours, mins):</ label >
41- < table >
42- < tr >
43- < td > < input formControlName ="lifespanDays " type ="number " step ="1 " min ="0 " max ="3650 "
44- value ="0 " size ="3 "> </ td > <!-- 10 years limit -->
45- < td > < input formControlName ="lifespanHours " type ="number " step ="1 " min ="0 " max ="23 " value ="1 "
46- size ="3 "> </ td >
47- < td > < input formControlName ="lifespanMins " type ="number " step ="1 " min ="0 " max ="59 " value ="0 "
48- size ="3 "> </ td >
49- </ tr >
50- </ table >
33+ < mat-form-field class ="pe-1 " style ="width: 6% ">
34+ < mat-label > Lifetime Days</ mat-label >
35+ < input matInput type ="number " formControlName ="lifespanDays " type ="number " step ="1 " min ="0 "
36+ max ="3650 " value ="0 ">
37+ </ mat-form-field >
38+ < mat-form-field class ="pe-1 " style ="width: 6% ">
39+ < mat-label > Hours</ mat-label >
40+ < input matInput type ="number " formControlName ="lifespanHours " type ="number " step ="1 " min ="0 "
41+ max ="23 " value ="1 ">
42+ </ mat-form-field >
43+ < mat-form-field style ="width: 6% ">
44+ < mat-label > Minutes</ mat-label >
45+ < input matInput type ="number " formControlName ="lifespanMins " type ="number " step ="1 " min ="0 "
46+ max ="59 " value ="0 ">
47+ </ mat-form-field >
48+
5149 < label class ="icon-label "
5250 *ngIf ="lifespanDays.invalid || lifespanHours.invalid || lifespanMins.invalid || tokenGenFrom.errors?.allZero "
5351 style ="color: red; "> < mat-icon class ="reduce-icon-size "> warning</ mat-icon > Invalid
5452 lifetime!</ label >
5553 </ div >
54+ < mat-form-field style ="width: 18%; ">
55+ < mat-label class ="icon-label "> < mat-icon > mode_comment</ mat-icon > Comment</ mat-label >
56+ < input matInput placeholder ="Comment " (keydown.enter) ="generateToken() " formControlName ="comment ">
57+ </ mat-form-field >
58+ < label class ="icon-label " *ngIf ="comment.invalid " style ="color: red; "> < mat-icon
59+ class ="reduce-icon-size "> warning</ mat-icon > Invalid comment!</ label >
5660
5761 < div *ngIf ="tssStatus.impersonationEnabled ">
58- < label class ="icon-label "> < mat-icon class ="reduce-icon-size "> person</ mat-icon > Generating token for
59- (impersonation):</ label >
60- < input formControlName ="impersonation " type ="text " size ="50 " maxlength ="255 ">
62+ < mat-form-field style ="width: 18%; ">
63+ < mat-label class ="icon-label "> < mat-icon > person</ mat-icon > Generating token for (impersonation):</ mat-label >
64+ < input matInput formControlName ="impersonation ">
65+ </ mat-form-field >
6166 < label class ="icon-label " *ngIf ="impersonation.invalid " style ="color: red; "> < i
6267 class ="icon-warning "> </ i > Invalid doAs!</ label >
6368 </ div >
@@ -68,17 +73,17 @@ <h3>Token Generation</h3>
6873 < mat-icon class ="reduce-icon-size " style ="color: #ae2817; "> warning</ mat-icon >
6974 </ span >
7075
71- < div style =" align-content: center; width: 25%; " >
72- < button (click) ="generateToken() "
76+ < div >
77+ < button mat-stroked-button (click) ="generateToken() "
7378 [disabled] ="!tssStatus.tokenManagementEnabled || !tssStatus.allowedTssForTokengen || !tokenGenFrom.valid "
74- type =" button " class =" btn btn-primary btn-block " tabindex =" 2 ">
79+ color =" success ">
7580 Generate Token
7681 </ button >
7782 </ div >
7883 </ fieldset >
7984 </ form >
8085</ div >
81-
86+ < hr >
8287< div style ="margin-left: 1.75%; margin-right: 1.75%; margin-top: 10px ">
8388 < span *ngIf ="hasResult " style ="color:black; margin-left: 1.75%; margin-right: 1.75%; ">
8489 < label class ="icon-label " (click) ="copyTextToClipboard('accessToken') "> < mat-icon
@@ -104,7 +109,7 @@ <h3>Token Generation</h3>
104109 </ div >
105110
106111 < label class ="icon-label " (click) ="copyTextToClipboard('target_url') "> < mat-icon
107- class ="reduce-icon-size "> content_copy</ mat-icon > Target Base URL:</ label >
112+ class ="reduce-icon-size "> content_copy</ mat-icon > Target Base URL:</ label >
108113 < div class ="tokenResultDisplay ">
109114 < span id ="target_url "> {{tokenResultData.targetURL}}</ span >
110115 </ div >
0 commit comments