anchor.diff:  {
   	description=competence.getDescription(themeDisplay.getLocale(),true);
   	template=competence.getDiplomaTemplate(themeDisplay.getLocale(),true);
  +	
   	%>
   	<aui:model-context bean="<%= competence %>" model="<%= Competence.class %>" />
   	<%
  
positive.code: 		</aui:select>
  		<aui:field-wrapper label="competence.diplomaTemplate">
  				<liferay-ui:input-editor name="template" width="100%" initMethod="initEditorTemplate" />
  				<aui:input name=">template" type="hidden" />
  					<script type="text/javascript">
  	        			function <portlet:namespace />initEditorTemplate() { return "<%= UnicodeFormatter.toString(template) %>"; }
  	   				</script>
  
negative.code: <script type="text/javascript">
  	function generateCertificate(){
  		var divTemplate = document.getElementById("<portlet:namespace />templateContainer");
  		
  		if(divTemplate.style.display==='none'){
  			divTemplate.style.display='block';
  		}else{
  