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

Setting of activeBridge

This commit is contained in:
Key Networks
2018-01-31 11:14:49 +08:00
parent 09f1e841b3
commit 83f0bb781a
6 changed files with 43 additions and 14 deletions

View File

@@ -17,6 +17,7 @@ block content
if error
b #{error}
else
p This network controller has a ZeroTier address of <b>#{zt_address}</b>
h4 This network controller has a ZeroTier address of <b>#{zt_address}</b>
a(href='/controller/networks') List all networks on this network controller
h4
a(href='/controller/networks') List all networks on this network controller

View File

@@ -8,11 +8,17 @@ extends network_layout
block net_content
script.
$(function() {
$('.checkbox').on('click', function() {
$('#authCheckBox').on('click', function() {
$.post('', {id: this.value, auth: this.checked});
});
});
$(function() {
$('#activeBridgeCheckBox').on('click', function() {
$.post('', {id: this.value, activeBridge: this.checked});
});
});
$(function() {
$('.text').on('change', function() {
$.post('', {id: this.name, name: this.value});
@@ -30,7 +36,9 @@ block net_content
| Member ID
td(width='10%')
| Authorized
td(width='57%')
td(width='10%')
| Active bridge
td(width='47%')
| IP assignment
each member in members
tr
@@ -43,7 +51,9 @@ block net_content
td
a(href=url) #{member.id}
td
input.checkbox(type='checkbox' name='authCheckBox' value=member.id checked=(member.authorized? true : false))
input.checkbox(type='checkbox' id='authCheckBox' value=member.id checked=(member.authorized? true : false))
td
input.checkbox(type='checkbox' id='activeBridgeCheckBox' value=member.id checked=(member.activeBridge? true : false))
td
each ipAssignment in member.ipAssignments
a(href='/controller/network/' + network.nwid + '/member/' + member.id + '/ipAssignments')
@@ -58,8 +68,6 @@ block net_content
.alert.alert-info
strong There are no members on this network - invite users to join #{network.nwid}
a.btn.btn-default(href='/controller/networks' name='networks' role='button') Networks
= ' '
a.btn.btn-default(href='' name='refresh' role='button') Refresh
if errors

View File

@@ -11,4 +11,10 @@ block net_content
a(href='../' + member.address) #{member.address}
h4 Editing of
b #{title}
| has not been implemented
| has not been implemented.
h4
| Note that you may be able to edit some properties on the
strong
a(href='/controller/network/' + network.nwid + '/members') Members
| page.