8
0
mirror of https://github.com/key-networks/ztncui.git synced 2024-08-31 04:28:00 +00:00

Issue #5: Create a public network

This commit is contained in:
Steve Patrick
2018-05-20 20:45:58 +08:00
parent 4e2fb9c1eb
commit b49cd75b1d
3 changed files with 51 additions and 0 deletions

26
src/views/private.pug Normal file
View File

@@ -0,0 +1,26 @@
//-
ztncui - ZeroTier network controller UI
Copyright (C) 2017-2018 Key Networks (https://key-networks.com)
Licensed under GPLv3 - see LICENSE for details.
extends network_layout
block net_content
script.
$(function() {
$('.checkbox').on('click', function() {
$.post('', {'private': $('#privateCheckBox').is(':checked')});
});
});
form(method='POST' action='')
table.table.table-responsive.table-striped.table-hover
tr
td(width='3%')
input#privateCheckBox.checkbox(type='checkbox' checked=(network.private? true : false))
td Enable access control. Warning: if you disable this, you will not be able to de-authorize members of the network. Disable this only if you know what you are doing.
if errors
ul
for err in errors
li!= err.msg