aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-02-27 10:40:52 +0100
committerAlex Auvolat <alex@adnab.me>2020-02-27 10:41:35 +0100
commit7fa2842f5d49e87acf92bcfb3602c52bf482258e (patch)
treede42a028c2e19d80d52bb40201cbf1945f01eb1d /templates
parent19975e981ed0f1fbd96644d95ede5435bfbdccfc (diff)
downloadeasybridge-7fa2842f5d49e87acf92bcfb3602c52bf482258e.tar.gz
easybridge-7fa2842f5d49e87acf92bcfb3602c52bf482258e.zip
Do not put password in form on modify
Diffstat (limited to 'templates')
-rw-r--r--templates/config.html8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/config.html b/templates/config.html
index 2d64444..9018811 100644
--- a/templates/config.html
+++ b/templates/config.html
@@ -28,7 +28,7 @@
{{$errors := .Errors}}
{{range $i, $schema := .Schema}}
<div class="form-group">
- <label for="{{$schema.Name}}">{{$schema.Description}}</label>
+ <label for="{{$schema.Name}}">{{$schema.Description}}:</label>
{{if $schema.FixedValue}}
<input type="text"
disabled="disabled"
@@ -51,6 +51,12 @@
class="form-control"
name="{{$schema.Name}}"
id="{{$schema.Name}}"
+ placeholder="(not modified if left empty)" />
+ {{else if $schema.IsNumeric}}
+ <input type="number"
+ class="form-control"
+ name="{{$schema.Name}}"
+ id="{{$schema.Name}}"
value="{{index $config $schema.Name}}" />
{{else}}
<input type="text"