placeholder and regexp
This commit is contained in:
		@@ -45,10 +45,10 @@
 | 
			
		||||
		<br></span>	</p>
 | 
			
		||||
	<p>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>
 | 
			
		||||
		<span class=label>
 | 
			
		||||
			%=l('NFS Client(s) allowed.')
 | 
			
		||||
			%=l('NFS Client(s) allowed')
 | 
			
		||||
		</span><span class=data>
 | 
			
		||||
			% param 'NFSClientsAllowed' => $nfs_data->{NFSClientsAllowed} unless param 'NFSClientsAllowed';
 | 
			
		||||
			%= text_area 'NFSClientsAllowed', cols=>50, rows=>15
 | 
			
		||||
			%= text_area 'NFSClientsAllowed', cols=>40, rows=>5
 | 
			
		||||
		</span><br>
 | 
			
		||||
	
 | 
			
		||||
		<p><span class=label>
 | 
			
		||||
@@ -103,20 +103,20 @@
 | 
			
		||||
			%=l('Set the UID.')
 | 
			
		||||
		</span><span class=data>
 | 
			
		||||
			% param 'SetUID' => $nfs_data->{SetUID} unless param 'SetUID';
 | 
			
		||||
			%= text_field 'SetUID', size => '60', class => 'input'
 | 
			
		||||
			%= text_field 'SetUID', size => '50', class => 'input' , pattern=>'.*' , placeholder=>'SetUID'
 | 
			
		||||
		<br></span></p>
 | 
			
		||||
	
 | 
			
		||||
		<p><span class=label>
 | 
			
		||||
			%=l('Set the GID.')
 | 
			
		||||
		</span><span class=data>
 | 
			
		||||
			% param 'SetGID' => $nfs_data->{SetGID} unless param 'SetGID';
 | 
			
		||||
			%= text_field 'SetGID', size => '60', class => 'input'
 | 
			
		||||
			%= text_field 'SetGID', size => '50', class => 'input' , pattern=>'.*' , placeholder=>'SetGID'
 | 
			
		||||
		<br></span></p>
 | 
			
		||||
	
 | 
			
		||||
				<span class='data'>
 | 
			
		||||
					%= submit_button l('Save'), class => 'action'
 | 
			
		||||
				</span>
 | 
			
		||||
			
 | 
			
		||||
		<span class='data'>
 | 
			
		||||
			%= submit_button l('Save'), class => 'action'
 | 
			
		||||
		</span>
 | 
			
		||||
	
 | 
			
		||||
		%# Probably finally by a submit.
 | 
			
		||||
	% end    
 | 
			
		||||
</div>
 | 
			
		||||
 
 | 
			
		||||
@@ -22,7 +22,7 @@
 | 
			
		||||
			%=l('${Label}')
 | 
			
		||||
		</span><span class=data>
 | 
			
		||||
			% param '${Name}' => $$${prefix}_data->{${Name}} unless param '${Name}';
 | 
			
		||||
			%= text_area '${Name}', cols=>50, rows=>15
 | 
			
		||||
			%= text_area '${Name}', cols=>${cols | 40}, rows=>${rows | 10}
 | 
			
		||||
		</span><br>
 | 
			
		||||
	]]></Textarea>
 | 
			
		||||
 | 
			
		||||
@@ -30,7 +30,7 @@
 | 
			
		||||
		<span class=label>
 | 
			
		||||
			%=$%=l('${Label}')
 | 
			
		||||
		</span><span class=data>
 | 
			
		||||
			%=date_field '${Name}' =>$$${Name}
 | 
			
		||||
			%=date_field '${Name}' =>$$${Name}, pattern=>${regexp | .*}
 | 
			
		||||
		</span><br>
 | 
			
		||||
	]]></Date>
 | 
			
		||||
 | 
			
		||||
@@ -39,7 +39,7 @@
 | 
			
		||||
			%=l('${Label}')
 | 
			
		||||
		</span><span class=data>
 | 
			
		||||
			% param '${Name}' => $$${prefix}_data->{${Name}} unless param '${Name}';
 | 
			
		||||
			%= text_field '${Name}', size => '60', class => 'input'
 | 
			
		||||
			%= text_field '${Name}', size => '${size | 50}', class => 'input' , pattern=>'${regexp | ".*"}' , placeholder=>'${placeholder | Name}'
 | 
			
		||||
		<br></span></p>
 | 
			
		||||
	]]></Textinput>
 | 
			
		||||
 | 
			
		||||
@@ -51,4 +51,49 @@
 | 
			
		||||
			%= submit_button l('${value}'), class => 'action'
 | 
			
		||||
		</span>]]>
 | 
			
		||||
	</Submit>
 | 
			
		||||
	
 | 
			
		||||
	<search><![CDATA[
 | 
			
		||||
		<p><span class=label>
 | 
			
		||||
			%=l('${Label}')
 | 
			
		||||
		</span><span class=data>
 | 
			
		||||
		</span>span></p>
 | 
			
		||||
		]]>
 | 
			
		||||
	</search>
 | 
			
		||||
	
 | 
			
		||||
	<url><![CDATA[
 | 
			
		||||
		<p><span class=label>
 | 
			
		||||
			%=l('${Label}')
 | 
			
		||||
		</span><span class=data>
 | 
			
		||||
		</span>span></p>
 | 
			
		||||
		]]>
 | 
			
		||||
	</url>
 | 
			
		||||
 | 
			
		||||
	<tel><![CDATA[
 | 
			
		||||
		<p><span class=label>
 | 
			
		||||
			%=l('${Label}')
 | 
			
		||||
		</span><span class=data>
 | 
			
		||||
		</span>span></p>
 | 
			
		||||
		]]>
 | 
			
		||||
	</tel>
 | 
			
		||||
 | 
			
		||||
	<email><![CDATA[
 | 
			
		||||
		<p><span class=label>
 | 
			
		||||
			%=l('${Label}')
 | 
			
		||||
		</span><span class=data>
 | 
			
		||||
		</span>span></p>
 | 
			
		||||
		]]>
 | 
			
		||||
	</email>
 | 
			
		||||
 | 
			
		||||
	<password><![CDATA[
 | 
			
		||||
		<p><span class=label>
 | 
			
		||||
			%=l('${Label}')
 | 
			
		||||
		</span><span class=data>
 | 
			
		||||
		</span>span></p>
 | 
			
		||||
		]]>
 | 
			
		||||
	</password>
 | 
			
		||||
 | 
			
		||||
	<Extra6><![CDATA[
 | 
			
		||||
		]]>
 | 
			
		||||
	</Extra6>
 | 
			
		||||
	
 | 
			
		||||
</root>
 | 
			
		||||
 
 | 
			
		||||
@@ -53,7 +53,8 @@
 | 
			
		||||
      Input5: {
 | 
			
		||||
        Name: 'NFSClientsAllowed',
 | 
			
		||||
        Type: 'Textarea',
 | 
			
		||||
        Label: 'NFS Client(s) allowed.'
 | 
			
		||||
        Label: 'NFS Client(s) allowed',
 | 
			
		||||
        rows : 5
 | 
			
		||||
      },
 | 
			
		||||
      Input6: {
 | 
			
		||||
        Name: 'FileSystemPermissions',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user