Update Admin.cshtml design
This commit is contained in:
parent
55e299f8d8
commit
4432a2f823
|
@ -79,7 +79,9 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</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">
|
<table class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -99,7 +101,7 @@
|
||||||
}
|
}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<button onclick="ajax_and_reload('invite_generate')" class="btn btn-dark">Generate New Invite</button>
|
|
||||||
<script>
|
<script>
|
||||||
function ajax_and_reload(action, target, value) {
|
function ajax_and_reload(action, target, value) {
|
||||||
$.ajax({method: 'POST', data: {action: action, target: target, value: value, '__RequestVerificationToken' : '@tokenSet.RequestToken'}, success: function () { location.reload() }})
|
$.ajax({method: 'POST', data: {action: action, target: target, value: value, '__RequestVerificationToken' : '@tokenSet.RequestToken'}, success: function () { location.reload() }})
|
||||||
|
|
Loading…
Reference in a new issue