- {{:helper.link('Configure', null, {'command' : 'configure'}, null, data.config ? 'selected' : null)}}
-
-
-
Port
- {{for data.ports}}
-
{{:value.dir}} Port
- {{/for}}
-
-
-
Input
- {{for data.ports}}
-
- {{:helper.link(' ', null, {'command' : 'switch_mode', 'mode' : 'in', 'dir' : value.dir}, null, value.input ? 'selected' : null)}}
-
- {{/for}}
-
-
-
Output
- {{for data.ports}}
-
- {{:helper.link(' ', null, {'command' : 'switch_mode', 'mode' : 'out', 'dir' : value.dir}, null, value.output ? 'selected' : null)}}
-
- {{/for}}
-
-
-
Filter
- {{for data.ports}}
-
- {{:helper.link(value.f_type ? value.f_type : 'None', null, {'command' : 'switch_filter', 'mode' : value.f_type, 'dir' : value.dir}, value.filter ? null : 'disabled', value.f_type ? 'selected' : null)}}
-
- {{/for}}
-
-
- {{:helper.link('Set Flow Rate Limit', null, {'command' : 'set_flow_rate'})}}
-
+
+ {{:helper.link(data.power ? 'On' : 'Off', null, {'command' : 'power'}, data.config ? 'disabled' : null)}}
+
+
+ {{:helper.link('Configure', null, {'command' : 'configure'}, null, data.config ? 'selected' : null)}}
+
+
+ {{if data.config}}
+
+
+
+
Port
+ {{for data.ports}}
+
{{:value.dir}} Port
+ {{/for}}
+
+
+
Input
+ {{for data.ports}}
+
+ {{:helper.link(' ', null, {'command' : 'switch_mode', 'mode' : 'in', 'dir' : value.dir}, null, value.input ? 'selected' : null)}}
+
+ {{/for}}
+
+
+
Output
+ {{for data.ports}}
+
+ {{:helper.link(' ', null, {'command' : 'switch_mode', 'mode' : 'out', 'dir' : value.dir}, null, value.output ? 'selected' : null)}}
+
+ {{/for}}
+
+
+
Filter
+ {{for data.ports}}
+
+ {{:helper.link(value.f_type ? value.f_type : 'None', null, {'command' : 'switch_filter', 'mode' : value.f_type, 'dir' : value.dir}, value.filter ? null : 'disabled', value.f_type ? 'selected' : null)}}
+
+ {{/for}}
+
+
+
+
+ Set Flow Rate Limit: {{:(data.set_flow_rate/10)}} L/s
+
+
+ {{:helper.link('Set Flow Rate Limit', null, {'command' : 'set_flow_rate'})}}
+
+
+ {{else}}
+
+
+
+
Port
+ {{for data.ports}}
+
{{:value.dir}} Port
+ {{/for}}
+
+
+
Mode
+ {{for data.ports}}
+
+ {{if value.input}}
+ Input
+ {{else value.output}}
+ Output
+ {{else value.f_type}}
+ {{:value.f_type}}
+ {{else}}
+ Disabled
+ {{/if}}
+
+ {{/for}}
+
+
+
+
+ Set Flow Rate Limit: {{:(data.set_flow_rate/10)}} L/s
+
+
+
+ Flow Rate: {{:(data.last_flow_rate/10)}} L/s
+
+ {{/if}}
\ No newline at end of file
diff --git a/nano/templates/omni_mixer.tmpl b/nano/templates/omni_mixer.tmpl
index 770af7fc12..e9ac60e1ba 100644
--- a/nano/templates/omni_mixer.tmpl
+++ b/nano/templates/omni_mixer.tmpl
@@ -1,101 +1,101 @@
-
-
- {{:helper.link(data.power ? 'On' : 'Off', null, {'command' : 'power'})}}
-
-
- {{:helper.link('Configure', null, {'command' : 'configure'}, null, data.config ? 'selected' : null)}}
-
-
- {{if data.config}}
-
-
-
-
Port
- {{for data.ports}}
-
{{:value.dir}} Port
- {{/for}}
-
-
-
Input
- {{for data.ports}}
-
- {{:helper.link(' ', null, value.input ? {'command' : 'switch_mode', 'mode' : 'none', 'dir' : value.dir} : {'command' : 'switch_mode', 'mode' : 'in', 'dir' : value.dir}, value.output ? 'disabled' : null, value.input ? 'selected' : null)}}
-
- {{/for}}
-
-
-
Output
- {{for data.ports}}
-
- {{:helper.link(' ', null, value.output ? null : {'command' : 'switch_mode', 'mode' : 'out', 'dir' : value.dir}, null, value.output ? 'selected' : null)}}
-
- {{/for}}
-
-
-
Concentration
- {{for data.ports}}
-
- {{:helper.link( value.input ? helper.round(value.concentration*100)+' %' : '-', null, {'command' : 'switch_con', 'dir' : value.dir}, value.input ? null : 'disabled')}}
-
- {{/for}}
-
-
-
Lock
- {{for data.ports}}
-
- {{:helper.link(' ', value.con_lock ? 'locked' : 'unlocked', {'command' : 'switch_conlock', 'dir' : value.dir}, value.input ? null : 'disabled', value.con_lock ? 'selected' : null)}}
-
- {{/for}}
-
-
-
-
- Set Flow Rate Limit: {{:(data.set_flow_rate/10)}} L/s
-
-
- {{:helper.link('Set Flow Rate Limit', null, {'command' : 'set_flow_rate'})}}
-
-
- {{else}}
-
-
-
-
Port
- {{for data.ports}}
-
{{:value.dir}} Port
- {{/for}}
-
-
-
Mode
- {{for data.ports}}
-
- {{if value.input}}
- Input
- {{else value.output}}
- Output
- {{else}}
- Disabled
- {{/if}}
-
- {{/for}}
-
-
-
Concentration
- {{for data.ports}}
-
- {{if value.input}}
- {{:helper.round(value.concentration*100)}} %
- {{else}}
- -
- {{/if}}
-
- {{/for}}
-
-
-
-
- Flow Rate: {{:(data.last_flow_rate/10)}} L/s
-
-
- {{/if}}
+
+
+ {{:helper.link(data.power ? 'On' : 'Off', null, {'command' : 'power'}, data.config ? 'disabled' : null)}}
+
+
+ {{:helper.link('Configure', null, {'command' : 'configure'}, null, data.config ? 'selected' : null)}}
+
+
+ {{if data.config}}
+
+
+
+
Port
+ {{for data.ports}}
+
{{:value.dir}} Port
+ {{/for}}
+
+
+
Input
+ {{for data.ports}}
+
+ {{:helper.link(' ', null, value.input ? {'command' : 'switch_mode', 'mode' : 'none', 'dir' : value.dir} : {'command' : 'switch_mode', 'mode' : 'in', 'dir' : value.dir}, value.output ? 'disabled' : null, value.input ? 'selected' : null)}}
+
+ {{/for}}
+
+
+
Output
+ {{for data.ports}}
+
+ {{:helper.link(' ', null, value.output ? null : {'command' : 'switch_mode', 'mode' : 'out', 'dir' : value.dir}, null, value.output ? 'selected' : null)}}
+
+ {{/for}}
+
+
+
Concentration
+ {{for data.ports}}
+
+ {{:helper.link( value.input ? helper.round(value.concentration*100)+' %' : '-', null, {'command' : 'switch_con', 'dir' : value.dir}, value.input ? null : 'disabled')}}
+
+ {{/for}}
+
+
+
Lock
+ {{for data.ports}}
+
+ {{:helper.link(' ', value.con_lock ? 'locked' : 'unlocked', {'command' : 'switch_conlock', 'dir' : value.dir}, value.input ? null : 'disabled', value.con_lock ? 'selected' : null)}}
+
+ {{/for}}
+
+
+
+
+ Set Flow Rate Limit: {{:(data.set_flow_rate/10)}} L/s
+
+
+ {{:helper.link('Set Flow Rate Limit', null, {'command' : 'set_flow_rate'})}}
+
+
+ {{else}}
+
+
+
+
Port
+ {{for data.ports}}
+
{{:value.dir}} Port
+ {{/for}}
+
+
+
Mode
+ {{for data.ports}}
+
+ {{if value.input}}
+ Input
+ {{else value.output}}
+ Output
+ {{else}}
+ Disabled
+ {{/if}}
+
+ {{/for}}
+
+
+
Concentration
+ {{for data.ports}}
+
+ {{if value.input}}
+ {{:helper.round(value.concentration*100)}} %
+ {{else}}
+ -
+ {{/if}}
+
+ {{/for}}
+
+
+
+
+ Flow Rate: {{:(data.last_flow_rate/10)}} L/s
+
+
+ {{/if}}
\ No newline at end of file
diff --git a/nano/templates/turret_control.tmpl b/nano/templates/turret_control.tmpl
new file mode 100644
index 0000000000..d8ff133d27
--- /dev/null
+++ b/nano/templates/turret_control.tmpl
@@ -0,0 +1,41 @@
+
+
+ Behaviour controls are {{:data.locked ? "locked" : "unlocked"}}.
+
+
+
+{{if data.access}}
+
+
+ Turret Status:
+
+
+ {{:helper.link('Enabled', null, {'command' : 'enable', 'value' : 1}, null, data.enabled ?'redButton' : null)}}
+ {{:helper.link('Disabled',null, {'command' : 'enable', 'value' : 0}, null,!data.enabled ? 'selected' : null)}}
+
+
+
+ {{if data.is_lethal}}
+
+
+ Lethal Mode:
+
+
+ {{:helper.link('On', null, {'command' : 'lethal', 'value' : 1}, null, data.lethal ?'redButton' : null)}}
+ {{:helper.link('Off',null, {'command' : 'lethal', 'value' : 0}, null,!data.lethal ? 'selected' : null)}}
+
+
+ {{/if}}
+
+ {{for data.settings}}
+
+
+ {{:value.category}}
+
+
+ {{:helper.link('On', null, {'command' : value.setting, 'value' : 1}, null, value.value ? 'selected' : null)}}
+ {{:helper.link('Off',null, {'command' : value.setting, 'value' : 0}, null,!value.value ? 'selected' : null)}}
+
+
+ {{/for}}
+{{/if}}