SM2Gen/Targets/_nfs_PARAMS.html.ep

140 lines
5.1 KiB
Plaintext
Raw Normal View History

2024-04-28 13:03:06 +02:00
%#
%# Generated by SME2Gen version:0.6 Chameleon version:4.5.4 On Python:3.10.12 at 2024-04-28 11:53
%#
2024-04-09 11:36:36 +02:00
<div id="Nfsshare-PARAMS">
<script>
window.onload = function() {
SelectInput();
};
</script>
<h2>
%= l("nfs Hello PARAMS");
</h2>
% my $btn = l('APPLY');
%= form_for "Nfsshared" => (method => 'POST') => begin
% param 'trt' => $nfs_data->{trt} unless param 'trt';
%= hidden_field 'trt' => $nfs_data->{trt}
%# Inputs etc in here.
2024-04-28 13:03:06 +02:00
<h2>Manage NFS Ibay settings:</h2>
2024-04-24 17:09:23 +02:00
<p>
%= l('nfs_These parameters will be effective only if the share is enabled. The share is in /home/e-smith/files/ibays//files')
</p>
2024-04-09 11:36:36 +02:00
<p><span class=label>
2024-04-10 09:41:31 +02:00
%=l('nfs_Information Bay name'), class => 'label'
2024-04-09 11:36:36 +02:00
</span><span class=data>
%= stash("IbayName"), class => 'data'
</span></p>
<p><span class=label>
2024-04-10 09:41:31 +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'];
% param 'ShareOwnerGrp' => $nfs_data->{ShareOwnerGrp} unless param 'ShareOwnerGrp';
%= select_field 'ShareOwnerGrp' => @ShareOwnerGrp_options, class => 'input'
<br></span> </p>
<p><span class=label>
2024-04-10 09:41:31 +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'];
% param 'EnableNFSshare' => $nfs_data->{EnableNFSshare} unless param 'EnableNFSshare';
%= select_field 'EnableNFSshare' => @EnableNFSshare_options, class => 'input'
<br></span> </p>
<p><span class=label>
2024-04-10 09:41:31 +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'];
% param 'ShareOnLocalNetwork' => $nfs_data->{ShareOnLocalNetwork} unless param 'ShareOnLocalNetwork';
%= select_field 'ShareOnLocalNetwork' => @ShareOnLocalNetwork_options, class => 'input'
<br></span> </p>
2024-04-24 17:09:23 +02:00
<p>
%= l('nfs_For writing permissions,allowing the root user and using insecure ports, you must configure a list of one IP per line, being part of the local network(s).')
</p>
2024-04-09 11:36:36 +02:00
<span class=label>
2024-04-10 09:41:31 +02:00
%=l('nfs_NFS Client(s) allowed')
2024-04-09 11:36:36 +02:00
</span><span class=data>
% 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-04-10 09:41:31 +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'];
% param 'FileSystemPermissions' => $nfs_data->{FileSystemPermissions} unless param 'FileSystemPermissions';
%= select_field 'FileSystemPermissions' => @FileSystemPermissions_options, class => 'input'
<br></span> </p>
<p><span class=label>
2024-04-24 17:09:23 +02:00
%=l('nfs_Write (a)synchronously')
2024-04-09 11:36:36 +02:00
</span><span class=data>
% my @WriteAsync_options = ['Synchronous', 'Asynchronous'];
% param 'WriteAsync' => $nfs_data->{WriteAsync} unless param 'WriteAsync';
%= select_field 'WriteAsync' => @WriteAsync_options, class => 'input'
<br></span> </p>
<p><span class=label>
2024-04-24 17:09:23 +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'];
% param 'DelayWrite' => $nfs_data->{DelayWrite} unless param 'DelayWrite';
%= select_field 'DelayWrite' => @DelayWrite_options, class => 'input'
<br></span> </p>
<p><span class=label>
2024-04-24 17:09:23 +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'];
% param 'Squash' => $nfs_data->{Squash} unless param 'Squash';
%= select_field 'Squash' => @Squash_options, class => 'input'
<br></span> </p>
<p><span class=label>
2024-04-10 09:41:31 +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'];
% param 'BrowseParents' => $nfs_data->{BrowseParents} unless param 'BrowseParents';
%= select_field 'BrowseParents' => @BrowseParents_options, class => 'input'
<br></span> </p>
<p><span class=label>
2024-04-24 17:09:23 +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'];
% param 'SecurePorts' => $nfs_data->{SecurePorts} unless param 'SecurePorts';
%= select_field 'SecurePorts' => @SecurePorts_options, class => 'input'
<br></span> </p>
2024-04-24 17:09:23 +02:00
<p>
%= l('nfs_Set the uid and gid if you want all requests appear to be from one user or one group, otherwise leave blank')
</p>
2024-04-09 11:36:36 +02:00
<p><span class=label>
2024-04-10 09:41:31 +02:00
%=l('nfs_Set the UID.')
2024-04-09 11:36:36 +02:00
</span><span class=data>
% param 'SetUID' => $nfs_data->{SetUID} unless param 'SetUID';
2024-04-09 16:36:30 +02:00
%= text_field 'SetUID', size => '50', class => 'input' , pattern=>'.*' , placeholder=>'SetUID'
2024-04-09 11:36:36 +02:00
<br></span></p>
<p><span class=label>
2024-04-10 09:41:31 +02:00
%=l('nfs_Set the GID.')
2024-04-09 11:36:36 +02:00
</span><span class=data>
% param 'SetGID' => $nfs_data->{SetGID} unless param 'SetGID';
2024-04-09 16:36:30 +02:00
%= text_field 'SetGID', size => '50', class => 'input' , pattern=>'.*' , placeholder=>'SetGID'
2024-04-09 11:36:36 +02:00
<br></span></p>
2024-04-09 16:36:30 +02:00
<span class='data'>
%= submit_button l('Save'), class => 'action'
</span>
2024-04-09 11:36:36 +02:00
%# Probably finally by a submit.
% end
</div>