Update Admin.cshtml design

This commit is contained in:
Laura Hausmann 2021-01-26 02:11:01 +01:00
parent 55e299f8d8
commit 4432a2f823
Signed by: zotan
GPG Key ID: 5EC1D38FFC321311
1 changed files with 4 additions and 2 deletions

View File

@ -79,7 +79,9 @@
</tbody>
</table>
<h2>Invites</h2>
<hr/>
<h2>Invites <button onclick="ajax_and_reload('invite_generate')" class="btn btn-dark">Generate New Invite</button></h2>
<table class="table table-hover">
<thead>
<tr>
@ -99,7 +101,7 @@
}
</tbody>
</table>
<button onclick="ajax_and_reload('invite_generate')" class="btn btn-dark">Generate New Invite</button>
<script>
function ajax_and_reload(action, target, value) {
$.ajax({method: 'POST', data: {action: action, target: target, value: value, '__RequestVerificationToken' : '@tokenSet.RequestToken'}, success: function () { location.reload() }})