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:
@@ -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'),
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user