Remove everywhere choices which are not (yet) implemented

This commit is contained in:
Claude Brisson
2024-03-17 11:20:49 +01:00
parent 1fce827894
commit 8aae784861
2 changed files with 12 additions and 10 deletions

View File

@@ -21,13 +21,13 @@ class PairgothTool {
fun getCriteria() = mapOf( fun getCriteria() = mapOf(
"NONE" to "No tie break", // No ranking / tie-break "NONE" to "No tie break", // No ranking / tie-break
"CATEGORY" to "Category", // TODO "CATEGORY" to "Category",
"RANK" to "Rank", "RANK" to "Rank",
"RATING" to "Rating", "RATING" to "Rating",
"NBW" to "Number of wins", // Number win "NBW" to "Number of wins", // Number win
"MMS" to "Mac Mahon score", // Macmahon score "MMS" to "Mac Mahon score", // Macmahon score
"STS" to "Strasbourg score", // Strasbourg score // TODO "STS" to "Strasbourg score", // Strasbourg score
"CPS" to "Cup score", // Cup score // TODO "CPS" to "Cup score", // Cup score
"SOSW" to "Sum of opponents wins", // Sum of opponents NBW "SOSW" to "Sum of opponents wins", // Sum of opponents NBW
"SOSWM1" to "Sum of opponents wins minus 1", //-1 "SOSWM1" to "Sum of opponents wins minus 1", //-1
@@ -41,16 +41,16 @@ class PairgothTool {
"SOSMM2" to "Sum of opponents Mac Mahon score minus 2", "SOSMM2" to "Sum of opponents Mac Mahon score minus 2",
"SODOSM" to "Sum of defeated opponents Mac Mahon score", "SODOSM" to "Sum of defeated opponents Mac Mahon score",
"SOSOSM" to "Sum of opponents SOSM", "SOSOSM" to "Sum of opponents SOSM",
"CUSSM" to "Cumulative sum of opponents Mac Mahon score", // TODO "CUSSM" to "Cumulative sum of opponents Mac Mahon score",
"SOSTS" to "Sum of opponents Strasbourg score", // Sum of opponnents Strasbourg score // TODO "SOSTS" to "Sum of opponents Strasbourg score", // Sum of opponnents Strasbourg score
"EXT" to "Attempted achievements", // Exploits tentes // TODO "EXT" to "Attempted achievements", // Exploits tentes
"EXR" to "Succeeded achievements", // Exploits reussis // TODO "EXR" to "Succeeded achievements", // Exploits reussis
// For the two criteria below see the user documentation // For the two criteria below see the user documentation
"SDC" to "Simplified direct confrontation", // Simplified direct confrontation // TODO "SDC" to "Simplified direct confrontation", // Simplified direct confrontation
"DC" to "Direct confrontation", // Direct confrontation // TODO "DC" to "Direct confrontation", // Direct confrontation
) )
fun getResultsStats(games: Collection<Json.Object>): Json.Object { fun getResultsStats(games: Collection<Json.Object>): Json.Object {

View File

@@ -62,6 +62,7 @@
<span class="info"></span> <span class="info"></span>
<select name="type"> <select name="type">
<option value="INDIVIDUAL" #if(!$tour || $tour.type == 'INDIVIDUAL') selected #end>Individual players</option> <option value="INDIVIDUAL" #if(!$tour || $tour.type == 'INDIVIDUAL') selected #end>Individual players</option>
#* TODO
<option value="PAIRGO" #if($tour && $tour.type == 'PAIRGO') selected #end>Pair-go tournament</option> <option value="PAIRGO" #if($tour && $tour.type == 'PAIRGO') selected #end>Pair-go tournament</option>
<option value="RENGO2" #if($tour && $tour.type == 'RENGO2') selected #end>Rengo with 2 players teams</option> <option value="RENGO2" #if($tour && $tour.type == 'RENGO2') selected #end>Rengo with 2 players teams</option>
<option value="RENGO3" #if($tour && $tour.type == 'RENGO3') selected #end>Rengo with 3 players team</option> <option value="RENGO3" #if($tour && $tour.type == 'RENGO3') selected #end>Rengo with 3 players team</option>
@@ -69,6 +70,7 @@
<option value="TEAM3" #if($tour && $tour.type == 'TEAM3') selected #end>Team of 3 individual players</option> <option value="TEAM3" #if($tour && $tour.type == 'TEAM3') selected #end>Team of 3 individual players</option>
<option value="TEAM4" #if($tour && $tour.type == 'TEAM4') selected #end>Team of 4 individual players</option> <option value="TEAM4" #if($tour && $tour.type == 'TEAM4') selected #end>Team of 4 individual players</option>
<option value="TEAM5" #if($tour && $tour.type == 'TEAM5') selected #end>Team of 5 individual players</option> <option value="TEAM5" #if($tour && $tour.type == 'TEAM5') selected #end>Team of 5 individual players</option>
*#
</select> </select>
</div> </div>
<div class="four wide field"> <div class="four wide field">
@@ -84,7 +86,7 @@
<select name="pairing"> <select name="pairing">
<option value="MAC_MAHON" #if(!$tour || $tour.pairing.type == 'MAC_MAHON') selected #end>Mac Mahon</option> <option value="MAC_MAHON" #if(!$tour || $tour.pairing.type == 'MAC_MAHON') selected #end>Mac Mahon</option>
<option value="SWISS" #if($tour && $tour.pairing.type == 'SWISS') selected #end>Swiss</option> <option value="SWISS" #if($tour && $tour.pairing.type == 'SWISS') selected #end>Swiss</option>
<option value="ROUND_ROBIN" #if($tour && $tour.pairing.type == 'ROUND_ROBIN') selected #end>Round-robin</option> ## TODO <option value="ROUND_ROBIN" #if($tour && $tour.pairing.type == 'ROUND_ROBIN') selected #end>Round-robin</option>
</select> </select>
</div> </div>
<div class="mms pairing four wide field #if($tour && $tour.pairing.type != 'MAC_MAHON') hidden #end"> <div class="mms pairing four wide field #if($tour && $tour.pairing.type != 'MAC_MAHON') hidden #end">