Forráskód Böngészése

added support for double and float type in forms

Piotr Labudda 7 éve
szülő
commit
ecb7dc6e69
2 módosított fájl, 6 hozzáadás és 0 törlés
  1. 4 0
      SE/se-lib/TableAcl.php
  2. 2 0
      SE/se-lib/UI.php

+ 4 - 0
SE/se-lib/TableAcl.php

@@ -696,6 +696,10 @@ class TableAcl extends Core_AclBase {
 			$html->attrs['type'] = 'text';
 			$html->attrs['class'][] = 'input-small';
 		}
+		else if (substr($colType['type'], 0, 6) == 'float') {
+			$html->attrs['type'] = 'text';
+			$html->attrs['class'][] = 'input-small';
+		}
 		else if (substr($colType['type'], 0, 7) == 'decimal') {
 			$html->attrs['type'] = 'text';
 			$html->attrs['class'][] = 'input-small';

+ 2 - 0
SE/se-lib/UI.php

@@ -512,6 +512,8 @@ class UI {
 			} break;
 
 			case 'xsd:decimal':
+			case 'xsd:double':
+			case 'xsd:float':
 			case 'p5:price': {
 				$html->attrs['type'] = 'text';
 				$html->attrs['class'][] = 'input-small';