Implement avoidSameFamily geographic criterion

When enabled, avoid pairing players from the same club who have
the same family name (surname). Uses existing player.name field.
This commit is contained in:
Claude Brisson
2025-11-29 22:00:31 +01:00
parent 147347fa6e
commit 17697845fd
4 changed files with 17 additions and 2 deletions

View File

@@ -247,7 +247,8 @@ onLoad(() => {
},
geo: {
mmsDiffCountry: form.val('mmsDiffCountry'),
mmsDiffClub: form.val('mmsDiffClub')
mmsDiffClub: form.val('mmsDiffClub'),
avoidSameFamily: form.val('avoidSameFamily')
},
handicap: {
useMMS: form.val('useMMS'),

View File

@@ -142,6 +142,12 @@
rather than pairing players of the same club.
</label>
</div>
<div class="field">
<label>
<input type="checkbox" name="avoidSameFamily" value="true" #if($tour.pairing.geo.avoidSameFamily) checked #end/>
avoid pairing players from the same club with the same family name
</label>
</div>
</div>
<div class="title"><i class="dropdown icon"></i>Handicap parameters</div>
<div class="content">