Simplify and clarify Forms and FormViews #54
@ -67,9 +67,6 @@ class FormView extends SubTemplate
 | 
				
			|||||||
		echo '
 | 
							echo '
 | 
				
			||||||
				<div class="row mb-2">';
 | 
									<div class="row mb-2">';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (isset($field['before']))
 | 
					 | 
				
			||||||
			echo $field['before'];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		if ($field['type'] !== 'checkbox')
 | 
							if ($field['type'] !== 'checkbox')
 | 
				
			||||||
			if (isset($field['label']))
 | 
								if (isset($field['label']))
 | 
				
			||||||
				echo '
 | 
									echo '
 | 
				
			||||||
@ -119,9 +116,6 @@ class FormView extends SubTemplate
 | 
				
			|||||||
				$this->renderText($field_id, $field);
 | 
									$this->renderText($field_id, $field);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (isset($field['after']))
 | 
					 | 
				
			||||||
			echo ' ', $field['after'];
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
		if ($field['type'] !== 'checkbox')
 | 
							if ($field['type'] !== 'checkbox')
 | 
				
			||||||
			echo '
 | 
								echo '
 | 
				
			||||||
					</div>';
 | 
										</div>';
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user