[% class = 'relay' %]
[% IF mode == 'auto' %]
[% INCLUDE devices/V1_auto.tt %]
[% ELSIF mode == 'readonly' %]
[% INCLUDE devices/V1_readonly.tt %]
[% ELSE %]
[% INCLUDE devices/V1_manual.tt %]
[% END %]