1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-07-23 17:26:46 +02:00

Finish script, finish view, make some progress on template

This commit is contained in:
quark
2025-02-16 18:10:53 +01:00
parent 19d1ecfc66
commit 5f1b698d58
20 changed files with 1211 additions and 68 deletions

View File

@ -22,10 +22,17 @@ SPDX-License-Identifier: GPL-3.0-or-later
{% block extrajavascript %}
<script type="text/javascript">
let club_not_public = {{ club_not_public }};
if (club_not_public) { (addMsg("{% trans "Do not forget to ask permission to people who are in your wrapped before to make them public" %}", 'warning'));}
function refreshTable() {
$("#wrapped_table").load(location.pathname + " #wrapped_table");
}
function copylink(id) {
navigator.clipboard.writeText({{ request.get_full_path }} + id)
.then(() => { addMsg("{% trans "Link copied" %}", 'success', 1000);});
}
function makepublic(id, isprivate) {
const makepublic_obj = $('#makepublic_'+id)