mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-08 06:01:22 +00:00
Add location field placeholder and styles.
This commit is contained in:
@@ -672,12 +672,17 @@ GuacAdmin.ConnectionEditor = function(connection, parameters) {
|
|||||||
|
|
||||||
// Header parameter containers
|
// Header parameter containers
|
||||||
var name_container = GuacUI.createTabulatedContainer(header_table, "Name:");
|
var name_container = GuacUI.createTabulatedContainer(header_table, "Name:");
|
||||||
|
var location_container = GuacUI.createTabulatedContainer(header_table, "Location:");
|
||||||
var protocol_container = GuacUI.createTabulatedContainer(header_table, "Protocol:");
|
var protocol_container = GuacUI.createTabulatedContainer(header_table, "Protocol:");
|
||||||
|
|
||||||
var name_field = GuacUI.createChildElement(name_container, "input");
|
var name_field = GuacUI.createChildElement(name_container, "input");
|
||||||
|
var location = GuacUI.createChildElement(location_container, "div", "location");
|
||||||
var protocol_field = GuacUI.createChildElement(protocol_container, "select");
|
var protocol_field = GuacUI.createChildElement(protocol_container, "select");
|
||||||
name_field.setAttribute("type", "text");
|
name_field.setAttribute("type", "text");
|
||||||
|
|
||||||
|
// FIXME: STUB: Location field
|
||||||
|
location.textContent = connection.parent.name;
|
||||||
|
|
||||||
// Set header
|
// Set header
|
||||||
if (connection) {
|
if (connection) {
|
||||||
name_field.value =
|
name_field.value =
|
||||||
@@ -982,12 +987,17 @@ GuacAdmin.ConnectionGroupEditor = function(group, parameters) {
|
|||||||
|
|
||||||
// Header parameter containers
|
// Header parameter containers
|
||||||
var name_container = GuacUI.createTabulatedContainer(header_table, "Name:");
|
var name_container = GuacUI.createTabulatedContainer(header_table, "Name:");
|
||||||
|
var location_container = GuacUI.createTabulatedContainer(header_table, "Location:");
|
||||||
var type_container = GuacUI.createTabulatedContainer(header_table, "Type:");
|
var type_container = GuacUI.createTabulatedContainer(header_table, "Type:");
|
||||||
|
|
||||||
var name_field = GuacUI.createChildElement(name_container, "input");
|
var name_field = GuacUI.createChildElement(name_container, "input");
|
||||||
|
var location = GuacUI.createChildElement(location_container, "div", "location");
|
||||||
var type_field = GuacUI.createChildElement(type_container, "select");
|
var type_field = GuacUI.createChildElement(type_container, "select");
|
||||||
name_field.setAttribute("type", "text");
|
name_field.setAttribute("type", "text");
|
||||||
|
|
||||||
|
// FIXME: STUB: Location field
|
||||||
|
location.textContent = group.parent.name;
|
||||||
|
|
||||||
// Set title
|
// Set title
|
||||||
if (group) {
|
if (group) {
|
||||||
name_field.value =
|
name_field.value =
|
||||||
|
@@ -31,7 +31,7 @@ input[type=submit], button {
|
|||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[type=text], input[type=number], input[type=password] {
|
div.location, input[type=text], input[type=number], input[type=password] {
|
||||||
border: 1px solid #777;
|
border: 1px solid #777;
|
||||||
-moz-border-radius: 0.2em;
|
-moz-border-radius: 0.2em;
|
||||||
-webkit-border-radius: 0.2em;
|
-webkit-border-radius: 0.2em;
|
||||||
@@ -39,6 +39,9 @@ input[type=text], input[type=number], input[type=password] {
|
|||||||
border-radius: 0.2em;
|
border-radius: 0.2em;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 0.25em;
|
padding: 0.25em;
|
||||||
|
font-size: 10pt;
|
||||||
|
background: white;
|
||||||
|
cursor: text;
|
||||||
}
|
}
|
||||||
|
|
||||||
button {
|
button {
|
||||||
@@ -331,10 +334,6 @@ div.section {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.form input {
|
|
||||||
width: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* List element icons
|
* List element icons
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user