70 lines
1.8 KiB
Plaintext
Raw Permalink Normal View History

2025-04-15 16:30:33 +02:00
% layout 'AdminLTE', title => "Sme server 2 - workgroup";
% content_for 'module' => begin
2025-04-15 20:43:24 +02:00
<div>
%if (config->{debug} == 1) {
2025-04-15 16:30:33 +02:00
<p>
(DBG)route: <%= $c->current_route %><br>
(DBG)pdc: <%= $wkg_datas->{ServerRole}%><br>
(DBG)roam: <%= $wkg_datas->{RoamingProfiles}%><br>
</p>
%}
<h1><%= $title %></h1>
<br>
<%= $modul %>
2025-04-15 16:30:33 +02:00
<% my $btn = l('SAVE');
%>
%= form_for 'workgroup' => (method => 'POST') => begin
2025-04-15 16:30:33 +02:00
<p>
%=l 'wkg_DESC_WORKGROUP', class => ""
<br><br>
<span class="">
%=l 'wkg_LABEL_WORKGROUP', class => ""
2025-04-15 20:43:24 +02:00
</span>
<span class="">
2025-04-15 16:30:33 +02:00
%= text_field 'Workgroup' => $wkg_datas->{Workgroup}, class => "" , pattern=>".{1,15}", title=>"Limited to 15 characters by the NETBIOS"
</span>
</p>
<p>
%=l 'wkg_DESC_SERVERNAME', class => ""
<br><br>
<span class="">
%=l 'wkg_LABEL_SERVERNAME', class => ""
2025-04-15 20:43:24 +02:00
</span>
<span class="">
2025-04-15 16:30:33 +02:00
%= text_field 'ServerName' => $wkg_datas->{ServerName}, class => ""
</span>
</p>
<p>
%= $c->render_to_string(inline => l 'wkg_DESC_PDC')
2025-04-15 16:30:33 +02:00
<br>
<span class="">
%=l 'wkg_LABEL_PDC', class => ""
2025-04-15 20:43:24 +02:00
</span>
<span class="">
2025-04-15 16:30:33 +02:00
% param 'ServerRole' => $wkg_datas->{ServerRole} unless param 'ServerRole';
%= select_field 'ServerRole' => [[ (l 'YES') => 'PDC'], [ (l 'NO') => 'WS']], class => ""
</span>
</p>
<p>
%= $c->render_to_string(inline => l 'wkg_DESC_ROAM')
2025-04-15 16:30:33 +02:00
<br>
<span class="">
%=l 'wkg_LABEL_ROAM', class => ""
2025-04-15 20:43:24 +02:00
</span>
<span class="">
2025-04-15 16:30:33 +02:00
% param 'RoamingProfiles' => $wkg_datas->{RoamingProfiles} unless param 'RoamingProfiles';
%= select_field 'RoamingProfiles' => [[ (l 'YES') => 'yes'], [ (l 'NO') => 'no']], class => ""
</span>
</p>
<p>
<br>
%= submit_button "$btn", class => ""
</p>
% end
</div>
%end