1
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden.git synced 2025-12-04 05:18:30 +00:00

Added env variable to select config file. Initial work towards groups and added tooltips with descriptions and nicer names

This commit is contained in:
Daniel García 2019-02-04 01:37:25 +01:00
commit dc92f07232
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A
2 changed files with 62 additions and 15 deletions

View file

@ -60,17 +60,17 @@
<form class="form" id="config-form">
{{#each config}}
{{#if editable}}
<div class="form-group row">
<div class="form-group row" title="{{doc.description}}">
{{#case type "text" "number"}}
<label for="input_{{name}}" class="col-sm-2 col-form-label">{{name}}</label>
<div class="col-sm-9">
<label for="input_{{name}}" class="col-sm-3 col-form-label">{{doc.name}}</label>
<div class="col-sm-8">
<input class="form-control" id="input_{{name}}" type="{{type}}" name="{{name}}" value="{{value}}"
{{#if default}} placeholder="Default: {{default}}" {{/if}}>
</div>
{{/case}}
{{#case type "checkbox"}}
<div class="col-sm-2">{{name}}</div>
<div class="col-sm-9">
<div class="col-sm-3">{{doc.name}}</div>
<div class="col-sm-8">
<div class="form-check">
<input class="form-check-input" type="checkbox" id="input_{{name}}" name="{{name}}"
{{#if value}} checked {{/if}}>