% layout 'default', title => "Sme server 2 - workgroup"; % content_for 'module' => begin
% if (config->{debug} == 1) {

(DBG)route: <%= $c->current_route %>
(DBG)pdc: <%= $wkg_datas->{ServerRole} %>
(DBG)roam: <%= $wkg_datas->{RoamingProfiles} %>

% }

<%= $title %>


<%= $modul %> <% my $btn = l('SAVE'); %> %= form_for 'workgroup' => ( method => 'POST' ) => begin

%= l 'wkg_DESC_WORKGROUP', class => 'desc'

%= l 'wkg_LABEL_WORKGROUP', class => 'label' %= text_field 'Workgroup' => $wkg_datas->{Workgroup}, class => 'input', pattern => ".{1,15}", title => "Limited to 15 characters by the NETBIOS";

%= l 'wkg_DESC_SERVERNAME', class => 'desc'

%= l 'wkg_LABEL_SERVERNAME', class => 'label' %= text_field 'ServerName' => $wkg_datas->{ServerName}, class => 'input'

%= $c->render_to_string( inline => l 'wkg_DESC_PDC' )
%= l 'wkg_LABEL_PDC', class => 'label' % param 'ServerRole' => $wkg_datas->{ServerRole} unless param 'ServerRole'; %= select_field 'ServerRole' => [ [ ( l 'YES' ) => 'PDC' ], [ ( l 'NO' ) => 'WS' ] ], class => 'input';

%= $c->render_to_string( inline => l 'wkg_DESC_ROAM' )
%= l 'wkg_LABEL_ROAM', class => 'label' % param 'RoamingProfiles' => $wkg_datas->{RoamingProfiles} unless param 'RoamingProfiles'; %= select_field 'RoamingProfiles' => [ [ ( l 'YES' ) => 'yes' ], [ ( l 'NO' ) => 'no' ] ], class => 'input';


%= submit_button "$btn", class => 'action'

% end
% end