Esempio n. 1
0
  // "displayRefereePage"
  private static void drawReferee(
      final Page page, final PhdCandidacyReferee referee, final int count, final String folderName)
      throws IOException {

    page.tableStart("tstyle2 thwhite thnowrap thlight thleft thtop ulnomargin ");
    page.rowStart()
        .headerStartWithStyle("width: 125px;")
        .write("Name:")
        .headerEnd()
        .column(referee.getName())
        .rowEnd();
    page.rowStart().header("Email:").column(referee.getEmail()).rowEnd();
    page.rowStart().header("Institution:").column(referee.getInstitution()).rowEnd();

    if (referee.isLetterAvailable()) {
      page.rowStart().header("Referee form submitted:");
      final String url =
          APPLICATION_PREFIX_LINK
              + "/phd/epfl/applications/referee?refereeOid="
              + referee.getExternalId()
              + "&count="
              + count;
      page.columnStart().link(url, "Yes").columnEnd().rowEnd();
    } else {
      page.rowStart().header("Referee form submitted:").column("No").rowEnd();
    }

    page.tableEnd();
  }