2024-04-28 13:03:06 +02:00
|
|
|
%#
|
2024-09-16 15:01:17 +02:00
|
|
|
%# Generated by SM2Gen version:0.8 Chameleon version:4.5.4 On Python:3.12.3 at 2024-09-16 11:52
|
2024-04-28 13:03:06 +02:00
|
|
|
%#
|
2024-06-13 17:38:25 +02:00
|
|
|
<div id="Nfsshare-PARAMS" class="partial Nfsshare-PARAMS">
|
2024-04-09 11:36:36 +02:00
|
|
|
<script>
|
|
|
|
window.onload = function() {
|
|
|
|
SelectInput();
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
<h2>
|
2024-05-06 11:05:43 +02:00
|
|
|
%= l('nfs_Hello_PARAMS');
|
2024-04-09 11:36:36 +02:00
|
|
|
</h2>
|
2024-05-03 19:08:44 +02:00
|
|
|
% my $btn = l('nfs_APPLY');
|
2024-04-09 11:36:36 +02:00
|
|
|
%= form_for "Nfsshared" => (method => 'POST') => begin
|
|
|
|
|
2024-09-16 15:01:17 +02:00
|
|
|
% param 'trt' => $nfs_data->{trt} unless param 'trt';
|
|
|
|
%= hidden_field 'trt' => $nfs_data->{trt}
|
2024-04-09 11:36:36 +02:00
|
|
|
%# Inputs etc in here.
|
2024-04-28 13:03:06 +02:00
|
|
|
|
2024-09-16 15:01:17 +02:00
|
|
|
<h1><%=l('NFS_Share_Contrib')%></h1>
|
|
|
|
|
2024-05-05 10:31:10 +02:00
|
|
|
<h2><%=l('nfs_Manage_NFS_Ibay_settings:')%></h2>
|
2024-04-28 13:03:06 +02:00
|
|
|
|
2024-04-24 17:09:23 +02:00
|
|
|
<p>
|
2024-09-16 15:01:17 +02:00
|
|
|
%=l('nfs_These_parameters_will_be_effective')
|
2024-04-24 17:09:23 +02:00
|
|
|
</p>
|
|
|
|
|
2024-04-09 11:36:36 +02:00
|
|
|
<p><span class=label>
|
2024-06-13 17:38:25 +02:00
|
|
|
%=l('nfs_Information_Bay_name')
|
2024-04-09 11:36:36 +02:00
|
|
|
</span><span class=data>
|
2024-09-16 15:01:17 +02:00
|
|
|
% param 'IbayName' => $nfs_data->{IbayName} unless param 'IbayName';
|
|
|
|
%= text_field 'IbayName', size => '50', class => 'input' , pattern=>'.*' , placeholder=>'IbayName'
|
|
|
|
<br></span></p>
|
2024-04-09 11:36:36 +02:00
|
|
|
|
|
|
|
<p><span class=label>
|
2024-05-03 19:08:44 +02:00
|
|
|
%=l('nfs_Share_owner_Group')
|
2024-04-09 11:36:36 +02:00
|
|
|
</span><span class=data>
|
|
|
|
% my @ShareOwnerGrp_options = ['Write = admin, Read = group', 'Write = group, Read = everyone', 'Write = group, Read = group'];
|
2024-09-16 15:01:17 +02:00
|
|
|
% param 'ShareOwnerGrp' => $nfs_data->{ShareOwnerGrp} unless param 'ShareOwnerGrp';
|
2024-04-09 11:36:36 +02:00
|
|
|
%= select_field 'ShareOwnerGrp' => @ShareOwnerGrp_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
2024-05-03 19:08:44 +02:00
|
|
|
%=l('nfs_Enable_the_NFS_Share')
|
2024-04-09 11:36:36 +02:00
|
|
|
</span><span class=data>
|
|
|
|
% my @EnableNFSshare_options = ['Disabled', 'Enabled'];
|
2024-09-16 15:01:17 +02:00
|
|
|
% param 'EnableNFSshare' => $nfs_data->{EnableNFSshare} unless param 'EnableNFSshare';
|
2024-04-09 11:36:36 +02:00
|
|
|
%= select_field 'EnableNFSshare' => @EnableNFSshare_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
2024-05-03 19:08:44 +02:00
|
|
|
%=l('nfs_EnableShare_on_local_network')
|
2024-04-09 11:36:36 +02:00
|
|
|
</span><span class=data>
|
|
|
|
% my @ShareOnLocalNetwork_options = ['Disabled', 'Enabled'];
|
2024-09-16 15:01:17 +02:00
|
|
|
% param 'ShareOnLocalNetwork' => $nfs_data->{ShareOnLocalNetwork} unless param 'ShareOnLocalNetwork';
|
2024-04-09 11:36:36 +02:00
|
|
|
%= select_field 'ShareOnLocalNetwork' => @ShareOnLocalNetwork_options, class => 'input'
|
|
|
|
<br></span> </p>
|
2024-04-24 17:09:23 +02:00
|
|
|
|
|
|
|
<p>
|
2024-09-16 15:01:17 +02:00
|
|
|
%=l('nfs_For_writing_permissions,allowing_the_root')
|
2024-04-24 17:09:23 +02:00
|
|
|
</p>
|
|
|
|
|
2024-04-09 11:36:36 +02:00
|
|
|
<span class=label>
|
2024-05-03 19:08:44 +02:00
|
|
|
%=l('nfs_NFS_Client(s)_allowed')
|
2024-04-09 11:36:36 +02:00
|
|
|
</span><span class=data>
|
2024-09-16 15:01:17 +02:00
|
|
|
% param 'NFSClientsAllowed' => $nfs_data->{NFSClientsAllowed} unless param 'NFSClientsAllowed';
|
2024-04-09 16:36:30 +02:00
|
|
|
%= text_area 'NFSClientsAllowed', cols=>40, rows=>5
|
2024-04-09 11:36:36 +02:00
|
|
|
</span><br>
|
|
|
|
|
|
|
|
<p><span class=label>
|
2024-05-03 19:08:44 +02:00
|
|
|
%=l('nfs_File_system_permissions')
|
2024-04-09 11:36:36 +02:00
|
|
|
</span><span class=data>
|
|
|
|
% my @FileSystemPermissions_options = ['Read only', 'Read and Write'];
|
2024-09-16 15:01:17 +02:00
|
|
|
% param 'FileSystemPermissions' => $nfs_data->{FileSystemPermissions} unless param 'FileSystemPermissions';
|
2024-04-09 11:36:36 +02:00
|
|
|
%= select_field 'FileSystemPermissions' => @FileSystemPermissions_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
2024-05-03 19:08:44 +02:00
|
|
|
%=l('nfs_Write_(a)synchronously')
|
2024-04-09 11:36:36 +02:00
|
|
|
</span><span class=data>
|
|
|
|
% my @WriteAsync_options = ['Synchronous', 'Asynchronous'];
|
2024-09-16 15:01:17 +02:00
|
|
|
% param 'WriteAsync' => $nfs_data->{WriteAsync} unless param 'WriteAsync';
|
2024-04-09 11:36:36 +02:00
|
|
|
%= select_field 'WriteAsync' => @WriteAsync_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
2024-05-03 19:08:44 +02:00
|
|
|
%=l('nfs_Delays_the_disk_writing')
|
2024-04-09 11:36:36 +02:00
|
|
|
</span><span class=data>
|
|
|
|
% my @DelayWrite_options = ['Write delay', 'No write delay'];
|
2024-09-16 15:01:17 +02:00
|
|
|
% param 'DelayWrite' => $nfs_data->{DelayWrite} unless param 'DelayWrite';
|
2024-04-09 11:36:36 +02:00
|
|
|
%= select_field 'DelayWrite' => @DelayWrite_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
2024-05-03 19:08:44 +02:00
|
|
|
%=l('nfs_Squash_the_power_of_users')
|
2024-04-09 11:36:36 +02:00
|
|
|
</span><span class=data>
|
|
|
|
% my @Squash_options = ['All users squash', 'No root squash', 'root squash'];
|
2024-09-16 15:01:17 +02:00
|
|
|
% param 'Squash' => $nfs_data->{Squash} unless param 'Squash';
|
2024-04-09 11:36:36 +02:00
|
|
|
%= select_field 'Squash' => @Squash_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
2024-05-03 19:08:44 +02:00
|
|
|
%=l('nfs_Browse_the_parent_folders')
|
2024-04-09 11:36:36 +02:00
|
|
|
</span><span class=data>
|
|
|
|
% my @BrowseParents_options = ['Hide folder', 'Show folder'];
|
2024-09-16 15:01:17 +02:00
|
|
|
% param 'BrowseParents' => $nfs_data->{BrowseParents} unless param 'BrowseParents';
|
2024-04-09 11:36:36 +02:00
|
|
|
%= select_field 'BrowseParents' => @BrowseParents_options, class => 'input'
|
|
|
|
<br></span> </p>
|
|
|
|
|
|
|
|
<p><span class=label>
|
2024-05-03 19:08:44 +02:00
|
|
|
%=l('nfs_Requests_on_secure_ports')
|
2024-04-09 11:36:36 +02:00
|
|
|
</span><span class=data>
|
|
|
|
% my @SecurePorts_options = ['Secure', 'Insecure'];
|
2024-09-16 15:01:17 +02:00
|
|
|
% param 'SecurePorts' => $nfs_data->{SecurePorts} unless param 'SecurePorts';
|
2024-04-09 11:36:36 +02:00
|
|
|
%= select_field 'SecurePorts' => @SecurePorts_options, class => 'input'
|
|
|
|
<br></span> </p>
|
2024-04-24 17:09:23 +02:00
|
|
|
|
|
|
|
<p>
|
2024-09-16 15:01:17 +02:00
|
|
|
%=l('nfs_Set_the_uid_and_gid')
|
2024-04-24 17:09:23 +02:00
|
|
|
</p>
|
|
|
|
|
2024-04-09 16:36:30 +02:00
|
|
|
<span class='data'>
|
2024-05-03 19:08:44 +02:00
|
|
|
%= submit_button l('nfs_Save'), class => 'action'
|
2024-04-09 16:36:30 +02:00
|
|
|
</span>
|
|
|
|
|
2024-04-09 11:36:36 +02:00
|
|
|
%# Probably finally by a submit.
|
2024-06-13 17:38:25 +02:00
|
|
|
%end
|
2024-04-09 11:36:36 +02:00
|
|
|
</div>
|