mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 13:17:41 +00:00
Remove connection name textbox. Add separate buttons for connection and group creation.
This commit is contained in:
@@ -71,7 +71,7 @@
|
||||
</p>
|
||||
|
||||
<div id="connection-add-form">
|
||||
<div class="icon connection add"/><input type="text" id="connection-name" class="name" placeholder="Add connection"/><button id="add-connection">Add</button>
|
||||
<button id="add-connection">New Connection</button><button id="add-connection-group">New Group</button>
|
||||
</div>
|
||||
|
||||
<div id="connection-list">
|
||||
|
@@ -29,14 +29,14 @@ var GuacAdmin = {
|
||||
},
|
||||
|
||||
"buttons" : {
|
||||
"back" : document.getElementById("back"),
|
||||
"logout" : document.getElementById("logout"),
|
||||
"add_connection" : document.getElementById("add-connection"),
|
||||
"add_user" : document.getElementById("add-user")
|
||||
"back" : document.getElementById("back"),
|
||||
"logout" : document.getElementById("logout"),
|
||||
"add_connection" : document.getElementById("add-connection"),
|
||||
"add_connection_group" : document.getElementById("add-connection-group"),
|
||||
"add_user" : document.getElementById("add-user")
|
||||
},
|
||||
|
||||
"fields" : {
|
||||
"connection_name" : document.getElementById("connection-name"),
|
||||
"username" : document.getElementById("username")
|
||||
},
|
||||
|
||||
@@ -1149,6 +1149,21 @@ GuacAdmin.reset = function() {
|
||||
|
||||
}
|
||||
|
||||
// Connection group creation
|
||||
if (GuacAdmin.cached_permissions.administer
|
||||
|| GuacAdmin.cached_permissions.create_connection_group) {
|
||||
GuacUI.addClass(document.body, "add-connection-groups");
|
||||
|
||||
GuacAdmin.buttons.add_connection_group.onclick = function() {
|
||||
|
||||
// Open group creation dialog
|
||||
var group_dialog = new GuacAdmin.ConnectionGroupEditor(null, parameters);
|
||||
document.body.appendChild(group_dialog.getElement());
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
// User creation
|
||||
if (GuacAdmin.cached_permissions.administer
|
||||
|| GuacAdmin.cached_permissions.create_user) {
|
||||
|
@@ -443,6 +443,7 @@ div.section {
|
||||
}
|
||||
|
||||
#connections #add-connection,
|
||||
#connections #add-connection-group,
|
||||
#users #add-user {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
@@ -457,7 +458,8 @@ body:not(.manage-users) .require-manage-users {
|
||||
display: none;
|
||||
}
|
||||
|
||||
body:not(.add-connections) #connection-add-form,
|
||||
body:not(.add-connections) #add-connection,
|
||||
body:not(.add-connection-groups) #add-connection-group,
|
||||
body:not(.add-users) #user-add-form {
|
||||
display: none;
|
||||
display: none;
|
||||
|
Reference in New Issue
Block a user