]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/eg2/src/app/staff/login.component.html
LP#1977554: (follow-up) style tweaks
[Evergreen.git] / Open-ILS / src / eg2 / src / app / staff / login.component.html
1 <div class="container">
2   <div class="col-lg-6 offset-lg-3">
3     <fieldset>
4       <legend class="mb-0" i18n><h1>Sign In</h1></legend>
5       <hr class="mt-1"/>
6       <form (ngSubmit)="handleSubmit()" #loginForm="ngForm" class="form-validated">
7
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>
10           <div class="col-8">
11             <input
12               type="text"
13               class="form-control"
14               id="username"
15               name="username"
16               required
17               autocomplete="username"
18               i18n-placeholder
19               placeholder="Username"
20               [(ngModel)]="args.username"/>
21           </div>
22         </div>
23
24         <div class="row row-cols-auto mt-3">
25           <label class="form-label col-form-label col-4 text-end fw-bold" for="password" i18n>Password</label>
26           <div class="col-8">
27             <div class="input-group p-0">
28               <input
29                 [type]="passwordVisible ? 'text' : 'password'"
30                 class="form-control"
31                 id="password"
32                 #password
33                 name="password"
34                 required
35                 autocomplete="current-password"
36                 i18n-placeholder
37                 placeholder="Password"
38                 spellcheck="false"
39                 [attr.aria-description]="ariaDescription"
40                 [(ngModel)]="args.password"/>
41               <button id="show_password" class="input-group-text pointer"
42                 type="button" aria-label="password visibility" aria-checked="false"
43                 (click)="togglePasswordVisibility()" >
44                 <span class="material-icons">{{ passwordVisible ? 'visibility' : 'visibility_off' }}</span>
45               </button>
46             </div>
47           </div>
48         </div>
49
50         <div class="row row-cols-auto mt-3" *ngIf="workstations && workstations.length">
51           <label class="form-label col-form-label col-4 text-end fw-bold" for="workstation" i18n>Workstation</label>
52           <div class="col-8">
53             <select
54               class="form-control"
55               id="workstation"
56               name="workstation"
57               required
58               [(ngModel)]="args.workstation">
59               <option *ngFor="let ws of workstations" [value]="ws.name">
60                 {{ws.name}}
61               </option>
62             </select>
63           </div>
64         </div>
65
66         <div class="row row-cols-auto mt-3">
67           <div class="col-2 offset-4">
68             <button type="submit" class="btn btn-outline-dark" i18n>Sign In</button>
69           </div>
70           <div class="col-4" *ngIf="loginFailed">
71             <div class="badge rounded-pill bg-warning p-2" i18n>Login Failed</div>
72           </div>
73         </div>
74
75         <div class="row" *ngIf="pendingXactsDate">
76           <div class="col-lg-8 offset-lg-4 alert alert-warning mt-2" i18n>
77             Unprocessed offline transactions waiting for upload.
78             Last transaction added at {{pendingXactsDate | date:'short'}}.
79           </div>
80         </div>
81       </form>
82     </fieldset>
83   </div>
84 </div>