move ident info

This commit is contained in:
Xavier Henner 2019-08-17 22:55:34 +02:00
parent 6b2cbcb203
commit 07b37e9bc4
2 changed files with 16 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -172,7 +172,11 @@ select.interface {
} else if (index == "sessions") {
$.each(infos, function(pid, infos) {
line = '<tr>';
line +='<td>'+infos['identifier']+'</td>';
line +='<td';
if(infos['status']=="Need Password") {
line += ' rowspan="2"';
}
line +='>'+infos['identifier']+'</td>';
line +='<td>'+infos['provider']+'</td>';
if (possible=remotes[infos['provider']]) {
line += '<td><select id="server_'+pid+'" onchange="server_change('+pid+')">'
@ -190,21 +194,22 @@ select.interface {
} else {
line +='<td>'+infos['active-vpn']+'</td>';
}
if(infos['status']=="Need Password") {
line +='<td><form id="auth_'+pid+'" action="#" onsubmit="auth('+pid+') ; return false" >';
line +='<input class="user" placeholder="Enter login" size="8">';
line +='<input type="password" placeholder="Password" size="8" class="pass">';
line +='<input type="submit" value="G0">';
line +='</form></td>';
} else {
line +='<td>'+infos['status']+'</td>';
}
line += '<td>';
line += '<a href="javascript:vpn_restart('+pid+')"><img width="24" height="24" src="refresh.png"/></a>';
line += '<a href="javascript:vpn_kill('+pid+')"><img width="24" height="24" src="disconnect.png"/></a></td>';
line += '</td>\n';
line += '</tr>\n';
if(infos['status']=="Need Password") {
line +='<tr><td colspan="4">';
line +='<form id="auth_'+pid+'" action="#" onsubmit="auth('+pid+') ; return false" >';
line +='<input class="user" placeholder="Enter login" size="15">';
line +='<input type="password" placeholder="Password" size="15" class="pass">';
line +='<input type="submit" value="G0">';
line +='</form>';
line +='</td></tr>\n';
}
$('#result>tbody').append(line);
});
}