add filter form

This commit is contained in:
panda committed 2025-05-29 10:08:32 +00:00
1 parent 39cc430969
commit f30f12ed33
3 files changed
+114 -33

No files matched your search

@@ -17,7 +17,7 @@ const page = new NamedPage('manage_rejudge', async () => {
{ name: `${i.includes('.') ? `${window.LANGS[i.split('.')[0]].display}/` : ''}${window.LANGS[i].display}`, _id: i }
));
CustomSelectAutoComplete.getOrConstruct($('[name=lang]'), { multi: true, data: langs });
const statuses = Object.values(STATUS_TEXTS).map((i) => ({ name: i, _id: i }));
const statuses = Object.entries(STATUS_TEXTS).map(([i, j]) => ({ name: j, _id: i }));
CustomSelectAutoComplete.getOrConstruct($('[name=status]'), { multi: true, data: statuses });
});