<%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.OutboundMobilityCandidacyPeriodConfirmationOption"%> <%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.OutboundMobilityCandidacyContestGroup"%> <%@page import="net.sourceforge.fenixedu.domain.organizationalStructure.Unit"%> <%@page import="net.sourceforge.fenixedu.domain.ExecutionDegree"%> <%@page import="net.sourceforge.fenixedu.domain.Country"%> <%@ page language="java" %> <%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.OutboundMobilityCandidacy"%> <%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.OutboundMobilityCandidacyContest"%> <%@page import="net.sourceforge.fenixedu.domain.period.CandidacyPeriod"%> <%@page import="net.sourceforge.fenixedu.domain.ExecutionYear"%> <%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.OutboundMobilityCandidacyPeriod"%> <%@page import="net.sourceforge.fenixedu.domain.mobility.outbound.OutboundMobilityCandidacySubmission"%> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>

( )

<% if (registration.hasAnyOutboundMobilityCandidacySubmission()) { %> <% for (final OutboundMobilityCandidacySubmission submission : registration.getOutboundMobilityCandidacySubmissionSet()) { final OutboundMobilityCandidacyPeriod candidacyPeriod = submission.getOutboundMobilityCandidacyPeriod(); final int candidacyCount = submission.getOutboundMobilityCandidacyCount(); final int spanner = candidacyCount + 1; %>
">

<%= registration.getDegree().getPresentationName() %> - <%= candidacyPeriod.getExecutionInterval().getName() %>

  • : <%= candidacyPeriod.getIntervalAsString() %>
  • :
      id="sortable" <% } %> style="width: 100%;" class="sortable"> <% for (final OutboundMobilityCandidacy candidacy : submission.getSortedOutboundMobilityCandidacySet() ) { final OutboundMobilityCandidacyContest contest = candidacy.getOutboundMobilityCandidacyContest(); final OutboundMobilityCandidacyContestGroup group = contest.getOutboundMobilityCandidacyContestGroup(); final Unit unit = contest.getMobilityAgreement().getUniversityUnit(); final Country country = unit.getCountry(); final String liClass = candidacy.getSubmissionFromSelectedCandidacy() != null && group.areCandidatesNotofiedOfSelectionResults(candidacyPeriod) ? "ui-state-default ui-state-default-selected" : "ui-state-default"; %>
    • <% final String name = unit.getName(); %> <%= name %> <%= name.length() >= 70 ? "
      " : "" %> -  <%= contest.getMobilityAgreement().getMobilityProgram().getRegistrationAgreement().getDescription() %> <%= country == null ? "" : "(" + country.getName() + ")" %> <% if (candidacyPeriod.isOpen()) { %>
      " style="border-bottom: 0px;">remove
      <% } %>
    • <% } %>
    <% if (candidacyPeriod.isOpen()) { %>
    <% } %>
<% for (final OutboundMobilityCandidacy candidacy : submission.getSortedOutboundMobilityCandidacySet() ) { final OutboundMobilityCandidacyContest contest = candidacy.getOutboundMobilityCandidacyContest(); final OutboundMobilityCandidacyContestGroup group = contest.getOutboundMobilityCandidacyContestGroup(); if (candidacy.getSubmissionFromSelectedCandidacy() != null && group.areCandidatesNotofiedOfSelectionResults(candidacyPeriod)) { %>
<%= candidacyPeriod.getOptionIntroductoryDestription() %>

    <% for (final OutboundMobilityCandidacyPeriodConfirmationOption option : candidacyPeriod.getSortedOptions()) { %> <% if (submission.getConfirmationOption() == null && (option.getAvailableForCandidates() != null && option.getAvailableForCandidates().booleanValue())) { %>
  • <%= option.getOptionValue() %>
  • <% } else if (submission.getConfirmationOption() == option) { %>
  • <%= option.getOptionValue() %> <% if (option.getAvailableForCandidates() != null && option.getAvailableForCandidates().booleanValue()) { %>    " alt="remove"> <% } %>
  • <% } %> <% } %>
<% } }%> <% } %> <% } else { %>

<%= registration.getDegree().getPresentationName() %>

<% } %>

<% final ExecutionYear executionYear = ExecutionYear.readCurrentExecutionYear(); boolean hasSomeCandidacyPeriod = false; for (final CandidacyPeriod candidacyPeriod : executionYear.getCandidacyPeriodsSet()) { if (candidacyPeriod instanceof OutboundMobilityCandidacyPeriod) { final OutboundMobilityCandidacyPeriod outboundMobilityCandidacyPeriod = (OutboundMobilityCandidacyPeriod) candidacyPeriod; if (outboundMobilityCandidacyPeriod.hasAnyOutboundMobilityCandidacyContest()) { hasSomeCandidacyPeriod = true; %>

: <%= candidacyPeriod.getExecutionInterval().getName() %>

<% } } } if (!hasSomeCandidacyPeriod) { %> No periods found <% } %>