christiansalazar avatar christiansalazar committed 1373c27

combobox and input alignment. htmlOptions clearing if empty values present

Comments (0)

Files changed (2)

EYuiFormField.php

 			$htmlOptions += $this->htmlOptions;
 		if(isset($this->field->htmlOptions))
 			$htmlOptions += $this->field->htmlOptions;
+			
+		// clear empty attributes
+		//
+		if(isset($htmlOptions))
+			foreach($htmlOptions as $opt=>$val)	
+				if(empty($val))
+					unset($htmlOptions[$opt]);
+			
 		//
 		// IMPORTANT:
 		//	every input field must have 'alt' signature stablished to 'input' or it wont be recognized
 		}
 		
 		if($this->field->uicomponent == 'checkbox'){
+			if(!isset($htmlOptions['class']))
+				$htmlOptions['class']='checkbox';
 			$input = CHtml::checkBox($inputName,($this->getValue() > 0),$htmlOptions);
 		}
 		

assets/eyuiform.css

 	display: block;
 }
 
-.eyuiform .panel {
-	/*
-	border-radius: 5px;
-	display: block;
-	clear: both;
-	padding: 4px;
-	border: 1px dotted #aaa;*/
+.eyuiform .group br,
+.eyuiform .group hr {
+  margin: 0px;
+  padding: 0px;
+}
+
+.eyuiform input, 
+.eyuiform select 
+{
+	margin: 3px;
+	height: 25px;
+	padding: 2px;
 }
 
 .eyuiform  div.page {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.