2021-01-04 17:37:10 +00:00
<!DOCTYPE html>
< html >
< head >
{% include "common/common-head.html" %}
< / head >
< body class = "hold-transition skin-blue sidebar-mini" >
< div class = "wrapper" >
{% include "common/page-header.html" %}
{% with pageselected="outlets" %}
{% include "common/sidebar-menu.html" %}
{% endwith %}
<!-- Content Wrapper. Contains page content -->
< div class = "content-wrapper" >
<!-- Main content -->
< section class = "content" >
< div class = "row" >
< div class = "col-xs-12" >
< div class = "box box-info" >
< div class = "box-header with-border" >
< h3 class = "box-title" > Outlet configuration< / h3 >
< / div >
<!-- /.box - header -->
<!-- form start -->
< form class = "form-horizontal" method = "post" >
< div class = "box-body" >
< div class = "form-group" >
< label for = "num" class = "col-sm-2 control-label" > Outlet #< / label >
< div class = "col-sm-10" >
< input type = "text" class = "form-control" id = "num" disabled = "" value = "{{ outlet.Num }}" >
< / div >
< / div >
< div class = "form-group" >
< label for = "description" class = "col-sm-2 control-label" > Description< / label >
< div class = "col-sm-10" >
< input type = "text" class = "form-control" id = "description" name = "description" placeholder = "Enter a meaningful description"
value="{{ outlet.Description }}">
< / div >
< / div >
< div class = "form-group" >
< label for = "onboot" class = "col-sm-2 control-label" > On Boot< / label >
< div class = "col-sm-10" >
< select class = "form-control" id = "onboot" name = "onboot" >
{% for i in onboot_values %}
{% if i == outlet.Channel.OnBoot %}
< option value = "{{ i }}" selected > {{ i }}< / option >
{% else %}
< option value = "{{ i }}" > {{ i }}< / option >
{% endif %}
{% endfor %}
< / select >
< / div >
< / div >
2021-01-05 10:27:49 +00:00
< div class = "form-group" >
2021-01-05 16:34:23 +00:00
< label for = "mqttstatetopic" class = "col-sm-2 control-label" > MQTT State Topic< / label >
2021-01-05 10:27:49 +00:00
< div class = "col-sm-10" >
2021-01-05 16:34:23 +00:00
< input type = "text" class = "form-control" id = "mqttstatetopic" name = "mqttstatetopic" placeholder = "MQTT State Topic without prefix (defaults to board port name)"
value="{{ outlet.Channel.MQTTStateTopic }}">
< / div >
< / div >
< div class = "form-group" >
< label for = "mqttcommandtopic" class = "col-sm-2 control-label" > MQTT Command Topic< / label >
< div class = "col-sm-10" >
< input type = "text" class = "form-control" id = "mqttcommandtopic" name = "mqttcommandtopic" placeholder = "MQTT Command Topic without prefix (defaults to board port name)"
value="{{ outlet.Channel.MQTTCommandTopic }}">
2021-01-05 10:27:49 +00:00
< / div >
< / div >
2021-01-04 17:37:10 +00:00
< div class = "form-group" >
< label for = "board" class = "col-sm-2 control-label" > Board< / label >
< div class = "col-sm-10" >
2021-01-05 13:50:11 +00:00
< input type = "text" class = "form-control" id = "board" disabled = "" value = "{{ outlet.Channel.Parent().Name }}" >
2021-01-04 17:37:10 +00:00
< / div >
< / div >
< div class = "form-group" >
< label for = "channel" class = "col-sm-2 control-label" > Board port< / label >
< div class = "col-sm-10" >
2021-01-05 13:50:11 +00:00
< input type = "text" class = "form-control" id = "channel" disabled = "" value = "{{ outlet.Channel.Name() }}" >
2021-01-04 17:37:10 +00:00
< / div >
< / div >
< div class = "form-group" >
< label for = "channel" class = "col-sm-2 control-label" > Board port #< / label >
< div class = "col-sm-10" >
< input type = "text" class = "form-control" id = "channel" disabled = "" value = "{{ outlet.Channel.Num }}" >
< / div >
< / div >
< / div >
<!-- /.box - body -->
< div class = "box-footer" >
< button type = "submit" class = "btn btn-info pull-right" > Save< / button >
< / div >
<!-- /.box - footer -->
< / form >
< / div >
< / div >
<!-- /.col -->
< / div >
<!-- /.row -->
< / section >
<!-- /.content -->
< / div >
<!-- /.content - wrapper -->
{% include "common/footer.html" %}
< / div >
<!-- ./wrapper -->
{% include "common/common-js.html" %}
< / body >
< / html >