mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	add validation rule attribute to input field for interger attributes
This commit is contained in:
		
							parent
							
								
									0977ed0a76
								
							
						
					
					
						commit
						e4aba9ae25
					
				|  | @ -1105,7 +1105,7 @@ $('#acceptkeywords').click(function(ev) { | |||
| 				if (strlen($objvalue) > 80) { | ||||
| 					echo '<textarea class="input-xxlarge" name="'.$fieldname.'['.$attrdef->getId().']"'.($attrdef->getMinValues() > 0 ? ' required' : '').'>'.htmlspecialchars($objvalue).'</textarea>'; | ||||
| 				} else { | ||||
| 					echo "<input type=\"text\" name=\"".$fieldname."[".$attrdef->getId()."]\" value=\"".htmlspecialchars($objvalue)."\"".($attrdef->getMinValues() > 0 ? ' required' : '')." />"; | ||||
| 					echo "<input type=\"text\" name=\"".$fieldname."[".$attrdef->getId()."]\" value=\"".htmlspecialchars($objvalue)."\"".($attrdef->getMinValues() > 0 ? ' required' : '').($attrdef->getType() == SeedDMS_Core_AttributeDefinition::type_int ? ' data-rule-digits="true"' : '')." />"; | ||||
| 				} | ||||
| 			} | ||||
| 			break; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann