2015-04-19 21:19:54 +02:00
|
|
|
<div id="customControlDialog" class="modal hide">
|
2015-04-18 11:45:57 +02:00
|
|
|
<div class="modal-header">
|
2015-04-19 21:19:54 +02:00
|
|
|
<h3 data-bind="text: title"></h3>
|
2015-04-18 11:45:57 +02:00
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form class="form-horizontal" data-bind="with: element">
|
2015-04-24 14:49:17 +02:00
|
|
|
<!-- ko if: $root.type() == "command" || $root.type() == "script" || $root.type() == "container" -->
|
2015-04-18 11:45:57 +02:00
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{ _('Name') }}</label>
|
|
|
|
<div class="controls">
|
2015-04-21 01:20:21 +02:00
|
|
|
<input style="width: 97%" data-bind="value: name, valueAllowUnset: true"></input>
|
2015-04-18 11:45:57 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-04-19 21:19:54 +02:00
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko if: $root.type() == "container" -->
|
2015-04-18 11:45:57 +02:00
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{ _('Layout') }}</label>
|
|
|
|
<div class="controls">
|
2015-04-22 09:30:04 +02:00
|
|
|
<select data-bind="options: $parent.layouts, optionsText: 'name', optionsValue: 'key', value: layout, valueAllowUnset: false"></select>
|
2015-04-19 21:19:54 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-04-21 01:20:21 +02:00
|
|
|
<!-- ko if: name && name() != "" -->
|
|
|
|
<div class="control-group">
|
2015-04-24 14:49:17 +02:00
|
|
|
<label class="control-label"><input type="checkbox" data-bind="checked: collapsed"></input>{{ _('Make Collapsed') }}</label>
|
2015-04-21 01:20:21 +02:00
|
|
|
</div>
|
2015-04-19 21:19:54 +02:00
|
|
|
<!-- /ko -->
|
2015-04-21 01:20:21 +02:00
|
|
|
<!-- /ko -->
|
|
|
|
|
2015-04-24 14:49:17 +02:00
|
|
|
<!-- ko if: $root.type() == "command" || $root.type() == "script" -->
|
2015-04-19 21:19:54 +02:00
|
|
|
<!-- ko if: $root.type() == "command" -->
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{ _('Commands') }}</label>
|
|
|
|
<div class="controls">
|
|
|
|
<textarea style="width: 97%; height: auto" data-bind="value: commands"></textarea>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-04-24 14:49:17 +02:00
|
|
|
<!-- /ko -->
|
|
|
|
<!-- ko if: $root.type() == "script" -->
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{ _('Script') }}</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input style="width: 97%" data-bind="value: script"></input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /ko -->
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label"><input type="checkbox" data-bind="checked: $root.useConfirm"></input>{{ _('Use Confirmation') }}</label>
|
|
|
|
</div>
|
|
|
|
<!-- ko if: $root.useConfirm() -->
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{ _('Message') }}</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input style="width: 97%" data-bind="value: confirm"></input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /ko -->
|
|
|
|
<!-- /ko -->
|
2015-04-19 21:19:54 +02:00
|
|
|
|
2015-04-24 14:49:17 +02:00
|
|
|
<!-- ko if: $root.type() == "command" || $root.type() == "script"-->
|
2015-04-19 21:19:54 +02:00
|
|
|
<div class="control-group">
|
2015-04-24 14:49:17 +02:00
|
|
|
<label class="control-label"><input type="checkbox" data-bind="checked: $root.useInputs"></input>{{ _('Use Inputs') }}</label>
|
2015-04-19 21:19:54 +02:00
|
|
|
</div>
|
|
|
|
<!-- ko if: $root.useInputs -->
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{ _('Inputs') }}</label>
|
|
|
|
<div class="row-fluid">
|
|
|
|
<div class="span12">
|
|
|
|
<div data-bind="css: $root.span('name')">{{ _('Name') }}</div>
|
|
|
|
<div data-bind="css: $root.span('parameter')">{{ _('Parameter') }}</div>
|
|
|
|
<div data-bind="css: $root.span('default')">{{ _('Default') }}</div>
|
|
|
|
<!-- ko if: $root.hasSlider -->
|
|
|
|
<div class="span2">{{ _('Min') }}</div>
|
|
|
|
<div class="span2">{{ _('Max') }}</div>
|
|
|
|
<div class="span2">{{ _('Step') }}</div>
|
|
|
|
<!-- /ko -->
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div data-bind="foreach: input">
|
|
|
|
<div class="row-fluid" style="margin-bottom: 5px">
|
|
|
|
<div data-bind="css: $root.span('name')"><input class="span12" data-bind="value: name"></input></div>
|
|
|
|
<div data-bind="css: $root.span('parameter')"><input class="span12" data-bind="value: parameter"></input></div>
|
2015-04-24 14:49:17 +02:00
|
|
|
<!-- ko ifnot: slider -->
|
2015-04-19 21:19:54 +02:00
|
|
|
<div data-bind="css: $root.span('default')"><input class="span12" data-bind="value: defaultValue"></input></div>
|
2015-04-24 14:49:17 +02:00
|
|
|
<!-- /ko -->
|
2015-04-22 09:30:04 +02:00
|
|
|
<!-- ko if: slider -->
|
2015-04-24 14:49:17 +02:00
|
|
|
<div class="span2"><input type="number" class="span12" data-bind="value: defaultValue"></input></div>
|
|
|
|
<div class="span2"><input type="number" class="span12" data-bind="value: slider.min"></input></div>
|
|
|
|
<div class="span2"><input type="number" class="span12" data-bind="value: slider.max"></input></div>
|
|
|
|
<div class="span1"><input type="number" class="span12" data-bind="value: slider.step"></input></div>
|
2015-04-22 09:30:04 +02:00
|
|
|
<div class="span1"><a href="#" title="Remove Input" class="btn btn-danger" data-bind="click: $root.removeInput"><i class="icon-trash"></i></a></div>
|
2015-04-19 21:19:54 +02:00
|
|
|
<!-- /ko -->
|
2015-04-22 09:30:04 +02:00
|
|
|
<div class="span1" data-bind="ifnot: slider, css: { 'offset5': $root.hasSlider() }"><a href="#" title="Remove Input" class="btn btn-danger" data-bind="click: $root.removeInput"><i class="icon-trash"></i></a></div>
|
2015-04-19 21:19:54 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row-fluid">
|
2015-04-22 09:30:04 +02:00
|
|
|
<div class="offset10 span1"><a href="#" title="Add Input" class="btn btn-primary" data-bind="click: $root.addInput"><i class="icon-plus"></i></a></div>
|
|
|
|
<div class="span1"><a href="#" title="Add Slider" class="btn btn-primary" data-bind="click: $root.addSliderInput"><i class="icon-plus"></i></a></div>
|
2015-04-19 21:19:54 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /ko -->
|
|
|
|
<!-- /ko -->
|
|
|
|
|
2015-04-24 14:49:17 +02:00
|
|
|
<!-- ko if: $root.type() == "command" -->
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label"><input type="checkbox" data-bind="checked: $root.useOutput"></input>{{ _('Use Output') }}</label>
|
|
|
|
</div>
|
|
|
|
<!-- ko if: $root.type() == "output" || ($root.type() == "command" && $root.useOutput()) -->
|
2015-04-19 21:19:54 +02:00
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{ _('Regex') }}</label>
|
|
|
|
<div class="controls">
|
2015-04-21 01:20:21 +02:00
|
|
|
<input style="width: 97%" data-bind="value: regex"></input>
|
2015-04-19 21:19:54 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{ _('Template') }}</label>
|
|
|
|
<div class="controls">
|
2015-04-21 01:20:21 +02:00
|
|
|
<input style="width: 97%" data-bind="value: template"></input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{ _('Default Message') }}</label>
|
|
|
|
<div class="controls">
|
2015-04-22 09:30:04 +02:00
|
|
|
<input style="width: 97%" data-bind="value: defaultValue"></input>
|
2015-04-18 11:45:57 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-04-19 21:19:54 +02:00
|
|
|
<!-- /ko -->
|
2015-04-24 14:49:17 +02:00
|
|
|
<!-- /ko -->
|
2015-04-19 21:19:54 +02:00
|
|
|
|
2015-04-18 11:45:57 +02:00
|
|
|
<!-- ko if: $data.parent && $data.parent.layout && $data.parent.layout() == 'horizontal_grid' -->
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{ _('Width') }}</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input data-bind="value: width, valueAllowUnset: false"></input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
|
|
<label class="control-label">{{ _('Offset') }}</label>
|
|
|
|
<div class="controls">
|
|
|
|
<input data-bind="value: offset, valueAllowUnset: true"></input>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- /ko -->
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<a href="#" class="btn" data-dismiss="modal">{{ _('Cancel') }}</a>
|
|
|
|
<a href="#" class="btn btn-primary" data-dismiss="modal" aria-hidden="true">{{ _('Confirm') }}</a>
|
|
|
|
</div>
|
|
|
|
</div>
|