<%@ page import="java.util.Iterator, java.util.Collection, java.util.Vector" %> <%@ page import="ysl.util.Log, ysl.buslog.orgs.LeaguePlayAttr" %> <%@ page import="ysl.util.Utils, ysl.util.Log, ysl.util.Term" %> <%@ page import="ysl.util.StaticData" %> <%@ page import="ysl.buslog.users.UserRole, ysl.buslog.users.User, ysl.buslog.users.Role" %> <%@ page import="ysl.buslog.refs.TeamGameOfficial" %> <%@ include file="TestSessionFragment.jsp" %> <% League league = (League)entity; int leagueId = league.getId(); session.setAttribute("currentLeague",league); // String venueStr = Term.getTerm(Term.VENUE, league); String officialStr = Term.getTerm(Term.OFFICIAL, league); String official1Str = Term.getTerm(Term.OFFICIAL1, league); String official2Str = Term.getTerm(Term.OFFICIAL2, league); String official3Str = Term.getTerm(Term.OFFICIAL3, league); // String scoreStr = Term.getTerm(Term.SCORE, league); int offAssignMethod = league.getOfficialAssignMethod(); String pageTitle = "Edit League " + Term.capitalizeTerm(officialStr) + " Settings"; %> <%@ include file="header.jsp" %>
League <%= Term.capitalizeTerm(officialStr) %> Settings     
<%= league.getLeagueName() %>
<%@ include file="ShowStatusMessageFragment.jsp" %>

<% if (Utils.hasData(official1Str)) { %> <% if (offAssignMethod != League.LEAGUE_ONLY) { %> <% } %>
Send <%= Term.capitalizeTerm(officialStr) %>
Assignment Email To:
<%= Term.capitalizeTerm(officialStr) %> Assignment Method: value="0"> By League Only        value="1"> Self-Assignment        value="2"> Request/Confirm
<%= Term.capitalizeTerm(officialStr) %> Difficulty Offsets: <%= Term.capitalizeTerm(official1Str) %>: <% } if (Utils.hasData(official2Str)) { %>       <%= Term.capitalizeTerm(official2Str) %>: <% } if (Utils.hasData(official3Str)) { %>       <%= Term.capitalizeTerm(official3Str) %>: <% } %>
Can Report Game Results: <% if (Utils.hasData(official1Str)) { %> <%= Term.capitalizeTerm(official1Str) %>: " : ">") %> <% } if (Utils.hasData(official2Str)) { %>       <%= Term.capitalizeTerm(official2Str) %>: " : ">") %> <% } if (Utils.hasData(official3Str)) { %>       <%= Term.capitalizeTerm(official3Str) %>: " : ">") %> <% } %>
<%= Term.capitalizeTerm(officialStr) %> Pay Requires Game Results Report: " : ">") %> No <%= officialStr %> is paid until at least one <%= officialStr %> reports game results.
<%= Term.capitalizeTerm(officialStr) %> Assignment Deadlines: Cancellation: <% if (offAssignMethod != League.LEAGUE_ONLY) { %>       <%= (offAssignMethod == League.SELF_ASSIGN ? "Self-assignment" : "Request" )%>: <% } %>       (set to 0 for no deadline)
  Action is blocked online this many hours before the game start time.
 
<%= (offAssignMethod == League.SELF_ASSIGN ? "Self-assignment" : "Request" )%> Window:     (set to 0 for unlimited window)
  <%= (offAssignMethod == League.SELF_ASSIGN ? "Self-assignment" : "Request" )%> is not offered until this many days before the game.
 
Maximum number of
affiliated <%= Term.pluralizeTerm(officialStr) %> per team:
<% Collection playClassAttrIds = LeaguePlayAttr.getPlayClassAttrIds(leagueId); if (playClassAttrIds != null && playClassAttrIds.size() > 1) { Iterator PCAIiter = playClassAttrIds.iterator(); out.println(""); while (PCAIiter.hasNext()) { int attrId = ((Integer)PCAIiter.next()).intValue(); String className = StaticData.getString(StaticData.PLAY_CLASSES, attrId); out.println("\n\t"); out.println("\t\n"); } out.println("
" + className + "
"); } else out.println(""); %>
  Setting number to zero disallows assigning any <%= Term.pluralizeTerm(officialStr) %> to teams.

User Home