Compare commits

..

No commits in common. "c405a49366b28c38f92249e0f89ff19ba3fa3b2a" and "b1a67e74e3b78f87d3d843751b164e766868e2c3" have entirely different histories.

3 changed files with 1 additions and 37 deletions

View File

@ -1,21 +0,0 @@
function confirmAction (intent, sender) {
if (['propicReminder'].includes (intent) == false) return
let href = sender.getAttribute('action')
let intentTitle = document.querySelector("#intentText")
let intentDescription = document.querySelector("#intentDescription")
let intentEditPanel = document.querySelector("#intentEditPanel")
let intentFormAction = document.querySelector("#intentFormAction")
let intentSend = document.querySelector("#intentSend")
// Resetting ui
intentFormAction.setAttribute('method', 'GET')
intentEditPanel.style.display = 'none';
intentDescription.innerText = sender.title;
intentFormAction.setAttribute('action', href)
switch (intent){
case 'propicReminder':
intentTitle.innerText = "Send missing badge reminders";
intentSend.innerText = sender.innerText;
break;
}
document.getElementById('modalRoomconfirm').setAttribute('open', 'true');
}

View File

@ -2,7 +2,6 @@
{% block title %}Admin panel{% endblock %} {% block title %}Admin panel{% endblock %}
{% block main %} {% block main %}
<main class="container"> <main class="container">
<script src="/res/scripts/adminManager.js"></script>
<header> <header>
<picture> <picture>
<source srcset="/res/furizon.png" media="(prefers-color-scheme:dark)"> <source srcset="/res/furizon.png" media="(prefers-color-scheme:dark)">
@ -14,9 +13,8 @@
<a href="/manage/admin/cache/clear" role="button" title="Reload the orders' data and the re-sync items' indexes from pretix">Clear cache</a> <a href="/manage/admin/cache/clear" role="button" title="Reload the orders' data and the re-sync items' indexes from pretix">Clear cache</a>
<a href="/manage/nosecount" role="button" title="Shortcut to the nosecount's admin data">Manage rooms</a> <a href="/manage/nosecount" role="button" title="Shortcut to the nosecount's admin data">Manage rooms</a>
<a href="/manage/admin/room/verify" role="button" title="Will unconfirm rooms that fail the default check. Useful when editing answers from Pretix">Verify Rooms</a> <a href="/manage/admin/room/verify" role="button" title="Will unconfirm rooms that fail the default check. Useful when editing answers from Pretix">Verify Rooms</a>
<a href="#" onclick="confirmAction('propicReminder', this)" role="button" title="Will remind via mail all people who event uploaded a badge to do it" action="/manage/admin/propic/remind">Remind badge upload</a> <a href="/manage/admin/propic/remind" role="button" title="Will remind via mail all people who event uploaded a badge to do it">Remind badge upload</a>
<hr> <hr>
{% include 'components/confirm_action_modal.html' %}
</main> </main>
{% endblock %} {% endblock %}

View File

@ -1,13 +0,0 @@
<form id="intentFormAction" method="GET" action="">
<dialog id="modalRoomconfirm">
<article>
<a href="#close" aria-label="Close" class="close" onClick="javascript:this.parentElement.parentElement.removeAttribute('open')"></a>
<h3 id="intentText">Confirm action</h3>
<p id="intentDescription"></p>
<div id="intentEditPanel"></div>
<footer>
<input id="intentSend" type="submit" value="Confirm" />
</footer>
</article>
</dialog>
</form>