Compare commits
No commits in common. "c7159cf3b4c64a5f197d7116e4f6d844619bf858" and "f8ed348d51ad9a4fa3b854b9666b8254c3db2332" have entirely different histories.
c7159cf3b4
...
f8ed348d51
|
@ -18,8 +18,7 @@ async def resetDefaultPropic(request, order: Order, isFursuiter, sendAnswer=True
|
||||||
data = f.read()
|
data = f.read()
|
||||||
f.close()
|
f.close()
|
||||||
os.remove(f"res/propic/{order.ans(f'propic{s}')}") # converted file
|
os.remove(f"res/propic/{order.ans(f'propic{s}')}") # converted file
|
||||||
filenameNoExt = order.ans(f'propic{s}').split(".jpg")[0]
|
os.remove(f"res/propic/{order.ans(f'propic{s}').split(".jpg")[0]}_original.jpg") # original file
|
||||||
os.remove(f"res/propic/{filenameNoExt}_original.jpg") # original file
|
|
||||||
await order.edit_answer_fileUpload(f'propic{s}_file', f'propic{s}_file_{order.code}_default.png', 'image/png', data)
|
await order.edit_answer_fileUpload(f'propic{s}_file', f'propic{s}_file_{order.code}_default.png', 'image/png', data)
|
||||||
if(sendAnswer):
|
if(sendAnswer):
|
||||||
await order.send_answers()
|
await order.send_answers()
|
||||||
|
|
|
@ -18,7 +18,6 @@ function confirmAction (intent, sender) {
|
||||||
intentEditPanel.style.display = 'block';
|
intentEditPanel.style.display = 'block';
|
||||||
intentEdit.setAttribute('required', true)
|
intentEdit.setAttribute('required', true)
|
||||||
intentFormAction.setAttribute('method', 'POST')
|
intentFormAction.setAttribute('method', 'POST')
|
||||||
document.getElementById("intentRename").value = sender.parentElement.parentElement.querySelector("span").innerText;
|
|
||||||
break
|
break
|
||||||
case 'unconfirm':
|
case 'unconfirm':
|
||||||
break
|
break
|
||||||
|
|
|
@ -54,7 +54,7 @@
|
||||||
|
|
||||||
<form method="POST" action="/manage/room/rename">
|
<form method="POST" action="/manage/room/rename">
|
||||||
<label for="name"></label>
|
<label for="name"></label>
|
||||||
<input type="text" name="name" required minlength="4" maxlength="64" value="{{order.ans('room_name')}}"/>
|
<input type="text" name="name" required minlength="4" maxlength="64" />
|
||||||
<input type="submit" value="Rename room" />
|
<input type="submit" value="Rename room" />
|
||||||
</form>
|
</form>
|
||||||
</article>
|
</article>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<div class="grid people" style="padding-bottom:1em;">
|
<div class="grid people" style="padding-bottom:1em;">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div style="margin-bottom: 1em;">
|
<div style="margin-bottom: 1em;">
|
||||||
{% with order=person, imgSrc='/res/propic/' + (person.ans('propic_fursuiter') or 'default.png'), effects = true, flag = true %}
|
{% with order=person, imgSrc='/res/propic/' + (person.ans('propic_fursuiter') or 'default.png'), effects = false, flag = true %}
|
||||||
{% include 'blocks/propic.html' %}
|
{% include 'blocks/propic.html' %}
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
<h5>{{person.ans('fursona_name')}}</h5>
|
<h5>{{person.ans('fursona_name')}}</h5>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% block title %}Furizon 2024 Nosecount{% endblock %}
|
{% block title %}Furizon 2024 Nosecount{% endblock %}
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<main class="container">
|
<main class="container">
|
||||||
{% if order and order.isAdmin() %}
|
{% if order.isAdmin() %}
|
||||||
<script src="/res/scripts/roomManager.js"></script>
|
<script src="/res/scripts/roomManager.js"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<header>
|
<header>
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
{% if o.code == o.room_id and o.room_confirmed %}
|
{% if o.code == o.room_id and o.room_confirmed %}
|
||||||
<h4 style="margin-top:1em;">
|
<h4 style="margin-top:1em;">
|
||||||
<span>{{o.room_name}}</span>
|
<span>{{o.room_name}}</span>
|
||||||
{% if order and order.isAdmin() %}
|
{% if order.isAdmin() %}
|
||||||
<div class="room-actions">
|
<div class="room-actions">
|
||||||
<a onclick="confirmAction('rename', this)" action="/manage/admin/room/rename/{{o.code}}"><img src="/res/icons/pencil.svg" class="icon" /><span>Rename</span></a>
|
<a onclick="confirmAction('rename', this)" action="/manage/admin/room/rename/{{o.code}}"><img src="/res/icons/pencil.svg" class="icon" /><span>Rename</span></a>
|
||||||
<a onclick="confirmAction('unconfirm', this)" action="/manage/admin/room/unconfirm/{{o.code}}"><img src="/res/icons/door_open.svg" class="icon" /><span>Unconfirm</span></a>
|
<a onclick="confirmAction('unconfirm', this)" action="/manage/admin/room/unconfirm/{{o.code}}"><img src="/res/icons/door_open.svg" class="icon" /><span>Unconfirm</span></a>
|
||||||
|
@ -49,7 +49,7 @@
|
||||||
<h3>
|
<h3>
|
||||||
<span>{{o.room_name}}</span>
|
<span>{{o.room_name}}</span>
|
||||||
{% if o.room_person_no - len(o.room_members) > 0 %} <span class="nsc-room-counter"> - Remaining slots: {{o.room_person_no - len(o.room_members)}}</span> {% endif %}
|
{% if o.room_person_no - len(o.room_members) > 0 %} <span class="nsc-room-counter"> - Remaining slots: {{o.room_person_no - len(o.room_members)}}</span> {% endif %}
|
||||||
{% if order and order.isAdmin() %}
|
{% if order.isAdmin() %}
|
||||||
<div class="room-actions">
|
<div class="room-actions">
|
||||||
<a onclick="confirmAction('rename', this)" action="/manage/admin/room/rename/{{o.code}}"><img src="/res/icons/pencil.svg" class="icon" /><span>Rename</span></a>
|
<a onclick="confirmAction('rename', this)" action="/manage/admin/room/rename/{{o.code}}"><img src="/res/icons/pencil.svg" class="icon" /><span>Rename</span></a>
|
||||||
<a class="act-del" onclick="confirmAction('delete', this)" action="/manage/admin/room/delete/{{o.code}}"><img src="/res/icons/delete.svg" class="icon" /><span>Delete</span></a>
|
<a class="act-del" onclick="confirmAction('delete', this)" action="/manage/admin/room/delete/{{o.code}}"><img src="/res/icons/delete.svg" class="icon" /><span>Delete</span></a>
|
||||||
|
|
Loading…
Reference in New Issue