anchor.diff:  int endYear=Integer.parseInt(formatYear.format(today))+1;
   int endHour=Integer.parseInt(formatHour.format(today));
   int endMin=Integer.parseInt(formatMin.format(today));
  +
  +Course course = CourseLocalServiceUtil.fetchByGroupCreatedId(themeDisplay.getScopeGroupId());
  +boolean isCourse = false;
  +if (course!=null){
  +	isCourse = true;
  +}
  +
   %>
   
   <%
  
positive.code: 			 defaultState="closed";
  		 }
  	 	%>
  	 		<liferay-ui:panel title="activity-specifics" collapsible="true" defaultState="<%=defaultState %>">
  	  
  		<%
  		if(larntype.isTriesConfigurable())
  
negative.code: 				mandatory = (learnact.getWeightinmodule() != 0);
  			}
  		%>
  		<div id="<portlet:namespace />mandatorylabel" style="display:none">
  			<aui:field-wrapper label="editactivity.mandatory" cssClass="editactivity-mandatory-field" name="mandatorylabel">
  				<aui:input label="editactivity.mandatory.yes" type="radio" name="weightinmodule" value="1" checked="<%= mandatory %>" inlineField="true" />
  				<aui:input label="editactivity.mandatory.no" type="radio" name="weightinmodule" value="0" checked="<%= !mandatory %>" inlineField="true" />
  				<aui:input type="hidden" name="mandatorylabel" />
  			</aui:field-wrapper>
  		</div>
  	 <liferay-ui:panel-container extended="false" persistState="false">
  	 <%
  	 boolean showSpecificPanel = larntype.isTriesConfigurable() || larntype.isScoreConfigurable() || larntype.isFeedbackCorrectConfigurable() || 
  