mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	move record type further up in form
This commit is contained in:
		
							parent
							
								
									f2381dca72
								
							
						
					
					
						commit
						69a70242b0
					
				|  | @ -785,6 +785,22 @@ function typeahead() { /* {{{ */ | ||||||
| 					) | 					) | ||||||
| 				); | 				); | ||||||
| 			} | 			} | ||||||
|  | 			if(!isset($facets['record_type'])) { | ||||||
|  | 				$options = array(); | ||||||
|  | 				$options[] = array('document', getMLText('document'), $record_type && in_array('document', $record_type)); | ||||||
|  | 				$options[] = array('folder', getMLText('folder'), $record_type && in_array('folder', $record_type)); | ||||||
|  | 				$this->formField( | ||||||
|  | 					getMLText("record_type"), | ||||||
|  | 					array( | ||||||
|  | 						'element'=>'select', | ||||||
|  | 						'class'=>'chzn-select', | ||||||
|  | 						'name'=>'record_type[]', | ||||||
|  | 						'multiple'=>true, | ||||||
|  | 						'attributes'=>array(array('data-placeholder', getMLText('select_record_type'))), | ||||||
|  | 						'options'=>$options | ||||||
|  | 					) | ||||||
|  | 				); | ||||||
|  | 			} | ||||||
| 			if(!isset($facets['category'])) { | 			if(!isset($facets['category'])) { | ||||||
| 				$tmpcatids = array(); | 				$tmpcatids = array(); | ||||||
| 				foreach($categories as $tmpcat) | 				foreach($categories as $tmpcat) | ||||||
|  | @ -832,22 +848,6 @@ function typeahead() { /* {{{ */ | ||||||
| 					) | 					) | ||||||
| 				); | 				); | ||||||
| 			} | 			} | ||||||
| 			if(!isset($facets['record_type'])) { |  | ||||||
| 				$options = array(); |  | ||||||
| 				$options[] = array('document', getMLText('document'), $record_type && in_array('document', $record_type)); |  | ||||||
| 				$options[] = array('folder', getMLText('folder'), $record_type && in_array('folder', $record_type)); |  | ||||||
| 				$this->formField( |  | ||||||
| 					getMLText("record_type"), |  | ||||||
| 					array( |  | ||||||
| 						'element'=>'select', |  | ||||||
| 						'class'=>'chzn-select', |  | ||||||
| 						'name'=>'record_type[]', |  | ||||||
| 						'multiple'=>true, |  | ||||||
| 						'attributes'=>array(array('data-placeholder', getMLText('select_record_type'))), |  | ||||||
| 						'options'=>$options |  | ||||||
| 					) |  | ||||||
| 				); |  | ||||||
| 			} |  | ||||||
| 
 | 
 | ||||||
| 			if($facets) { | 			if($facets) { | ||||||
| 				foreach($facets as $facetname=>$values) { | 				foreach($facets as $facetname=>$values) { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann