feat: add manual HLTB matching
Allow setting an HLTB ID for missed games via POST /api/hltb/match and a small modal on the HLTB page.
This commit is contained in:
1 parent
92c4c62ca9
commit
6644a94d8c
5 files changed
+169
-2
No files matched your search
@@ -510,6 +510,20 @@ try {
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<dialog id="hltbMatchDialog" class="modal small" aria-labelledby="hltbMatchTitle">
|
||||
<form class="hltb-match-form" id="hltbMatchForm">
|
||||
<h2 id="hltbMatchTitle">Сопоставить с HLTB</h2>
|
||||
<p class="muted" id="hltbMatchName"></p>
|
||||
<label>HLTB ID
|
||||
<input id="hltbMatchId" type="number" min="1" placeholder="например, 11097">
|
||||
</label>
|
||||
<div class="modal-actions">
|
||||
<button type="submit" class="primary" id="hltbMatchSave">Сохранить</button>
|
||||
<button type="button" class="link" id="hltbMatchCancel">отмена</button>
|
||||
</div>
|
||||
</form>
|
||||
</dialog>
|
||||
|
||||
<dialog id="modal" class="modal" aria-labelledby="modalTitle">
|
||||
<div id="modalBody"></div>
|
||||
</dialog>
|
||||
|
||||
Reference in new issue
Block a user