mirror of https://github.com/keeweb/keeweb.git
37 lines
1.7 KiB
Handlebars
37 lines
1.7 KiB
Handlebars
<div class="gen">
|
|
<div>{{res 'genLen'}}: <span class="gen__length-range-val">{{opt.length}}</span>
|
|
<i class="fa fa-sync-alt gen__btn-refresh gen__top-btn" title="{{res 'genNewPass'}}"></i>
|
|
{{#unless showToggleButton}}
|
|
<input type="checkbox" id="gen__check-hide" class="gen__check-hide" {{#if hide}}checked{{/if}}>
|
|
<label for="gen__check-hide" class="fa gen__top-btn gen__check-hide-label"
|
|
{{#if hide}}
|
|
title="{{res 'genShowPass'}}"
|
|
{{else}}
|
|
title="{{res 'genHidePass'}}"
|
|
{{/if}}
|
|
> </label>
|
|
{{/unless}}
|
|
</div>
|
|
<select class="gen__sel-tpl input-base">
|
|
{{#each presets as |ps|}}
|
|
<option value="{{ps.name}}" {{#ifeq ps.name ../preset}}selected{{/ifeq}}>{{ps.title}}</option>
|
|
{{/each}}
|
|
{{#if showTemplateEditor}}
|
|
<option value="...">...</option>
|
|
{{/if}}
|
|
</select>
|
|
<input type="range" class="gen__length-range" value="{{opt.pseudoLength}}" min="0" max="25" />
|
|
<div>
|
|
{{#with (lookupfield presets "name" preset)}}
|
|
{{#each options as |optn|}}
|
|
{{#ifeq optn.type "checkbox"}}
|
|
<div class="gen__check"><input type="checkbox" id="gen__check-{{optn.name}}"
|
|
data-id="{{optn.name}}" {{#if (lookup ../../opt optn.name)}}checked{{/if}}><label for="gen__check-{{optn.name}}">{{optn.label}}</label></div>
|
|
{{/ifeq}}
|
|
{{/each}}
|
|
{{/with}}
|
|
</div>
|
|
<div class="gen__result"></div>
|
|
<div class="gen__btn-wrap"><button class="gen__btn-ok">{{btnTitle}}</button></div>
|
|
</div>
|