<div><?=$this->message;?></div>

<?php

if( !empty(  $this->form ) ){
	if( $this->displayForm){
		if( !empty( $this->label ) ){
			echo '<h1>'.$this->label.'</h1>';
		}
		echo $this->form;
	}	
}
else{
	echo $this->cmsContent('formbuilder-error-message',array('setHeading'=>false,'wrapperContent'=>false,'wrapperLayout'=>false) );
}

if( !empty( $this->css ) ){
	$this->headStyle()->appendStyle( $this->css );
}

if( !empty( $this->js) ){
	$this->inlineScript()->appendScript( $this->js );
}


$this->headLink()->appendStylesheet( $this->baseUrl( '/resources/application/modules/formbuilder/css/form-structure.css' ) )
		 ->appendStylesheet( $this->baseUrl( '/resources/application/modules/formbuilder/css/form-style.css' ) )
                 ->appendStylesheet( $this->baseUrl( '/resources/application/modules/formbuilder/css/form-style-overstyle.css' ) )                       
                                        ;

//$this->headLink()->appendStylesheet(  $this->baseUrl().'/resources/application/modules/formbuilder/form.css');
