anchor.diff:  	<%
   	
   }
  -%>
  -
  -
  -
  -<aui:script>
  -	
  -	$(document).ready(function(){
  -		<portlet:namespace />calculatePonderated();
  -		
  -	});
  -	
  -	function <portlet:namespace />changePonderation(ponderation){
  -			if(<portlet:namespace />isValidValue(ponderation.value)){
  -			jQuery(".ponderationValue").html(total);
  -		}
  -	}
  -	
  -	function <portlet:namespace />isValidValue(value) {
  -		if(value==""){
  -			return true;
  -		}
  -		
  -		if(isNaN(value) || Number(value)<0){
  -			return false;
  -		}
  -		
  -		if(<portlet:namespace />countDecimals(Number(value))>2){
  -			return false;
  -		}
  -		
  -		<portlet:namespace />calculatePonderated();
  -		return true;
  -	}
  -	
  -	function <portlet:namespace />countDecimals(value) {
  -	    if (Math.floor(value) !== value)
  -	        return value.toString().split(".")[1].length || 0;
  -	    return 0;
  -	}
  -	
  -	
  -	function <portlet:namespace />calculatePonderated() {
  -		ponderation = 0;
  -		<%
  -		for(String name:ponderationInputNames){%>
  -			ponderationInput = $('input[name=<portlet:namespace /><%=name %>]').val();
  -			if(Number(ponderationInput)){
  -				ponderation += Number(ponderationInput);
  -			}
  -		<%} %>
  -		$('input[name=<portlet:namespace />sumPonderation]').val(ponderation);
  -	}
  -</aui:script>+%>
positive.code: <%@page import="com.liferay.lms.service.CourseLocalServiceUtil"%>
  <%@ include file="/init.jsp" %>
  <%
  List<String> ponderationInputNames = new ArrayList<String>();
  	Course course=CourseLocalServiceUtil.fetchByGroupCreatedId(themeDisplay.getScopeGroupId());
  if (course==null || !themeDisplay.getPermissionChecker().hasPermission(themeDisplay.getScopeGroupId(),
  		"com.liferay.lms.model", themeDisplay.getScopeGroupId(), "ADD_MODULE")
  
negative.code: 					String weightname="weight_"+learningActivity.getActId();
  					String weight="";
  					boolean requiredChecked=false;
  					if(weights.containsKey(learningActivity.getActId()))
  					{
  						weight=weights.get(learningActivity.getActId()).toString();
  