[% class = 'gas' -%]
[% IF mode == 'auto' -%]
<img title="[% name %]" [% IF user_info.auth %]onclick="set_gas('[% name %]')"[% END %] src="/celltest/dev_png/M7.png" class="device [% class %]_[% name %]" devclass="[% class %]" devname="[% name %]">
[% ELSE -%]
<img title="[% name %]" [% IF user_info.auth %]onclick="var fl = set_gas('[% name %]');if (fl != null){alert('Remember to set gas presure for [% name %] to '+fl + ' manually');}"[% END %] src="/celltest/dev_png/M7.png" class="device [% class %]_[% name %]" devclass="[% class %]" devname="[% name %]">
[% END -%]
<br>
<div class="[% class %]_[% name %]_value">[% label %]</div>
