Files
smeserver-manager/root/usr/share/smanager/themes/default/templates/workgroup.html.ep
Brian Read 74c9beb587 * Mon Aug 11 2025 Brian Read <brianr@koozali.org> 11.0.0-113.sme
- Re-factor all template files to make them nicely formatted  [SME: 13103]
2025-08-12 06:20:31 +01:00

65 lines
2.0 KiB
Plaintext

% layout 'default', title => "Sme server 2 - workgroup";
% content_for 'module' => begin
<div id='module' class='module workgroup-panel'>
% if (config->{debug} == 1) {
<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 %>
<% my $btn = l('SAVE'); %>
%= form_for 'workgroup' => ( method => 'POST' ) => begin
<p>
%= l 'wkg_DESC_WORKGROUP', class => 'desc'
<br><br>
<span class=label>
%= l 'wkg_LABEL_WORKGROUP', class => 'label'
</span><span class=data>
%= text_field 'Workgroup' => $wkg_datas->{Workgroup}, class => 'input', pattern => ".{1,15}", title => "Limited to 15 characters by the NETBIOS";
</span>
</p>
<p>
%= l 'wkg_DESC_SERVERNAME', class => 'desc'
<br><br>
<span class=label>
%= l 'wkg_LABEL_SERVERNAME', class => 'label'
</span><span class=data>
%= text_field 'ServerName' => $wkg_datas->{ServerName}, class => 'input'
</span>
</p>
<p>
%= $c->render_to_string( inline => l 'wkg_DESC_PDC' )
<br>
<span class=label>
%= l 'wkg_LABEL_PDC', class => 'label'
</span><span class=data>
% param 'ServerRole' => $wkg_datas->{ServerRole} unless param 'ServerRole';
%= select_field 'ServerRole' => [ [ ( l 'YES' ) => 'PDC' ], [ ( l 'NO' ) => 'WS' ] ], class => 'input';
</span>
</p>
<p>
%= $c->render_to_string( inline => l 'wkg_DESC_ROAM' )
<br>
<span class=label>
%= l 'wkg_LABEL_ROAM', class => 'label'
</span><span class=data>
% param 'RoamingProfiles' => $wkg_datas->{RoamingProfiles} unless param 'RoamingProfiles';
%= select_field 'RoamingProfiles' => [ [ ( l 'YES' ) => 'yes' ], [ ( l 'NO' ) => 'no' ] ], class => 'input';
</span>
</p>
<p>
<br>
%= submit_button "$btn", class => 'action'
</p>
% end
</div>
% end