86 lines
No EOL
4.3 KiB
Cheetah
Executable file
86 lines
No EOL
4.3 KiB
Cheetah
Executable file
<div class="col-md-12">
|
|
<div class="panel panel-default">
|
|
<div class="panel-heading">{{name}}</div>
|
|
<div class="panel-body">
|
|
<table class="table table-hover table-condensed">
|
|
<thead><tr>
|
|
{{#params}}
|
|
<th>{{.getNiceName()}}</th>
|
|
{{/params}}
|
|
<th>
|
|
<button type="button" class="btn btn-default pull-left" data-toggle="modal" data-target="#configureModal">+</button>
|
|
</th>
|
|
</tr></thead>
|
|
{{#data}}
|
|
<tr {{#.disabled}}class="active"{{/.disabled}}>
|
|
{{#.getConfiguration()}}
|
|
<td>
|
|
{{#.isTypeBoolean()}}
|
|
<input type="checkbox" {{#.getBoolean()}}checked{{/.getBoolean()}} disabled />
|
|
{{/.isTypeBoolean()}}
|
|
{{^.isTypeBoolean()}}{{.getString()}}{{/.isTypeBoolean()}}
|
|
</td>
|
|
{{/.getConfiguration()}}
|
|
<td class="text-right">
|
|
<button type="button" class="btn btn-default btn-xs" title="Edit">
|
|
<span class="glyphicon glyphicon-wrench" aria-hidden="true"></span>
|
|
</button>
|
|
{{^.enabled}}
|
|
<button type="button" class="btn btn-default btn-xs" title="Disable">
|
|
<span class="glyphicon glyphicon-ban-circle" aria-hidden="true"></span>
|
|
</button>
|
|
{{/.enabled}}
|
|
{{#.enabled}}
|
|
<button type="button" class="btn btn-default btn-xs" title="Activate">
|
|
<span class="glyphicon glyphicon-ok-circle" aria-hidden="true"></span>
|
|
</button>
|
|
{{/.enabled}}
|
|
<button type="button" class="btn btn-default btn-xs" title="Remove">
|
|
<span class="glyphicon glyphicon-remove" aria-hidden="true"></span>
|
|
</button>
|
|
</td>
|
|
</tr>
|
|
{{/data}}
|
|
</table>
|
|
</div>
|
|
<div class="panel-footer clearfix">
|
|
<button type="button" class="btn btn-primary pull-right">Apply Configuration</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Modal -->
|
|
<div class="modal fade" id="configureModal" tabindex="-1" role="dialog" aria-labelledby="configureModalLabel">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
<h4 class="modal-title" id="configureModalLabel">Configure</h4>
|
|
</div>
|
|
<form class="form-horizontal">
|
|
<div class="modal-body">
|
|
{{#params}}
|
|
<div class="form-group">
|
|
<label for="{{.getName()}}" class="control-label col-xs-2">{{.getNiceName()}}</label>
|
|
<div class="col-xs-10">
|
|
{{#.isTypeString()}}
|
|
<input type="text" class="form-control" id="{{.getName()}}" placeholder="{{.getNiceName()}}">
|
|
{{/.isTypeString()}}
|
|
{{#.isTypeInt()}}
|
|
<input type="number" class="form-control" id="{{.getName()}}">
|
|
{{/.isTypeInt()}}
|
|
{{#.isTypeBoolean()}}
|
|
<input type="checkbox" class="form-control" id="{{.getName()}}">
|
|
{{/.isTypeBoolean()}}
|
|
</div>
|
|
</div>
|
|
{{/params}}
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
|
|
<button type="submit" class="btn btn-success">Save</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div> |