50 lines
1.8 KiB
Plaintext
50 lines
1.8 KiB
Plaintext
%#
|
|
%# Generated by SM2Gen version:0.9(20Jan2025) Chameleon version:4.5.4 On Python:3.12.3 at 2025-09-06 06:03:54
|
|
%#
|
|
<div id="Example1-PARAMS" class="partial Example1-PARAMS">
|
|
%# <script>
|
|
%# window.onload = function() {
|
|
%# SelectInput();
|
|
%# };
|
|
%# </script>
|
|
% if (config->{debug} == 1) {
|
|
<pre>
|
|
%= dumper $ex1_data
|
|
</pre>
|
|
% }
|
|
% my $btn = l('SAVE');
|
|
% $c->param(Selected => undef); #This may need deleting for a params panel - only needed for a table
|
|
|
|
%= form_for "example1u" => (method => 'POST') => begin
|
|
% param 'trt' => $ex1_data->{trt} unless param 'trt';
|
|
%= hidden_field 'trt' => $ex1_data->{trt}
|
|
%# Inputs etc in here.
|
|
|
|
<h1 class='head'><%=l('Example Contrib')%></h1>
|
|
|
|
<h2 class='subh'><%=l('Manage Ibay settings:')%></h2>
|
|
|
|
<p class='paragraph para1'>
|
|
%=l('These parameters will be effective only if the share is enabled. The share is in /home/e-smith/files/ibays//files')
|
|
</p>
|
|
|
|
<p><span class=label>
|
|
%=l('ex1_Information Bay name')
|
|
</span><span class=data>
|
|
% param 'IbayName' => $ex1_data->{IbayName} unless param 'IbayName';
|
|
%= text_field 'IbayName', size => '50', class => 'textinput IbayName' , pattern=>'.*' , placeholder=>'IbayName', title =>'Pattern regex mismatch', id => 'IbayName_text'
|
|
<br></span></p>
|
|
|
|
<p><span class=label>
|
|
%=l('ex1_Share owner Group')
|
|
</span><span class=data>
|
|
% my @ShareOwnerGrp_options = [['Write = admin, Read = group' => 'All'], ['Write = group, Read = everyone' => 'Read:All-Write:Grp']];
|
|
% param 'ShareOwnerGrp' => $ex1_data->{ShareOwnerGrp} unless param 'ShareOwnerGrp';
|
|
%= select_field 'ShareOwnerGrp' => @ShareOwnerGrp_options, class => 'input', id => 'ShareOwnerGrp_select'
|
|
<br></span> </p>
|
|
|
|
%# ....
|
|
%# Probably finally by a submit.
|
|
%= submit_button $btn, class => 'action'
|
|
%end
|
|
</div> |