webadmin/resources/WebContent/page/ConfigPage.tmpl

34 lines
1.6 KiB
Cheetah
Raw Normal View History

<div class="col-md-12">
<div class="panel panel-default">
<div class="panel-heading">Service Status</div>
<div class="panel-body">
<table class="table table-hover">
<thead><tr>
2015-08-07 14:46:01 +00:00
{{#headers}}<th>Service</th>{{#headers}}
</tr></thead>
2015-08-07 14:46:01 +00:00
{{#data}}
<tr {{^.enabled}}class="active"{{/.enabled}}>
2015-08-07 14:46:01 +00:00
{{#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}}
{{#.enabled}}<button type="button" class="btn btn-success btn-xs">Activate</button>{{/.enabled}}
<button type="button" class="btn btn-danger btn-xs">Remove</button>
</td>
</tr>
2015-08-07 14:46:01 +00:00
{{/data}}
</table>
</div>
<div class="panel-footer text-right">
<button type="button" class="btn btn-primary">Cancel</button>
<button type="button" class="btn btn-success">Save</button>
</div>
</div>
</div>