summaryrefslogtreecommitdiffstats
path: root/templates
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
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')
-rw-r--r--templates/sysconfig/_page.html11
-rw-r--r--templates/sysconfig/cfg-start.html7
2 files changed, 14 insertions, 4 deletions
diff --git a/templates/sysconfig/_page.html b/templates/sysconfig/_page.html
index 2f46f2cf..438294e8 100644
--- a/templates/sysconfig/_page.html
+++ b/templates/sysconfig/_page.html
@@ -37,7 +37,8 @@
{{/needrebuild}}
name="rebuild" value="{{configid}}" title="{{lang_rebuild}}"><span class="glyphicon glyphicon-refresh"></span></button>
</td>
- <td>
+ <td class="slx-nowrap">
+ <a class="btn btn-success btn-xs" href="?do=SysConfig&amp;action=addconfig&amp;edit={{configid}}" title="{{lang_edit}}"><span class="glyphicon glyphicon-edit"></span></a>
<button class="btn btn-danger btn-xs" name="del" value="{{configid}}" title="{{lang_delete}}"><span class="glyphicon glyphicon-trash"></span></button>
</td>
</tr>
@@ -116,6 +117,14 @@
<div class="panel-heading">{{lang_legend}}</div>
<div class="panel-body">
<p>
+ <span class="btn btn-default btn-xs" title="{{lang_show}}"><span class="glyphicon glyphicon-eye-open"></span></span>
+ {{lang_showLong}}
+ </p>
+ <p>
+ <span class="btn btn-default btn-xs" title="{{lang_download}}"><span class="glyphicon glyphicon-download-alt"></span></span>
+ {{lang_downloadLong}}
+ </p>
+ <p>
<span class="btn btn-default btn-xs" title="{{lang_rebuild}}"><span class="glyphicon glyphicon-refresh"></span></span>
{{lang_rebuildLong}}
</p>
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>