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:
parent
3db815b969
commit
dc92f07232
2 changed files with 62 additions and 15 deletions
|
|
@ -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}}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue