Review filtering on registration status
This commit is contained in:
@@ -206,6 +206,10 @@
|
|||||||
.ui.table>tbody>tr>td, .ui.table>tr>td {
|
.ui.table>tbody>tr>td, .ui.table>tr>td {
|
||||||
padding: 0.2em 0.2em;
|
padding: 0.2em 0.2em;
|
||||||
}
|
}
|
||||||
|
select.ui.dropdown {
|
||||||
|
height: unset;
|
||||||
|
font-size: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
.step, .step .title { font-size: 1em; }
|
.step, .step .title { font-size: 1em; }
|
||||||
.step:before { font-size: 1em; }
|
.step:before { font-size: 1em; }
|
||||||
|
@@ -43,6 +43,7 @@ Export tournament Exporter le tournoi
|
|||||||
Family name Nom de famille
|
Family name Nom de famille
|
||||||
Filter Filtrer
|
Filter Filtrer
|
||||||
Filter... Filtrer…
|
Filter... Filtrer…
|
||||||
|
Final only Inscriptions finales
|
||||||
First name Prénom
|
First name Prénom
|
||||||
Fischer timing Cadence Fischer
|
Fischer timing Cadence Fischer
|
||||||
French rules Règles françaises
|
French rules Règles françaises
|
||||||
@@ -80,13 +81,16 @@ Next rounds seeding Méthode rondes suivantes
|
|||||||
OpenGotha file Fichier OpenGotha
|
OpenGotha file Fichier OpenGotha
|
||||||
Pair Apparier
|
Pair Apparier
|
||||||
Pair-go tournament Tournoi de pair-go
|
Pair-go tournament Tournoi de pair-go
|
||||||
Pairing Appariement
|
Pairing Appariements
|
||||||
Pairings for round Appariement pour la ronde
|
Pairings for round Appariement pour la ronde
|
||||||
Participation Participation
|
Participation Participation
|
||||||
|
Preliminary and final Toutes les inscriptions
|
||||||
|
Preliminary only Inscriptions préliminaires
|
||||||
Publish Publier
|
Publish Publier
|
||||||
Publish standings Publier le classement
|
Publish standings Publier le classement
|
||||||
Rank Niveau
|
Rank Niveau
|
||||||
Rating Classement
|
Rating Classement
|
||||||
|
Reg Inscr.
|
||||||
Register Inscrire
|
Register Inscrire
|
||||||
Registration Inscriptions
|
Registration Inscriptions
|
||||||
Rengo with 2 players teams Rengo par équipes de 2
|
Rengo with 2 players teams Rengo par équipes de 2
|
||||||
|
@@ -269,14 +269,13 @@ onLoad(() => {
|
|||||||
store(id, value);
|
store(id, value);
|
||||||
initSearch();
|
initSearch();
|
||||||
});
|
});
|
||||||
$('#list-header .toggle').on('click', e => {
|
$('#reglist-mode').on('change', e => {
|
||||||
let chk = e.target.closest('.toggle');
|
let mode = e.target.value;
|
||||||
let checkbox = chk.find('input')[0];
|
$('td.reg-status').forEach(node => node.parentNode.removeClass('filtered'));
|
||||||
checkbox.checked = !checkbox.checked;
|
if (mode === 'prelim') {
|
||||||
if (checkbox.checked) {
|
$('td.reg-status.final').forEach(node => node.parentNode.addClass('filtered'));
|
||||||
|
} else if (mode === 'final') {
|
||||||
$('td.reg-status:not(.final)').forEach(node => node.parentNode.addClass('filtered'));
|
$('td.reg-status:not(.final)').forEach(node => node.parentNode.addClass('filtered'));
|
||||||
} else {
|
|
||||||
$('td.reg-status:not(.final)').forEach(node => node.parentNode.removeClass('filtered'));
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
document.on('click', e => {
|
document.on('click', e => {
|
||||||
|
@@ -8,13 +8,11 @@
|
|||||||
<input type="text" id="filter" placeholder="Filter..."/>
|
<input type="text" id="filter" placeholder="Filter..."/>
|
||||||
<i class="circular times link icon"></i>
|
<i class="circular times link icon"></i>
|
||||||
</div>
|
</div>
|
||||||
<div class="toggle">
|
<select id="reglist-mode" class="ui dropdown">
|
||||||
<input id="filter-final" name="filter-final" type="checkbox"/>
|
<option value="all">Preliminary and final</option>
|
||||||
<div class="checkbox">
|
<option value="prelim">Preliminary only</option>
|
||||||
<div class="circle"></div>
|
<option value="final">Final only</option>
|
||||||
</div>
|
</select>
|
||||||
<label>Final</label>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
$parts.size() participants, $utils.countFinals($parts) confirmed.
|
$parts.size() participants, $utils.countFinals($parts) confirmed.
|
||||||
|
Reference in New Issue
Block a user