summaryrefslogtreecommitdiffstats
path: root/templates/sysconfig/cfg-start.html
diff options
context:
space:
mode:
authorSimon Rettberg2015-02-09 19:03:26 +0100
committerSimon Rettberg2015-02-09 19:03:26 +0100
commit3262dfc8be9356bced77419652306bc507025fec (patch)
tree8384ca8493cea707dfd4878fcb68c7c56f126731 /templates/sysconfig/cfg-start.html
parentAdd sshd config module (diff)
downloadslx-admin-3262dfc8be9356bced77419652306bc507025fec.tar.gz
slx-admin-3262dfc8be9356bced77419652306bc507025fec.tar.xz
slx-admin-3262dfc8be9356bced77419652306bc507025fec.zip
Add support for editing existing configs
Diffstat (limited to 'templates/sysconfig/cfg-start.html')
-rw-r--r--templates/sysconfig/cfg-start.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/sysconfig/cfg-start.html b/templates/sysconfig/cfg-start.html
index 7493bf55..50f366ea 100644
--- a/templates/sysconfig/cfg-start.html
+++ b/templates/sysconfig/cfg-start.html
@@ -1,8 +1,9 @@
<form role="form" method="post" action="?do=SysConfig&amp;action=addconfig&amp;step={{step}}">
<input type="hidden" name="token" value="{{token}}">
+ <input type="hidden" name="edit" value="{{edit}}">
<div class="input-group">
<span class="input-group-addon">{{lang_name}} *</span>
- <input type="text" name="title" class="form-control" placeholder="{{lang_configuration}}" autofocus="autofocus">
+ <input type="text" name="title" value="{{title}}" class="form-control" placeholder="{{lang_configuration}}" autofocus="autofocus">
</div>
<hr>
<p>{{lang_configurationChoose}}</p>
@@ -14,10 +15,10 @@
<div class="input-group">
<span class="input-group-addon">
{{#unique}}
- <input type="radio" name="module[{{groupid}}]" value="{{moduleid}}" id="module{{moduleid}}">
+ <input type="radio" name="module[{{groupid}}]" value="{{moduleid}}" id="module{{moduleid}}" {{#active}}checked{{/active}}>
{{/unique}}
{{^unique}}
- <input type="checkbox" name="module[{{moduleid}}]" value="{{moduleid}}" id="module{{moduleid}}">
+ <input type="checkbox" name="module[{{moduleid}}]" value="{{moduleid}}" id="module{{moduleid}}" {{#active}}checked{{/active}}>
{{/unique}}
</span>
<label class="form-control" for="module{{moduleid}}">{{title}}</label>