Initial impl of configuration page

This commit is contained in:
Ziver Koc 2015-08-07 14:46:01 +00:00
parent 78cb41a39c
commit 813d48ca05
5 changed files with 80 additions and 55 deletions

View file

@ -4,14 +4,18 @@
<div class="panel-body">
<table class="table table-hover">
<thead><tr>
<th data-field="service">Service</th>
<th data-field="desc">Description</th>
<th data-field="action" class="text-right">Actions</th>
{{#headers}}<th>Service</th>{{#headers}}
</tr></thead>
{{! #data}}
{{#data}}
<tr {{^.enabled}}class="active"{{/.enabled}}>
<td>{{.getName()}}</td>
<td>{{.getValue()}}</td>
{{#params}}
<td>
{{#.isTypeBoolean()}}
<input type="checkbox" {{#.getValue()}}checked{{/.getValue()}} disabled />
{{/.isTypeBoolean()}}
{{^.isTypeBoolean()}}{{.getValue()}}{{/.isTypeBoolean()}}
</td>
{{/params}}
<td class="text-right">
<button type="button" class="btn btn-primary btn-xs">Edit</button>
{{^.enabled}}<button type="button" class="btn btn-default btn-xs">Disable</button>{{/.enabled}}
@ -19,7 +23,7 @@
<button type="button" class="btn btn-danger btn-xs">Remove</button>
</td>
</tr>
{{! /data}}
{{/data}}
</table>
</div>
<div class="panel-footer text-right">