1 <div class="container">
2 <div class="col-lg-6 offset-lg-3">
4 <legend class="mb-0" i18n><h1>Sign In</h1></legend>
6 <form (ngSubmit)="handleSubmit()" #loginForm="ngForm" class="form-validated">
8 <div class="row row-cols-auto">
9 <label class="form-label col-form-label fw-bold col-4 text-end" for="username" i18n>Username</label>
17 autocomplete="username"
19 placeholder="Username"
20 [(ngModel)]="args.username"/>
24 <div class="row row-cols-auto mt-3">
25 <label class="form-label col-form-label fw-bold col-4 text-end" for="password" i18n>Password</label>
33 autocomplete="current-password"
35 placeholder="Password"
36 [(ngModel)]="args.password"/>
40 <div class="row row-cols-auto mt-3" *ngIf="workstations && workstations.length">
41 <label class="form-label col-form-label col-4 text-end fw-bold" for="workstation" i18n>Workstation</label>
48 [(ngModel)]="args.workstation">
49 <option *ngFor="let ws of workstations" [value]="ws.name">
56 <div class="row row-cols-auto mt-3">
57 <div class="col-2 offset-4">
58 <button type="submit" class="btn btn-outline-dark" i18n>Sign In</button>
60 <div class="col-4" *ngIf="loginFailed">
61 <div class="badge rounded-pill bg-warning p-2" i18n>Login Failed</div>
65 <div class="row" *ngIf="pendingXactsDate">
66 <div class="col-lg-8 offset-lg-4 alert alert-warning mt-2" i18n>
67 Unprocessed offline transactions waiting for upload.
68 Last transaction added at {{pendingXactsDate | date:'short'}}.