<%@ page language="java"%> <%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.CandidacyGroupContestState.CandidacyGroupContestStateStage"%> <%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.CandidacyGroupContestState"%> <%@page import="java.math.BigDecimal"%> <%@page import="net.sourceforge.fenixedu.util.BundleUtil"%> <%@page import="net.sourceforge.fenixedu.domain.Grade"%> <%@page import="net.sourceforge.fenixedu.domain.candidacyProcess.mobility.MobilityAgreement"%> <%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.OutboundMobilityCandidacyContest"%> <%@page import="net.sourceforge.fenixedu.domain.Country"%> <%@page import="net.sourceforge.fenixedu.domain.organizationalStructure.Unit"%> <%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.OutboundMobilityCandidacy"%> <%@page import="net.sourceforge.fenixedu.domain.student.Registration"%> <%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.OutboundMobilityCandidacySubmission"%> <%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.OutboundMobilityCandidacyPeriod"%> <%@page import="net.sourceforge.fenixedu.domain.Person"%> <%@page import="net.sourceforge.fenixedu.domain.ExecutionDegree"%> <%@page import="net.sourceforge.fenixedu.domain.ExecutionYear"%> <%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.OutboundMobilityCandidacyContestGroup"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> <%@ taglib uri="/WEB-INF/fenix-renderers.tld" prefix="fr"%> <%@ taglib uri="/WEB-INF/academic.tld" prefix="academic" %> <% final OutboundMobilityCandidacyContestGroup mobilityGroup = outboundMobilityContextBean.getMobilityGroups().iterator().next(); final ExecutionYear executionYear = outboundMobilityContextBean.getExecutionYear(); %>

<% for (final ExecutionDegree executionDegree : mobilityGroup.getSortedExecutionDegrees()) { %> <%= executionDegree.getDegree().getSigla() %> <% } %>

  • : <%= executionYear.getName() %>
  • : <%= outboundMobilityContextBean.getCandidacyPeriods().first().getIntervalAsString() %>
  • : <% if (mobilityGroup.getMobilityCoordinatorSet().isEmpty()) { %> <% } else { %> >> <% for (final Person person : mobilityGroup.getMobilityCoordinatorSet()) { %> <% } %> <% } %>
  • <% if (!mobilityGroup.isCandidacySelectionConcluded(outboundMobilityContextBean.getCandidacyPeriods().first())) { %>
  • <% } %> <% if (!mobilityGroup.isCandidacySelectionConcluded(outboundMobilityContextBean.getCandidacyPeriods().first()) && mobilityGroup.areAllStudentsGraded(outboundMobilityContextBean.getCandidacyPeriods().first())) { %>
  • ">
  • <% } %> <% if (!mobilityGroup.isCandidacySelectionConcluded(outboundMobilityContextBean.getCandidacyPeriods().first()) && mobilityGroup.areAllStudentsGraded(outboundMobilityContextBean.getCandidacyPeriods().first())) { %>
  • <% } %> <% if (mobilityGroup.isCandidacySelectionConcluded(outboundMobilityContextBean.getCandidacyPeriods().first()) && !mobilityGroup.isCandidateNotificationConcluded(outboundMobilityContextBean.getCandidacyPeriods().first())) { %>
  • <% } %> <% if (mobilityGroup.isCandidateNotificationConcluded(outboundMobilityContextBean.getCandidacyPeriods().first())) { %>
  • <% } %>
<% for (final OutboundMobilityCandidacyPeriod candidacyPeriod : outboundMobilityContextBean.getCandidacyPeriods()) { %>
<% for (final CandidacyGroupContestState state : CandidacyGroupContestState.values()) { final CandidacyGroupContestStateStage stage = state.getStage(mobilityGroup, candidacyPeriod); final String stageClass = stage == CandidacyGroupContestStateStage.UNDER_WAY ? "underWay" : stage == CandidacyGroupContestStateStage.COMPLETED ? "complete" : ""; %> <% } %>
<%=state.getLocalizedName()%>
<%= CandidacyGroupContestStateStage.NOT_STARTED.getLocalizedName() %> <%= CandidacyGroupContestStateStage.UNDER_WAY.getLocalizedName() %> <%= CandidacyGroupContestStateStage.COMPLETED.getLocalizedName() %>
<% } %>

:

<% for (final OutboundMobilityCandidacyPeriod candidacyPeriod : outboundMobilityContextBean.getCandidacyPeriods()) { %> <% for (final OutboundMobilityCandidacySubmission candidacySubmission : candidacyPeriod.getSortedSubmissionSet(mobilityGroup)) { final Registration registration = candidacySubmission.getRegistration(); final Person person = registration.getPerson(); final BigDecimal grade = candidacySubmission.getGrade(mobilityGroup); final String hideGradeID = "hideGrade" + candidacySubmission.getExternalId(); final String showGradeID = "showGrade" + candidacySubmission.getExternalId(); final String inputGradeID = "inputGrade" + candidacySubmission.getExternalId(); final String gradeText = "grade" + candidacySubmission.getExternalId(); %> <% } %>
" style="padding: 1em 0;" />
"> <%= person.getUsername() %> <%= person.getName() %> <%= registration.getDegree().getSigla() %> <%= grade == null ? "" : grade.toString() %>   " style="border-bottom: 0px; float: right;"> " />   
    <% int candidacyCount = 0; for (final OutboundMobilityCandidacy candidacy : candidacySubmission.getSortedOutboundMobilityCandidacySet()) { final OutboundMobilityCandidacyContest contest = candidacy.getOutboundMobilityCandidacyContest(); final MobilityAgreement mobilityAgreement = contest.getMobilityAgreement(); final Unit unit = mobilityAgreement.getUniversityUnit(); final Country country = unit.getCountry(); String styleString = ""; if (contest.getOutboundMobilityCandidacyContestGroup() != mobilityGroup) { if (candidacy.getSubmissionFromSelectedCandidacy() != null) { styleString = "color: lime; font-weight: bold; font-size: 150%"; } else { styleString = "color: grey;"; } } else if (candidacy.getSubmissionFromSelectedCandidacy() != null) { styleString = "color: green; font-weight: bold; font-size: 120%"; } %>
  • 4) { %> class="<%= "hide" + candidacySubmission.getExternalId() %>" <% } %>>
    <%= unit.getPresentationName() %> - <%= country.getName() %> <%= mobilityAgreement.getMobilityProgram().getRegistrationAgreement().getDescription() %>
  • <% } %>
<% if (candidacyCount > 5) { %> " class="<%= "show" + candidacySubmission.getExternalId() %>"> (<%= candidacyCount %>) >> " class="<%= "hide" + candidacySubmission.getExternalId() %>"> << <% } %>
<% } %>