[% class = 'simplechannel' %]
[% UNLESS mode %][% mode = 'V' %][% END -%]
[% IF mode == 'pressure' || mode == 'DPS' %]
<img title="[% name %]" src="/celltest/dev_png/[% IF mode == 'DPS' %]M8.png[% ELSE %]M5.png[% END %]" class="device [% class %]_[% name %]" devclass="[% class %]" devname="[% name %]">
<br>
<div class="[% class%]_[% name %]_value">[% label %]</div>
[% ELSE %]
[% IF mode == 'volt' %][% mode = 'V' %][% END -%]
[% IF mode == 'milivolt' %][% mode = 'mV' %][% END -%]
[% IF mode == 'ampeare' %][% mode = 'A' %][% END -%]
[% IF mode == 'miliampeare' %][% mode = 'mA' %][% END -%]
[% IF mode == 'percent' %][% mode = '%' %][% END -%]
<div class="text_device default_dev device [% class %]_[% name %]" devclass="[% class %]" devname="[% name %]" title="[% IF label %][% label %][% ELSE %][% name %][% END %]">
[% name.substr(0,9) %]<br>
<div style="display:inline-block;" class="[% class%]_[% name %]_value">[% label %]</div> [% mode %]
[% END %]
</div>