♿️ added autofocus on first field of modal forms (#667)
added to modals: - invite user - add item - add collection - add folder
This commit is contained in:
parent
1193a93f86
commit
6bc5ac46b7
|
@ -14,7 +14,8 @@
|
||||||
<div class="modal-body" *ngIf="!loading">
|
<div class="modal-body" *ngIf="!loading">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="name">{{'name' | i18n}}</label>
|
<label for="name">{{'name' | i18n}}</label>
|
||||||
<input id="name" class="form-control" type="text" name="Name" [(ngModel)]="name" required>
|
<input id="name" class="form-control" type="text" name="Name" [(ngModel)]="name" required
|
||||||
|
appAutofocus>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="externalId">{{'externalId' | i18n}}</label>
|
<label for="externalId">{{'externalId' | i18n}}</label>
|
||||||
|
|
|
@ -19,7 +19,8 @@
|
||||||
<p>{{'inviteUserDesc' | i18n}}</p>
|
<p>{{'inviteUserDesc' | i18n}}</p>
|
||||||
<div class="form-group mb-4">
|
<div class="form-group mb-4">
|
||||||
<label for="emails">{{'email' | i18n}}</label>
|
<label for="emails">{{'email' | i18n}}</label>
|
||||||
<input id="emails" class="form-control" type="text" name="Emails" [(ngModel)]="emails" required>
|
<input id="emails" class="form-control" type="text" name="Emails" [(ngModel)]="emails" required
|
||||||
|
appAutoFocus>
|
||||||
<small class="text-muted">{{'inviteMultipleEmailDesc' | i18n : '20'}}</small>
|
<small class="text-muted">{{'inviteMultipleEmailDesc' | i18n : '20'}}</small>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
|
@ -12,8 +12,8 @@
|
||||||
<div class="row" *ngIf="!editMode">
|
<div class="row" *ngIf="!editMode">
|
||||||
<div class="col-6 form-group">
|
<div class="col-6 form-group">
|
||||||
<label for="type">{{'whatTypeOfItem' | i18n}}</label>
|
<label for="type">{{'whatTypeOfItem' | i18n}}</label>
|
||||||
<select id="type" name="Type" [(ngModel)]="cipher.type" class="form-control"
|
<select id="type" name="Type" [(ngModel)]="cipher.type" class="form-control"
|
||||||
[disabled]="cipher.isDeleted">
|
[disabled]="cipher.isDeleted" appAutofocus>
|
||||||
<option *ngFor="let o of typeOptions" [ngValue]="o.value">{{o.name}}</option>
|
<option *ngFor="let o of typeOptions" [ngValue]="o.value">{{o.name}}</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<label for="name">{{'name' | i18n}}</label>
|
<label for="name">{{'name' | i18n}}</label>
|
||||||
<input id="name" class="form-control" type="text" name="Name" [(ngModel)]="folder.name" required>
|
<input id="name" class="form-control" type="text" name="Name" [(ngModel)]="folder.name" required
|
||||||
|
appAutofocus>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
<button type="submit" class="btn btn-primary btn-submit" [disabled]="form.loading">
|
||||||
|
|
Loading…
Reference in New Issue