Edit pairable round status in pairing window

This commit is contained in:
Claude Brisson
2024-01-26 10:43:40 +01:00
parent 0c378af406
commit aaf4a1357e
4 changed files with 82 additions and 4 deletions

View File

@@ -26,13 +26,13 @@
<div id="pairables" class="multi-select" title="pairable players">
#foreach($p in $pairables)
#set($part = $pmap[$p])
<div data-id="$part.id" class="listitem pairable"><span>$part.name $part.firstname</span><span>#rank($part.rank) $part.country</span></div>
<div data-id="$part.id" class="listitem pairable"><span class="name">$part.name $part.firstname</span><span>#rank($part.rank) $part.country</span></div>
#end
</div>
<div id="unpairables" class="multi-select" title="unpairable players">
#foreach($p in $unpairables)
#set($part = $pmap[$p])
<div class="listitem unpairable" data-id="$part.id"><span>$part.name $part.firstname</span><span>#rank($part.rank) $part.country</span></div>
<div data-id="$part.id" class="listitem unpairable"><span class="name">$part.name $part.firstname</span><span>#rank($part.rank) $part.country</span></div>
#end
</div>
</div>
@@ -114,3 +114,32 @@
</form>
</div>
</div>
<div id="edit-pairable" class="popup">
<div class="popup-body">
<form id="pairable-form" class="ui form edit">
<input type="hidden" name="id"/>
<div class="popup-content">
<div id="edit-pairable-disp"></div>
<div class="inline fields">
<div class="field">
<label>
Pairable for round $round?
<input type="checkbox" name="pairable"/>
</label>
</div>
</div>
</div>
<div class="popup-footer">
<button id="cancel-edit-pairable" type="button" class="ui gray right labeled icon floating close button">
<i class="times icon"></i>
Cancel
</button>
<button id="update-pairable" type="button" class="ui green right labeled icon floating button">
<i class="check icon"></i>
Update
</button>
</div>
</form>
</div>
</div>