Skip to content

Commit

Permalink
adjust styling of generate secure password button
Browse files Browse the repository at this point in the history
  • Loading branch information
njaeggi authored and kcinay055679 committed May 30, 2023
1 parent 3088355 commit 7a6fb3f
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
25 changes: 14 additions & 11 deletions frontend/app/templates/components/encryptable/form.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,25 @@
</form.element>
<PasswordStrengthMeter class="col-12 px-0 mb-2 mb-md-0" @password={{this.changeset.cleartextPassword}}/>
<div class="d-flex flex-column border border-mute border-radius-4 p-2">
<label>
Symbols
<Input
id="withSymbols"
@type="checkbox"
@checked={{this.withSymbols}}></Input>
</label>
<div class="ml-2 mt-1">{{t "encryptable/credentials.form.passwordLength"}} </div>
<label for="formControlRange">
{{this.passwordLength}}
<Input @type="range" class="custom-range" id="formControlRange" @value={{this.passwordLength}} min="14" max="32">
</Input>
</label>
<button id="password-generate-button" class="btn btn-secondary btn-block col-lg-7 mb-md-4" {{on "click" this.setRandomPassword}}
tabindex="4">
{{t "encryptable/credentials.edit.random_password"}}
</button>
<div class="d-flex flex-row justify-content-around">
<label>
Symbols
<Input
id="withSymbols"
@type="checkbox"
@checked={{this.withSymbols}}></Input>
</label>
<button id="password-generate-button" class="btn btn-secondary w-50 btn-sm col-lg-7 mb-md-4" {{on "click" this.setRandomPassword}}
tabindex="4">
{{t "encryptable/credentials.edit.random_password"}}
</button>
</div>
</div>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions frontend/translations/ch_be.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ ch_be:
blank: Läär
new:
title: Nöi Zuägangsdate
form:
passwordLength: "Password Längi: "
share:
title: Datei teilä

Expand Down
2 changes: 2 additions & 0 deletions frontend/translations/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ de:
blank: Leer
new:
title: Neue Zugangsdaten
form:
passwordLength: "Passwortlänge: "
share:
title: Datei teilen

Expand Down
2 changes: 2 additions & 0 deletions frontend/translations/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ en:
blank: none
new:
title: New Credentials
form:
passwordLength: "Password Length: "
share:
title: Share File

Expand Down
2 changes: 2 additions & 0 deletions frontend/translations/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ fr:
blank: Vide
new:
title: Nouveau compte
form:
passwordLength: "Longueur du mot de passe: "
share:
title: Partage fichier

Expand Down

0 comments on commit 7a6fb3f

Please sign in to comment.